19 lines
1.1 KiB
Bash
Executable file
19 lines
1.1 KiB
Bash
Executable file
#!/bin/bash
|
|
# F10 foreground single run on igneum-build-1: holds the box measure file SHARED for this run only (each run is capped
|
|
# under 30 minutes by its own --secs), on the F10 cores, with per-run log, summary and node-log copies and an END
|
|
# marker keyed to the run's name. Usage: run-one.sh <name> <harness .mjs> [args...]
|
|
set -u
|
|
D=/srv/builds/igneum-wt-attack/attack-f10
|
|
NAME="$1"; shift
|
|
HARNESS="$1"; shift
|
|
mkdir -p "$D/runs"
|
|
export IGNEUM_ROOT=/srv/builds/igneum-wt-attack/
|
|
export IGNEUM_LADDER_TMP="/tmp/igneum-fast-time-attack-f10"
|
|
export IGNEUM_F10_BASE=29900 IGNEUM_F10_SUFFIX=990
|
|
echo "F10-START $NAME $(date -u +%FT%TZ) $HARNESS $*" > "$D/runs/$NAME.log"
|
|
flock -s /srv/builds/_locks/measure -c "cd $D && nice -n 10 taskset -c 38-39,86-87 node $D/$HARNESS $*" >> "$D/runs/$NAME.log" 2>&1
|
|
rc=$?
|
|
cp "$IGNEUM_LADDER_TMP/summary.json" "$D/runs/$NAME.json" 2>/dev/null
|
|
for i in 0 1 2; do cp "$IGNEUM_LADDER_TMP/n$i/node.log" "$D/runs/$NAME-n$i.log" 2>/dev/null; cp "$IGNEUM_LADDER_TMP/cpu$i.log" "$D/runs/$NAME-cpu$i.log" 2>/dev/null; done
|
|
echo "F10-END $NAME rc=$rc $(date -u +%FT%TZ)" >> "$D/runs/$NAME.log"
|
|
exit $rc
|