mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-09 15:19:11 +02:00
Adjust file sync for parallel testing
This commit is contained in:
parent
09c75e5a15
commit
37beab8994
3 changed files with 7 additions and 1 deletions
|
|
@ -351,8 +351,8 @@ test('Build without xwayland', find_program('test/build-w-o-xwayland'), env : [
|
|||
test('Copyright and LICENSE', find_program('test/copyright-license'), args : [ cagebreak_main_file + cagebreak_source_strings + cagebreak_header_strings + fuzz_sources + fuzz_headers + fuzz_override_lib ], env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()), ''.join('MESONLICENSE=', meson.project_license())], suite: 'devel' )
|
||||
test('Clang-format (formatting check)', find_program('test/clang-format'), args : [ cagebreak_main_file + cagebreak_source_strings + cagebreak_header_strings + fuzz_sources + fuzz_headers + fuzz_override_lib ], env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'devel')
|
||||
test('Shellcheck (script linting)', find_program('test/shellcheck'), env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'devel')
|
||||
test('Scan-build (static analysis)', find_program('test/scan-build'), env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'devel-long')
|
||||
test('Arguments', find_program('test/arguments'), args : [ meson.project_version() ], env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'basic')
|
||||
test('Environment Variables', find_program('test/environment-variables'), env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'basic')
|
||||
test('Scan-build (static analysis)', find_program('test/scan-build'), env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'release')
|
||||
test('Check for strings indicating problems', find_program('test/illegal-strings'), env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'release')
|
||||
test('Semantic versioning', find_program('test/versions'), args : [ meson.project_version() ], env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'release')
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ RESULT=0
|
|||
cp "${MESONCURRENTCONFIGDIR}/test/testing-configurations/-c-config" "${testdir}"
|
||||
sed -i "s|CONFIGPATH|${testdir}\/result|g" "${testdir}/-c-config"
|
||||
WLR_BACKENDS=headless ./cagebreak -c "${testdir}/-c-config"
|
||||
sync
|
||||
[[ $(cat "${testdir}/result") = "SUCCESS" ]] || RESULT=1
|
||||
|
||||
# check -e option
|
||||
|
|
@ -35,11 +36,13 @@ cp "${MESONCURRENTCONFIGDIR}/test/testing-configurations/config" "${testdir}"
|
|||
readonly oldsocket=$CAGEBREAK_SOCKET
|
||||
sed -i "s|CONFIGPATH|${testdir}\/socket|g" "${testdir}/config"
|
||||
(WLR_BACKENDS=headless ./cagebreak -c "${testdir}/config")
|
||||
sync
|
||||
[[ $(cat "${testdir}/socket") = "${oldsocket}" ]] || RESULT=1
|
||||
## Check with socket
|
||||
cp "${MESONCURRENTCONFIGDIR}/test/testing-configurations/config" "${testdir}"
|
||||
sed -i "s|CONFIGPATH|$testdir\/socket|g" "${testdir}/config"
|
||||
(WLR_BACKENDS=headless ./cagebreak -e -c "${testdir}/config")
|
||||
sync
|
||||
[[ ! $(cat "${testdir}/socket") = "${oldsocket}" ]] || RESULT=1
|
||||
|
||||
# check -h option
|
||||
|
|
|
|||
|
|
@ -13,17 +13,20 @@ cp "${MESONCURRENTCONFIGDIR}/test/testing-configurations/config" "${testdir}"
|
|||
readonly oldsocket=$CAGEBREAK_SOCKET
|
||||
sed -i "s|CONFIGPATH|$testdir\/socket|g" "${testdir}/config"
|
||||
(WLR_BACKENDS=headless ./cagebreak -c "${testdir}/config")
|
||||
sync
|
||||
[[ $(cat "${testdir}/socket") = "${oldsocket}" ]] || RESULT=1
|
||||
## Check with socket
|
||||
cp "${MESONCURRENTCONFIGDIR}/test/testing-configurations/config" "${testdir}"
|
||||
sed -i "s|CONFIGPATH|$testdir\/socket|g" "${testdir}/config"
|
||||
(WLR_BACKENDS=headless ./cagebreak -e -c "${testdir}/config")
|
||||
sync
|
||||
[[ ! $(cat "${testdir}/socket") = "${oldsocket}" ]] || RESULT=1
|
||||
|
||||
# XDG_CONFIG_HOME
|
||||
cp "${MESONCURRENTCONFIGDIR}/test/testing-configurations/env-var-config" "${testdir}/cagebreak/config"
|
||||
sed -i "s|CONFIGPATH|${testdir}\/result|g" "${testdir}/cagebreak/config"
|
||||
XDG_CONFIG_HOME="${testdir}/" WLR_BACKENDS=headless ./cagebreak
|
||||
sync
|
||||
[[ $(cat "${testdir}/result") = "SUCCESS" ]] || RESULT=1
|
||||
|
||||
# The XKB_DEFAULT_* family of variables is not found in the source code
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue