#!/bin/bash # Second run of q3_tables_py.py (IIS-Q-0003): the parts 2 and 3 of 12. # Run 1 (run_tables_py.sh) used revision 1 of the program. Revision 1 stopped at once on the parts # 2 and 3, because its test of the dual masks demanded 40 marks. A dual mask has 20 marks: 20 # classes of D, that is 40 vectors. Revision 2 corrects the test. The command of each part is the # command of run 1. Thus the parts 2 and 3 do all their work items with revision 2. The other 10 # parts of run 1 are complete and stay as they are: they do not use the corrected test. # Before this run: the logs of the two stopped parts have the names q3_tables_py_run1_P2_failed.log # and q3_tables_py_run1_P3_failed.log. # The script collects the logs of the two runs at the end. # usage (from the root of the workspace): # /bin/bash -c '. work/lean_env.sh && bash work/capset/q0003/run_tables_py_dual.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)" "$PY3" --version 2>&1 echo "script sha256 $(shasum -a 256 "$D/q3_tables_py.py" | cut -d' ' -f1)" echo "revision 1 sha256 $(shasum -a 256 "$D/q3_tables_py_rev1.py" | cut -d' ' -f1)" echo "parts 2 and 3 of 12" } > "$L/q3_tables_py_run2.log" 2>&1 P=2 while [ "$P" -le 3 ]; do { echo "start $(date -u +%Y-%m-%dT%H:%M:%SZ)"; "$PY3" -I "$D/q3_tables_py.py" "$L" -1 intact - orbits "$P" 12; echo "exit $?"; echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)"; } > "$L/q3_tables_py_P$P.log" 2>&1 & P=$((P + 1)) done wait "$PY3" -I "$D/q3_tables_py.py" "$L" COLLECT > "$L/q3_tables_py_collected.log" 2>&1 { echo "collect exit $?"; echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)"; } >> "$L/q3_tables_py_run2.log"