mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 21:33:45 +01:00
Only run tests requring GTK under xvfb
This commit is contained in:
parent
ff53e92665
commit
06c4601210
@ -1,6 +1,5 @@
|
|||||||
check = dependency('check', required: get_option('tests'), version: '>=0.11')
|
check = dependency('check', required: get_option('tests'), version: '>=0.11')
|
||||||
xvfb = find_program('xvfb-run', required: get_option('tests'))
|
if check.found()
|
||||||
if check.found() and xvfb.found()
|
|
||||||
test_dependencies = [
|
test_dependencies = [
|
||||||
declare_dependency(link_with: libzathura),
|
declare_dependency(link_with: libzathura),
|
||||||
check
|
check
|
||||||
@ -13,11 +12,30 @@ if check.found() and xvfb.found()
|
|||||||
include_directories: include_directories,
|
include_directories: include_directories,
|
||||||
c_args: defines + flags
|
c_args: defines + flags
|
||||||
)
|
)
|
||||||
test('document', xvfb,
|
test('document', document,
|
||||||
args: ['-a', '-s', '-screen 0 1400x900x24 -ac +extension GLX +render -noreset', document],
|
|
||||||
timeout: 60*60
|
timeout: 60*60
|
||||||
)
|
)
|
||||||
|
|
||||||
|
types = executable('test_types', ['test_types.c', 'tests.c'],
|
||||||
|
dependencies: build_dependencies + test_dependencies,
|
||||||
|
include_directories: include_directories,
|
||||||
|
c_args: defines + flags
|
||||||
|
)
|
||||||
|
test('types', types,
|
||||||
|
timeout: 60*60
|
||||||
|
)
|
||||||
|
|
||||||
|
utils = executable('test_utils', ['test_utils.c', 'tests.c'],
|
||||||
|
dependencies: build_dependencies + test_dependencies,
|
||||||
|
include_directories: include_directories,
|
||||||
|
c_args: defines + flags
|
||||||
|
)
|
||||||
|
test('utils', utils,
|
||||||
|
timeout: 60*60
|
||||||
|
)
|
||||||
|
|
||||||
|
xvfb = find_program('xvfb-run', required: get_option('tests'))
|
||||||
|
if xvfb.found()
|
||||||
session = executable('test_session', ['test_session.c', 'tests.c'],
|
session = executable('test_session', ['test_session.c', 'tests.c'],
|
||||||
dependencies: build_dependencies + test_dependencies,
|
dependencies: build_dependencies + test_dependencies,
|
||||||
include_directories: include_directories,
|
include_directories: include_directories,
|
||||||
@ -39,24 +57,5 @@ if check.found() and xvfb.found()
|
|||||||
timeout: 60*60
|
timeout: 60*60
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
utils = executable('test_utils', ['test_utils.c', 'tests.c'],
|
|
||||||
dependencies: build_dependencies + test_dependencies,
|
|
||||||
include_directories: include_directories,
|
|
||||||
c_args: defines + flags
|
|
||||||
)
|
|
||||||
test('utils', xvfb,
|
|
||||||
args: ['-a', '-s', '-screen 0 1400x900x24 -ac +extension GLX +render -noreset', utils],
|
|
||||||
timeout: 60*60
|
|
||||||
)
|
|
||||||
|
|
||||||
types = executable('test_types', ['test_types.c', 'tests.c'],
|
|
||||||
dependencies: build_dependencies + test_dependencies,
|
|
||||||
include_directories: include_directories,
|
|
||||||
c_args: defines + flags
|
|
||||||
)
|
|
||||||
test('types', xvfb,
|
|
||||||
args: ['-a', '-s', '-screen 0 1400x900x24 -ac +extension GLX +render -noreset', types],
|
|
||||||
timeout: 60*60
|
|
||||||
)
|
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user