]> matita.cs.unibo.it Git - fireball-separation.git/blob - ocaml/run
Fixed if-then-else
[fireball-separation.git] / ocaml / run
1 #!/usr/bin/env bash
2
3 file=`mktemp`
4
5 echo
6 echo "Running test. Log file: $file."
7 echo
8
9 trap 'echo' SIGINT
10
11
12 ./test4.out 2>&1 | tee $file | stdbuf -o0 grep -Po '(?<=measure=)[^ ]*' | stdbuf -o0 tr '\n' ' '
13
14 if [ $? -eq 0 ]
15 then
16  rm $file
17  echo
18  echo 'Test succeeded'
19 else
20  echo ''
21  echo 'Test failed or interrupted'
22  echo "Please have a look at log file: $file ."
23 fi