Commit 3a56d3dc authored by Ian Craggs's avatar Ian Craggs

Allow hostname of test server as a parameter

parent da3f6341
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<tstamp> <tstamp>
<format property="buildTimestamp" pattern="yyyyMMddHHmm" /> <format property="buildTimestamp" pattern="yyyyMMddHHmm" />
</tstamp> </tstamp>
<property name="test.hostname" value="m2m.eclipse.org"/>
<fileset id="sync.source.fileset" dir="src"> <fileset id="sync.source.fileset" dir="src">
<include name="*.c"/> <include name="*.c"/>
...@@ -34,6 +35,7 @@ ...@@ -34,6 +35,7 @@
<exclude name="MQTTVersion.c"/> <exclude name="MQTTVersion.c"/>
</fileset> </fileset>
<pathconvert refid="async.source.fileset" property="async.source.files" pathsep=" "/> <pathconvert refid="async.source.fileset" property="async.source.files" pathsep=" "/>
</target> </target>
<target name="version" depends="init" description="replace tags in the source with the right levels"> <target name="version" depends="init" description="replace tags in the source with the right levels">
...@@ -163,6 +165,8 @@ ...@@ -163,6 +165,8 @@
<target name="runAtest"> <target name="runAtest">
<exec executable="./${aTest}" failonerror="true" dir="${output.folder}" > <exec executable="./${aTest}" failonerror="true" dir="${output.folder}" >
<arg value="--connection" />
<arg value="tcp://${test.hostname}:1883" />
<env key="LD_LIBRARY_PATH" value="." /> <env key="LD_LIBRARY_PATH" value="." />
</exec> </exec>
</target> </target>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment