Skip to content

Commit 5555027

Browse files
amysparknirbheek
authored andcommitted
tests: Add test for checking get_executable_serialization with interpreted executables
1 parent c614e50 commit 5555027

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python3
2+
3+
import sys
4+
import subprocess
5+
6+
if __name__ == '__main__':
7+
subprocess.check_call(sys.argv[1:])

0 commit comments

Comments
 (0)