#!/bin/bash #SBATCH --job-name=verify #SBATCH --time=20:00 #SBATCH --cpus-per-task=1 # Certifies, exactly, every construction in the format of constructions/ in the pushed route's folder, and reports the # best upper bound. The judge is checks/judge/, at the project's approved version. On the default branch (its route # folder is routes/) it measures what the branch holds: the records in constructions/ and every route merged into # routes/, so main has a verified score to beat. dir=$SS_INPUT/$SS_ROUTE_DIR if [ "$SS_ROUTE_DIR" = routes ]; then dir=$(mktemp -d); cp -R "$SS_INPUT/constructions" "$SS_INPUT/routes" "$dir"/ 2>/dev/null; fi python3 checks/judge/check.py "$dir"