test cases/common/14 configure file/check_inputs.py
raw| 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import sys |
| 4 | from pathlib import Path |
| 5 | |
| 6 | files = [Path(f) for f in sys.argv[1:]] |
| 7 | names = [f.name for f in files] |
| 8 | |
| 9 | assert names == ['check_inputs.txt', 'prog.c', 'prog.c', 'prog2.c', 'prog4.c', 'prog5.c'] |
| 10 | for f in files[1:]: |
| 11 | assert f.exists() |
| 12 | |
| 13 | with files[0].open('w') as ofile: |
| 14 | ofile.write("#define ZERO_RESULT 0\n") |