Build sandbox test only if seccomp enabled

This commit is contained in:
Sebastian Ramacher 2020-07-27 18:44:52 +02:00
parent 41e14218ef
commit 3a20080210

View file

@ -24,15 +24,17 @@ if check.found()
test('session', session, test('session', session,
timeout: 60*60 timeout: 60*60
) )
sandbox = executable('test_sandbox', ['test_sandbox.c', 'tests.c'], if seccomp.found()
dependencies: build_dependencies + test_dependencies, sandbox = executable('test_sandbox', ['test_sandbox.c', 'tests.c'],
include_directories: include_directories, dependencies: build_dependencies + test_dependencies,
c_args: defines + flags include_directories: include_directories,
) c_args: defines + flags
test('sandbox', sandbox, )
timeout: 60*60 test('sandbox', sandbox,
) timeout: 60*60
)
endif
utils = executable('test_utils', ['test_utils.c', 'tests.c'], utils = executable('test_utils', ['test_utils.c', 'tests.c'],
dependencies: build_dependencies + test_dependencies, dependencies: build_dependencies + test_dependencies,