commit c13f96b004972c363353842519edc642c00cdcbb parent 336e613e107b2e828c565e57e49b8a7a03726ce0 Author: Andrew Laack <andrew@laack.co> Date: Thu, 12 Nov 2026 23:43:22 -0600 Basic diff-based comparison no exit status code Diffstat:
| M | ojudge/containers/entrypoint.sh | | | 9 | ++++++++- |
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/ojudge/containers/entrypoint.sh b/ojudge/containers/entrypoint.sh @@ -2,4 +2,11 @@ cd /code ocamlopt nums.cmxa str.cmxa -unsafe main.ml -cat ex1.in | ./a.out + +INPUTS=$(ls | grep \\.in$) + +for INPUT in $INPUTS; do + BASE=${INPUT%.*} + cat $INPUT | ./a.out > $BASE.sub.out + diff $BASE.out $BASE.sub.out +done