#!/bin/bash # Crosscheck of the C program with the Python script q3_crosscheck.py (IIS-Q-0003), on the logs of # the hunts and on the logs of the selected matrices. It needs the logs of run_all.sh and of # run_target.sh. The two programs must give the same four numbers for each matrix. # I wrote this script after the first run of these commands. The run with this script gives the # same four logs as the first run. # usage (from the root of the workspace): /bin/bash -c '. work/lean_env.sh && bash work/capset/q0003/run_crosscheck.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 for LAYER in 0 1; do "$PY3" -I "$D/q3_crosscheck.py" "$L/q3_hunt_L$LAYER.log" "$LAYER" > "$L/q3_crosscheck_L$LAYER.log" 2>&1 & "$PY3" -I "$D/q3_crosscheck.py" "$L/q3_target_L$LAYER.log" "$LAYER" > "$L/q3_target_crosscheck_L$LAYER.log" 2>&1 & done wait