mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-22 13:34:18 +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
|
|
@ -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