#!/bin/bash if [ ! -e direct_bt-trial.jar ] ; then echo "Run from build/trial/java directory" exit 1 fi 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 } run_until 2>&1 | tee run-trials-until.log