Debian Codegraph @

test cases/common/49 custom target/my_compiler.py

raw symbols SCIP
1 #!/usr/bin/env python3
2
3 import osscip-python python python-stdlib 3.11 os/__init__:
4 import sysscip-python python python-stdlib 3.11 sys/__init__:
5
6 assert osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..existsscip-python python python-stdlib 3.11 posixpath/split().(sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.[3])
7
8 argsscip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/args. = sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.[:-1]
9
10 if __name__scip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/ == '__main__':
11 assert osscip-python python python-stdlib 3.11 os/__init__:.environscip-python python python-stdlib 3.11 os/environ.environ.['MY_COMPILER_ENV'] == 'value'
12 if len(argsscip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/args.) != 3 or not argsscip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/args.[1].startswithscip-python python python-stdlib 3.11 builtins/str#startswith().('--input') or \
13 not argsscip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/args.[2].startswithscip-python python python-stdlib 3.11 builtins/str#startswith().('--output'):
14 printscip-python python python-stdlib 3.11 builtins/print().(argsscip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/args.[0], '--input=input_file --output=output_file')
15 sysscip-python python python-stdlib 3.11 sys/__init__:.exit(1)
16 with openscip-python python python-stdlib 3.11 builtins/open().(argsscip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/args.[1].splitscip-python python python-stdlib 3.11 builtins/str#split().('=', 1)[1]) as fscip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/f.:
17 ifilescip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/ifile. = fscip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/f..readscip-python python python-stdlib 3.11 io/TextIOBase#read().()
18 if ifilescip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/ifile. != 'This is a text only input file.\n':
19 printscip-python python python-stdlib 3.11 builtins/print().('Malformed input')
20 sysscip-python python python-stdlib 3.11 sys/__init__:.exit(1)
21 with openscip-python python python-stdlib 3.11 builtins/open().(argsscip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/args.[2].splitscip-python python python-stdlib 3.11 builtins/str#split().('=', 1)[1], 'w') as ofilescip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/ofile.:
22 ofilescip-python python meson 1.11.1 `test cases.common.49 custom target.my_compiler`/ofile..writescip-python python python-stdlib 3.11 io/TextIOBase#write().('This is a binary output file.\n')