Mercurial > repos > blastem
comparison maketests.py @ 2444:ab577e2ed66a
Update some 68K test harness scripts to Python 3
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 13 Feb 2024 21:18:31 -0800 |
parents | f7ff02eeec2f |
children |
comparison
equal
deleted
inserted
replaced
2443:461fffc226e0 | 2444:ab577e2ed66a |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python3 |
2 from glob import glob | 2 from glob import glob |
3 import subprocess | 3 import subprocess |
4 from sys import exit | 4 from sys import exit |
5 | 5 |
6 sources = set() | 6 sources = set() |
12 bins.add(path) | 12 bins.add(path) |
13 | 13 |
14 for path in sources: | 14 for path in sources: |
15 binpath = path.replace('.s68', '.bin') | 15 binpath = path.replace('.s68', '.bin') |
16 if not binpath in bins: | 16 if not binpath in bins: |
17 print binpath | 17 print(binpath) |
18 res = subprocess.call(['vasmm68k_mot', '-Fbin', '-m68000', '-no-opt', '-spaces', '-o', binpath, path]) | 18 res = subprocess.call(['vasmm68k_mot', '-Fbin', '-m68000', '-no-opt', '-spaces', '-o', binpath, path]) |
19 if res != 0: | 19 if res != 0: |
20 print 'vasmm68k_mot returned non-zero status code', res | 20 print('vasmm68k_mot returned non-zero status code', res) |
21 exit(1) | 21 exit(1) |
22 | 22 |