Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Enable java tests to be executed out of project directory.'
[simgrid.git] / buildtools / Cmake / test_java.sh
index f126228..7abf189 100755 (executable)
@@ -1,11 +1,8 @@
 #! /bin/sh
 #! /bin/sh
-export LD_LIBRARY_PATH="../src/.libs:$LD_LIBRARY_PATH"
-export CLASSPATH=".:../src/simgrid.jar:$CLASSPATH"
+echo "\n"
+export CLASSPATH=$3:$3/src/simgrid.jar:$CLASSPATH
 cd $1
 cd $1
-if [ ! -e $2.class ] ; then
-  rm classnoinst.stamp
-  make classnoinst.stamp
-fi
+echo "CLASSPATH = $CLASSPATH"
 pwd
 pwd
-echo LD_LIBRARY_PATH="../../../src/.libs:$LD_LIBRARY_PATH" java -cp ".:../../../src/simgrid.jar:$CLASSPATH" $options $2 *platform.xml *deployment.xml
-LD_LIBRARY_PATH="../../../src/.libs:$LD_LIBRARY_PATH" java -cp ".:../../../src/simgrid.jar:$CLASSPATH"  $options $2 *platform.xml *deployment.xml
\ No newline at end of file
+echo "java $2 *platform.xml *deployment.xml"
+java $2 *platform.xml *deployment.xml