fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1 @@
|
||||
stage1
|
||||
@@ -0,0 +1,19 @@
|
||||
project('Generator Chain', 'c')
|
||||
|
||||
stage1_exe = find_program('stage1.py')
|
||||
|
||||
stage2_exe = find_program('stage2.py')
|
||||
|
||||
stage1_gen = generator(stage1_exe,
|
||||
output : '@PLAINNAME@.inter',
|
||||
arguments : ['@INPUT@', '@OUTPUT@'])
|
||||
|
||||
stage2_gen = generator(stage2_exe,
|
||||
output : '@PLAINNAME@.c',
|
||||
arguments : ['@INPUT@', '@OUTPUT@'])
|
||||
|
||||
out = stage2_gen.process(stage1_gen.process('data.txt'))
|
||||
|
||||
hello = executable('hello', out)
|
||||
|
||||
test('basic', hello)
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
assert(Path(sys.argv[1]).read_text() == 'stage1\n')
|
||||
Path(sys.argv[2]).write_text('stage2\n')
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
assert(Path(sys.argv[1]).read_text() == 'stage2\n')
|
||||
Path(sys.argv[2]).write_text('int main(void){}\n')
|
||||
Reference in New Issue
Block a user