mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 06:36:00 +01:00
Run tests under xvfb
This commit is contained in:
parent
e0271bd3f4
commit
c5f315d712
1 changed files with 12 additions and 6 deletions
|
@ -1,5 +1,6 @@
|
||||||
check = dependency('check', required: get_option('tests'), version: '>=0.11')
|
check = dependency('check', required: get_option('tests'), version: '>=0.11')
|
||||||
if check.found()
|
xvfb = find_program('xvfb-run', required: get_option('tests'))
|
||||||
|
if check.found() and xvfb.found()
|
||||||
test_dependencies = [
|
test_dependencies = [
|
||||||
declare_dependency(link_with: libzathura),
|
declare_dependency(link_with: libzathura),
|
||||||
check
|
check
|
||||||
|
@ -12,7 +13,8 @@ if check.found()
|
||||||
include_directories: include_directories,
|
include_directories: include_directories,
|
||||||
c_args: defines + flags
|
c_args: defines + flags
|
||||||
)
|
)
|
||||||
test('document', document,
|
test('document', xvfb,
|
||||||
|
args: ['-a', '-s', '-screen 0 1400x900x24 -ac +extension GLX +render -noreset', document],
|
||||||
timeout: 60*60
|
timeout: 60*60
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -21,7 +23,8 @@ if check.found()
|
||||||
include_directories: include_directories,
|
include_directories: include_directories,
|
||||||
c_args: defines + flags
|
c_args: defines + flags
|
||||||
)
|
)
|
||||||
test('session', session,
|
test('session', xvfb,
|
||||||
|
args: ['-a', '-s', '-screen 0 1400x900x24 -ac +extension GLX +render -noreset', session],
|
||||||
timeout: 60*60
|
timeout: 60*60
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -31,7 +34,8 @@ if check.found()
|
||||||
include_directories: include_directories,
|
include_directories: include_directories,
|
||||||
c_args: defines + flags
|
c_args: defines + flags
|
||||||
)
|
)
|
||||||
test('sandbox', sandbox,
|
test('sandbox', xvfb,
|
||||||
|
args: ['-a', '-s', '-screen 0 1400x900x24 -ac +extension GLX +render -noreset', sandbox],
|
||||||
timeout: 60*60
|
timeout: 60*60
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
@ -41,7 +45,8 @@ if check.found()
|
||||||
include_directories: include_directories,
|
include_directories: include_directories,
|
||||||
c_args: defines + flags
|
c_args: defines + flags
|
||||||
)
|
)
|
||||||
test('utils', utils,
|
test('utils', xvfb,
|
||||||
|
args: ['-a', '-s', '-screen 0 1400x900x24 -ac +extension GLX +render -noreset', utils],
|
||||||
timeout: 60*60
|
timeout: 60*60
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -50,7 +55,8 @@ if check.found()
|
||||||
include_directories: include_directories,
|
include_directories: include_directories,
|
||||||
c_args: defines + flags
|
c_args: defines + flags
|
||||||
)
|
)
|
||||||
test('types', types,
|
test('types', xvfb,
|
||||||
|
args: ['-a', '-s', '-screen 0 1400x900x24 -ac +extension GLX +render -noreset', types],
|
||||||
timeout: 60*60
|
timeout: 60*60
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue