mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 18:25:35 -04:00
18 lines
703 B
Python
18 lines
703 B
Python
"""Exercise concurrent memory selection using production memory.c."""
|
|
import argparse
|
|
import tempfile
|
|
from pathlib import Path
|
|
from fixture_link import build_and_run
|
|
|
|
if __name__ == '__main__':
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument('--cc', default='gcc')
|
|
args = parser.parse_args()
|
|
here = Path(__file__).resolve().parent
|
|
with tempfile.TemporaryDirectory() as temp:
|
|
for opt in ('-O0', '-O2'):
|
|
build_and_run(args.cc, here, here.parent, opt, Path(temp),
|
|
['memory.c'], 'test_memory_backing.c',
|
|
defines=('PSX_NO_DEBUG_TOOLS',))
|
|
print('PASS: concurrent RAM/scratchpad backing selection (O0/O2)')
|