mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-09 15:19:11 +02:00
Functionality: * Add configuration to anchor position of messages (#60, 71 in Bugs.md). * Add output priorisation (#38, 68 in Bugs.md). * Print whether output is active in dump. Bug Fixes: * Fix gamma control (72 in Bugs.md). * Add missing commands to example config. * Add message_config to dump output. Example Scripts: * Add screenshot script. * Make example scripts standalone. Documentation: * Escape html tags in config man page. (#68, 69 in Bugs.md) * Improve README.md (#62, 70 in Bugs.md). * Improve SECURITY.md. * Add CONTRIBUTING.md (#62, 70 in Bugs.md). * FAQ: Add Firefox screenshare instructions for wayland. * FAQ: Add wlroots downgrading instructions for workaround in case of temporary wlroots incompatibility. * Update copyright notices to 2024. Development Tooling: * Add new gpg keys (signed by the old ones). * Add PR template. * Add dev-FAQ. * Remove now-unnecessary fanalyzer pragmas.
39 lines
1.5 KiB
Bash
39 lines
1.5 KiB
Bash
#!/bin/bash
|
|
# Copyright 2023 - 2024, project-repo and the cagebreak contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
testdir="${MESONCURRENTCONFIGDIR}/_build-envvars"
|
|
mkdir "${testdir}"
|
|
mkdir "${testdir}/envvars/"
|
|
mkdir "${testdir}/cagebreak"
|
|
|
|
RESULT=0
|
|
|
|
# CAGEBREAK_SOCKET (duplicate of arguments test)
|
|
## Check without socket
|
|
cp "${MESONCURRENTCONFIGDIR}/test/testing-configurations/config" "${testdir}/envvars"
|
|
readonly oldsocket="${CAGEBREAK_SOCKET}"
|
|
sed -i "s|CONFIGPATH|$testdir\/envvars\/socket|g" "${testdir}/envvars/config"
|
|
(WLR_BACKENDS=headless ./cagebreak -c "${testdir}/envvars/config")
|
|
sync
|
|
[[ $(cat "${testdir}/envvars/socket") = "${oldsocket}" ]] || RESULT=1
|
|
## Check with socket
|
|
cp "${MESONCURRENTCONFIGDIR}/test/testing-configurations/config" "${testdir}/envvars"
|
|
sed -i "s|CONFIGPATH|$testdir\/envvars\/socket|g" "${testdir}/envvars/config"
|
|
(WLR_BACKENDS=headless ./cagebreak -e -c "${testdir}/envvars/config")
|
|
sync
|
|
[[ $(cat "${testdir}/envvars/socket") != "${oldsocket}" ]] || RESULT=1
|
|
|
|
# XDG_CONFIG_HOME
|
|
cp "${MESONCURRENTCONFIGDIR}/test/testing-configurations/env-var-config" "${testdir}/cagebreak/config"
|
|
sed -i "s|CONFIGPATH|${testdir}\/cagebreak\/result|g" "${testdir}/cagebreak/config"
|
|
XDG_CONFIG_HOME="${testdir}/" WLR_BACKENDS=headless ./cagebreak
|
|
sync
|
|
[[ $(cat "${testdir}/cagebreak/result") = "SUCCESS" ]] || RESULT=1
|
|
|
|
# The XKB_DEFAULT_* family of variables is not found in the source code
|
|
# of Cagebreak but necessary to configure software for use with Cagebreak.
|
|
|
|
rm -rf "${testdir}"
|
|
|
|
exit "${RESULT}"
|