File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed
test cases/python/11 script path Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+
3+
4+ if __name__ == '__main__' :
5+ with open ('x.c' , 'w' , encoding = 'utf-8' ) as f :
6+ f .write ('int main() { return 0; }\n ' )
7+ exit (0 )
Original file line number Diff line number Diff line change 1+ project (' 11 script path' , ' c' )
2+
3+ if meson .backend() != ' ninja'
4+ error (' MESON_SKIP_TEST: Ninja backend required' )
5+ endif
6+
7+ run = find_program (' run.py' )
8+
9+ gen = find_program (' gen' )
10+
11+ src = custom_target (
12+ ' src' ,
13+ command : [run, gen],
14+ output : ' x.c' ,
15+ )
16+
17+ exe = executable (' e' ,
18+ src,
19+ )
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+
3+ import sys
4+ import subprocess
5+
6+ if __name__ == '__main__' :
7+ subprocess .check_call (sys .argv [1 :])
You can’t perform that action at this time.
0 commit comments