☰
Debian Codegraph
@
1.12.1-2
1.12.1-1
1.12.0-3
1.12.0-2
1.11.1-3
1.11.1-2
/
/
test cases
/
common
/
152 index customtarget
/
check_args.py
☽
☼
test cases/common/152 index customtarget/check_args.py
code
plain
raw
Apache-2.0
2012-2021 The Meson development team
debian/copyright
1
#!python3
2
3
import sys
4
from pathlib import Path
5
6
def main():
7
if len(sys.argv) != 2:
8
print(sys.argv)
9
return 1
10
if sys.argv[1] != 'gen.c':
11
print(sys.argv)
12
return 2
13
Path('foo').touch()
14
15
return 0
16
17
if __name__ == '__main__':
18
sys.exit(main())