summaryrefslogtreecommitdiff
path: root/start
diff options
context:
space:
mode:
authorAdam M. Stück <adam@adast.xyz>2022-12-16 21:37:56 +0100
committerAdam M. Stück <adam@adast.xyz>2022-12-17 17:03:19 +0100
commit98bc70eebf9c425866f26a916d5b49a63a1d2c8b (patch)
tree55da2e51c17b2a6b2f8294e3769dc12b13e0f95a /start
parent490431782825d9d032d301fa2ea9665fa2f87b7e (diff)
Simplified 'start' script usage
Removed switch to use sbatch. Using sbatch is now the default. The line to run VerifyPN locally is just left as a comment beneath the sbatch call. Added a BINARY argument, so I don't have to hardcode each experiments binary. Updated and improved the help message to reflect the changes.
Diffstat (limited to 'start')
-rwxr-xr-xstart19
1 files changed, 5 insertions, 14 deletions
diff --git a/start b/start
index d4d0cc8..d3b71e1 100755
--- a/start
+++ b/start
@@ -21,21 +21,15 @@ main() {
help; exit 1
fi
- USE_SBATCH="false"
-
case "$1" in
-h|--help)
help
exit
;;
- -s|--sbatch)
- USE_SBATCH="true"
- MODELS_PATH="$2"
- OUTPUT_PATH="$3"
- ;;
*)
- MODELS_PATH="$1"
- OUTPUT_PATH="$2"
+ BINARY="$1"
+ MODELS_PATH="$2"
+ OUTPUT_PATH="$3"
;;
esac
@@ -71,16 +65,13 @@ serialize_array() {
help() {
cat << EOF
-usage: $0 [OPTIONS] MODELS-PATH OUTPUT-PATH
+Usage: $0 BINARY MODELS-PATH OUTPUT-PATH
-Run Tapaal/MCC search strategy benchmark.
+Run TAPAAL heuristic search experiment.
Number of models to run, time limit and search strategies can be
configured in the top of this script.
-Options:
- -h, --help Show this message
- -s, --sbatch Run on the cluster, instead of locally.
EOF
}