[Contikitests-commits] [076f95c] build.xml: ant build file
Runs Contiki's simulation-based tests
Brought to you by:
fros4943
|
From: Fredrik Ö. <fro...@sh...> - 2012-05-14 15:28:25
|
Summary of changes:
build.xml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 51 insertions(+), 0 deletions(-)
create mode 100755 build.xml
- Log -----------------------------------------------------------------
commit 076f95c5efe007694ec734b1dc50da306e324011
Author: Fredrik Osterlind <fr...@si...>
Date: Mon May 14 15:52:40 2012 +0200
ant build file
diff --git a/build.xml b/build.xml
new file mode 100755
index 0000000..0103382
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+
+<project name="Run Contiki tests" default="run" basedir=".">
+ <property name="args" value="" />
+
+ <target name="help">
+ <echo>
+ First, configure contikitests.config for your system.
+
+ To run the Contiki tests using contikitests.config:
+ > ant run
+
+ To run the Contiki tests with a specified configuration:
+ > ant run -Dargs=[configfile]
+ </echo>
+ </target>
+
+ <target name="init">
+ <tstamp/>
+ </target>
+
+ <target name="compile" depends="init">
+ <mkdir dir="build"/>
+ <javac srcdir="src" destdir="build" debug="on">
+ <classpath>
+ <pathelement location="lib/mail.jar"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="clean" depends="init">
+ <delete dir="build"/>
+ </target>
+
+ <target name="run" depends="init, compile">
+ <java fork="yes" dir="." classname="org.contikios.contikitests.ContikiTests" maxmemory="512m">
+ <arg line="${args}"/>
+ <classpath>
+ <pathelement path="build"/>
+ <pathelement path="lib/mail.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="java_version" depends="init">
+ <exec executable="javac" dir="build">
+ <arg value="-version"/>
+ </exec>
+ </target>
+
+</project>
-----------------------------------------------------------------------
--
UNNAMED PROJECT
|