1 # Run `runnable` binary for all the scenarios and safe the plans to the
4 # This script should be run from the `build` folder as:
6 # bash ../scripts/test_all_scenarios.sh test1 1000 ../scenarios/ out
10 echo 'Test `runnable` for all the scenarios'
14 echo -e '\tbash test_all_scenarios.sh RUNNABLE COUNT SCENARIOS RESULTS'
16 echo '- RUNNABLE is runnable binary.'
17 echo '- COUNT is number of runs for each scenario.'
18 echo '- SCENARIOS is the directory with scenarios.'
19 echo '- RESULTS is the directory to store the results to.'
33 while [ $cnt -lt $count ]
36 for sc in `ls $scenarios`
38 ./$runnable < $scenarios/$sc > $results/$cnt/$sc