fix: noconfirm auto-selects first AUR match
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
#include <foo.h>
|
||||
|
||||
int main(void) {
|
||||
return foo_process();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
barexe = executable('bar', 'main.c',
|
||||
include_directories: incfoo,
|
||||
link_with: libfoo)
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
#include "foo.h"
|
||||
|
||||
int
|
||||
foo_process(void) {
|
||||
return 42;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
#define DLL_PUBLIC __declspec(dllexport)
|
||||
#else
|
||||
#if defined __GNUC__
|
||||
#define DLL_PUBLIC __attribute__ ((visibility("default")))
|
||||
#else
|
||||
#pragma message ("Compiler does not support symbol visibility.")
|
||||
#define DLL_PUBLIC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
DLL_PUBLIC int foo_process(void);
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
incfoo = include_directories('.')
|
||||
|
||||
libfoo = library('foo', 'foo.c')
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
project('test argument extra paths', 'c')
|
||||
|
||||
subdir('lib')
|
||||
subdir('exe')
|
||||
subdir('test')
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
python3 = find_program('python3')
|
||||
|
||||
test('run_exe', python3, args: [files('test_run_exe.py')[0], barexe])
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import subprocess
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('prog')
|
||||
args = parser.parse_args()
|
||||
|
||||
res = subprocess.run(args.prog)
|
||||
|
||||
sys.exit(res.returncode - 42)
|
||||
Reference in New Issue
Block a user