30 lines
1.2 KiB
Bash
30 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
# CHECK for the 2026-11-01 todo-census extract.
|
|
#
|
|
# What this file used to be: five lines of prose. Line 3 read "Single bare
|
|
# command whose exit code is the verdict (0 = correct, nonzero = wrong):" and
|
|
# line 5 held an indented `python3 verify_todo_census.py`. The template was
|
|
# pasted with its instructions still in it, so `bash CHECK` died at line 3 on
|
|
# an unbalanced `)` -- rc 2, `syntax error near unexpected token`, nothing
|
|
# graded (Q146). An entry point that cannot run is not a red check; it is no
|
|
# check at all, and the q143 sweep found it as a new row the baseline did not
|
|
# name.
|
|
#
|
|
# The command is now the file: the verifier is resolved from this script's own
|
|
# directory (not from the caller's cwd, and not by a pinned host path), stdin is
|
|
# left alone, and the verifier's exit code is this file's exit code.
|
|
#
|
|
# Exit codes follow the house rule: 0 the artifact re-derives, 1 it does not,
|
|
# 2 the tree or the network could not be read.
|
|
|
|
set -u
|
|
|
|
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
if [ ! -f "$HERE/verify_todo_census.py" ]; then
|
|
printf 'CANNOT GRADE: missing %s\n' "$HERE/verify_todo_census.py"
|
|
exit 2
|
|
fi
|
|
|
|
exec "${PYTHON:-python3}" "$HERE/verify_todo_census.py"
|