aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run-java-trials-forever.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-07-26 02:52:00 +0200
committerSven Gothel <[email protected]>2022-07-26 02:52:00 +0200
commitf3a04a46dacb5ae61d9fb8f8dc65bfb7e96a501b (patch)
tree68a4732517b4342f6b60e8e373f30fd78247b83f /scripts/run-java-trials-forever.sh
parent642845a3af81ebfe48359bcfbdd6d5e910e16036 (diff)
Update scripts, analog to jaulib v0.14.0-37-g8e76c99
- example symlinks: remove prefix 'run-' - can invoke from project root dir like in jaulib and cipherlib - using {build|dist}-OS_NAME-ARCHABI for multi OS support
Diffstat (limited to 'scripts/run-java-trials-forever.sh')
-rwxr-xr-xscripts/run-java-trials-forever.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/scripts/run-java-trials-forever.sh b/scripts/run-java-trials-forever.sh
index 912cd98d..a48f529b 100755
--- a/scripts/run-java-trials-forever.sh
+++ b/scripts/run-java-trials-forever.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_forever() {
let n=0; while true ; do res="ERROR"; make test && res="OK"; let n=${n}+1; echo "Test ${n} ${res}"; cp -av Testing/Temporary/LastTest.log LastTest-${n}-${res}.log ; done