1 # Run `test1`, `test2`, `test3`, ... for `count` times on specified scenario.
3 # This script should be run from the `build` folder as:
5 # bash ../scripts/test_all_scenarios.sh out/ 100 sc.json test1 test2 ...
10 echo 'Test `runnable`s for `count` simple scenarios'
14 echo -e '\tbash test_simple_scenarios.sh RESULTS COUNT RUN1 RUN2 ...'
16 echo '- RESULTS is the directory to store the results to.'
17 echo '- COUNT tells how many simple scenarios are generated.'
18 echo '- SCENARIO to run.'
19 echo '- RUNx are runnable binaries.'
36 while [ $cnt -lt $count ]
41 ./$r < $scenario > $results/$cnt/$r.json