#!/usr/bin/env python3 """Run the packaged exact verification programs, stopping at the first failure.""" from pathlib import Path import subprocess import sys HERE = Path(__file__).resolve().parent TASKS = [ ['verify.py'], ['verify_obstruction.py'], ['profile_minimax.py','--self-test'], ['verify_certificates.py'], ['verify_learning.py','--output',str(HERE/'learning_verification.json')], ] def main(): for task in TASKS: print('Running '+task[0],flush=True) subprocess.run([sys.executable,str(HERE/task[0]),*task[1:]],cwd=HERE,check=True) print('All exact verification programs passed.') if __name__ == '__main__': main()