tests: Split between display and displayless

Some tests require gtk_init, which requires a display and therefore
cannot be part of the tests to be ran in the GitLab CI.

Split those so we can pass an option to meson to only test the
displayless tests for GitLab CI.
parent e7578a2d
Pipeline #1850 canceled with stage
in 5 minutes and 29 seconds
......@@ -3,3 +3,4 @@ option('profiling', type: 'boolean', value: false)
option('nst_extension', type: 'boolean', value: true)
option('packagekit', type: 'boolean', value: true)
option('selinux', type: 'boolean', value: true)
option('display-tests', type: 'boolean', value: true)
tests = [
['test-nautilus-search-engine', [
'test-nautilus-search-engine.c'
]],
['test-nautilus-directory-async', [
'test-nautilus-directory-async.c'
]]
]
foreach t: tests
test(t[0], executable(t[0], t[1], dependencies: libnautilus_dep))
endforeach
tests = [
['test-file-utilities-get-common-filename-prefix', [
'test-file-utilities-get-common-filename-prefix.c'
]],
['test-eel-string-get-common-prefix', [
'test-eel-string-get-common-prefix.c'
]]
]
foreach t: tests
test(t[0], executable(t[0], t[1], dependencies: libnautilus_dep))
endforeach
subdir('displayless')
if get_option('display-tests')
subdir('display')
endif
test_copy = executable(
'test-copy', [
'test-copy.c',
'test.c',
'test.h'
],
dependencies: libnautilus_dep
)
test_copy = executable(
'test-copy', [
'test-copy.c',
'test.c',
'test.h'
],
dependencies: libnautilus_dep
)
tests = [
['test-nautilus-search-engine', [
'test-nautilus-search-engine.c'
]],
['test-nautilus-directory-async', [
'test-nautilus-directory-async.c'
]],
['test-file-utilities-get-common-filename-prefix', [
'test-file-utilities-get-common-filename-prefix.c'
]],
['test-eel-string-get-common-prefix', [
'test-eel-string-get-common-prefix.c'
]]
]
foreach t: tests
test(t[0], executable(t[0], t[1], dependencies: libnautilus_dep))
endforeach
subdir('automated')
subdir('interactive')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment