diff options
Diffstat (limited to 'scripts/run-native-trials-forever.sh')
-rwxr-xr-x | scripts/run-native-trials-forever.sh | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/scripts/run-native-trials-forever.sh b/scripts/run-native-trials-forever.sh index f3154aaa..cd211359 100755 --- a/scripts/run-native-trials-forever.sh +++ b/scripts/run-native-trials-forever.sh @@ -1,9 +1,18 @@ #!/bin/bash -if [ ! -e test_client_server10_NoEnc ] ; then - echo "Run from build/trial/direct_bt/ 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/direct_bt 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 |