-rwxr-xr-x 831 libmceliece-20240726/scripts-build/fulltest-convert raw
#!/usr/bin/env python3
import os
import sys
projectlibrary = sys.argv[1]
with open('scripts/fulltest-top') as f:
  sys.stdout.write(f.read().replace('PROJECT',projectlibrary))
print('')
print('todo = [')
usedopi = set()
for line in sys.stdin:
  line = line.split('/')
  o,p,i = line[:3]
  if (o,p,i) not in usedopi:
    assert "'" not in o
    assert "'" not in p
    assert "'" not in i
    assert "\\" not in o
    assert "\\" not in p
    assert "\\" not in i
    print(f"  ('{o}','{p}','{i}'),")
    usedopi.add((o,p,i))
print(']')
print('')
print('todo = [(False,)+task for task in todo]+[(True,)+task for task in todo]')
print('')
print('if not doit(todo):')
print("  print('some tests failed')")
print('  sys.exit(111)')
print("print('full tests succeeded')")
sys.stdout.flush()
os.fchmod(sys.stdout.fileno(),0o755)