]> rtime.felk.cvut.cz Git - hubacji1/iamcar2.git/commitdiff
Add script skeleton
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Fri, 23 Aug 2019 14:52:25 +0000 (16:52 +0200)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Fri, 23 Aug 2019 14:52:25 +0000 (16:52 +0200)
scripts/test_all_scenarios.sh [new file with mode: 0644]

diff --git a/scripts/test_all_scenarios.sh b/scripts/test_all_scenarios.sh
new file mode 100644 (file)
index 0000000..3dacfb6
--- /dev/null
@@ -0,0 +1,18 @@
+# Run `runnable` binary for all the scenarios and safe the plans to the
+# `results` folder.
+if [ $# -ne 3 ]
+then
+        echo 'Test `runnable` for all the scenarios'
+        echo ''
+        echo 'Usage:'
+        echo ''
+        echo -e '\tbash test_all_scenarios.sh RUNNABLE SCENARIOS RESULTS'
+        echo ''
+        echo '- RUNNABLE is runnable binary.'
+        echo '- SCENARIOS is the directory with scenarios.'
+        echo '- RESULTS is the directory to store the results to.'
+        exit 1
+fi
+runnable=$1
+scenarios=$2
+results=$3