diff options
Diffstat (limited to 'scripts/run-java-trials-until.sh')
-rwxr-xr-x | scripts/run-java-trials-until.sh | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/scripts/run-java-trials-until.sh b/scripts/run-java-trials-until.sh index 56056002..90a7aa5c 100755 --- a/scripts/run-java-trials-until.sh +++ b/scripts/run-java-trials-until.sh @@ -1,9 +1,18 @@ #!/bin/bash -if [ ! -e direct_bt-trial.jar ] ; then - echo "Run from build/trial/java directory" - exit 1 -fi +script_args="$@" +sdir=`dirname $(readlink -f $0)` +rootdir=`dirname $sdir` +bname=`basename $0 .sh` + +. $rootdir/jaulib/scripts/setup-machine-arch.sh "-quiet" + +dist_dir=$rootdir/"dist-$os_name-$archabi" +build_dir=$rootdir/"build-$os_name-$archabi" +echo dist_dir $dist_dir +echo build_dir $build_dir + +cd ${build_dir}/trial/java run_until() { let n=0; while make test ; do let n=${n}+1; echo "Test ${n} OK"; cp -av Testing/Temporary/LastTest.log LastTest-${n}.log ; done |