#!/bin/bash # Model of the count of the free positions for each case (IIS-Q-0003), in the clean environment. # usage (from the root of the workspace): /bin/bash -c '. work/lean_env.sh && bash work/capset/q0003/run_cases.sh' W=$(cd "$(dirname "$0")/../../.." && pwd) # the root of the workspace; this script is in work/capset/q0003 D=$W/work/capset/q0003 L=$D/logs PY3=/opt/homebrew/bin/python3 { echo "start $(date -u +%Y-%m-%dT%H:%M:%SZ)" echo "script sha256 $(shasum -a 256 "$D/q3_cases.py" | cut -d' ' -f1)" "$PY3" -I "$D/q3_cases.py" "$L" echo "exit code $?" echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)" } > "$L/q3_cases.log" 2>&1