diff --git a/docs/dev-FAQ.md b/docs/dev-FAQ.md deleted file mode 100644 index 46c7669..0000000 --- a/docs/dev-FAQ.md +++ /dev/null @@ -1,67 +0,0 @@ -# FAQ for Development - -## How is cagebreak adjusted to a new wlroots version? - -There are three steps: - -1. Try to compile Cagebreak with the new wlroots. -2. Fix the compiler errors one-by-one using the wlroots - changelog for reference (https://gitlab.freedesktop.org/wlroots/wlroots/-/releases). -3. Debug until Cagebreak works again. - -## How do I add a new test? - -1. Add a shell script to `test/` -2. Optionally add test configs to `test/testing-configurations/` -3. Make sure the files have shebang, copyright and SPDX License identifiers - (use the other files for reference) -4. Add the test to `meson.build` as in the example below. -5. Add paths and env vars as shown in the other tests -6. Make sure the test is added to the correct suite - (check out CONTRIBUTING.md for details) - -``` -test('Scan-build (static analysis)', find_program('test/scan-build'), env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'devel-long') -``` - -## How do I add a new script? - -1. Add a shell script to `scripts/` -2. Make sure the files have shebang, copyright and SPDX License identifiers - (use the other files for reference) -3. Add the script to CONTRIBUTING.md -4. Add the script to meson.build as shown below - -``` -run_target('create-sigs', - command : ['scripts/create-signatures', get_option('gpg_id')]) -``` - -## How do I add an example script? - -Extrapolate from the examples in the `example_scripts` directory. - -The script should be executable standalone. See `test/script-header` for a possible -library. - -License, contributors etc. should be appropriate. - -Shellcheck must pass on any script (use of shellcheck pragmas is allowed but -discouraged). - -## How do I add a new gpg key? - -1. Check which gpg key versions are currently valid. -2. Generate keys with incremented numbers/emails/dates/passphrase. - * Use 4096 Bit RSA Keys -3. Sign the new keys with at least one then-old signing key. -4. Genereate new cagebreak@project-repo.co key -5. Sign the new mail key with the new signing keys. -6. Generate new pkgbuild key. -7. Sign the pkgbuild key with the new signing keys. -8. Add public keys to `keys/`. -9. Update meson_options.txt -10. Update [all man pages](../manuals.md), [CONTRIBUTING](../CONTRIBUTING.md), gpg-validity test & [SECURITY.md](../SECURITY.md) -11. Update the pkgbuild repo with the new key (key and readme). -12. Update git config email. -13. Securely distribute private keys and revocation certificates as per the internal wiki. diff --git a/docs/pull_request_template.md b/docs/pull_request_template.md deleted file mode 100644 index 589cd0c..0000000 --- a/docs/pull_request_template.md +++ /dev/null @@ -1,26 +0,0 @@ -# Description - - - - -## Type of Change - - * [ ] Fix - * [ ] Backwards-compatible Feature - * [ ] Breaking Change - -## Considerations - - - - -## Credit - - * [ ] I want to be credited as YOUR_NAME_OR_PSEUDONYM in your contributor section - * [ ] I don't want to be credited. - - - - -signed-off-by: YOUR_NAME_OR_PSEUDONYM - diff --git a/example_scripts/screenshot_script b/example_scripts/screenshot_script deleted file mode 100755 index 2711bf3..0000000 --- a/example_scripts/screenshot_script +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo, sodface and the cagebreak contributors -# SPDX-License-Identifier: MIT -# -# Execute this script if you want to take a screenshot. -# Please supply your chosen cropping/editing tool as a -# command-line argument. The filepath to the temporary -# file will be given as an argument to your command. -# -# Example: -# screenshot_script "gwenview" - -named_pipe_send="$(mktemp -u)" -named_pipe_recv="$(mktemp -u)" -mkfifo "${named_pipe_send}" -mkfifo "${named_pipe_recv}" -nc -U "${CAGEBREAK_SOCKET}" < "${named_pipe_send}" > "${named_pipe_recv}"& -# The file descriptor 3 is set up to send commands to cagebreak and file -# descriptor 4 can be used to read events. Notice that events will pile up in -# file descriptor 4, so it is a good idea to continuously read from it or to -# clear it before starting a new transaction. -exec 3>"${named_pipe_send}" -exec 4<"${named_pipe_recv}" -# When the script exits, the os will clean up the pipe -rm "${named_pipe_recv}" -rm "${named_pipe_send}" - -if [[ ${#} -lt 1 ]] -then - echo "Expected a single command line argument specifying the command to edit the screenshot." - exit 1 -fi - -edit_cmd="${1}" - -echo "dump" >&3 -IFS= read -r -d $'\0' event <&4 - -co="$(echo "${event:6}"|jq -r ".curr_output")" -tmpfile="$(mktemp)" -grim -t png -o "${co}" "${tmpfile}" -bash -c "${edit_cmd} \"${tmpfile}\"" -wl-copy < "${tmpfile}" -rm "${tmpfile}" diff --git a/example_scripts/show_workspace_views b/example_scripts/show_workspace_views deleted file mode 100755 index a7c3781..0000000 --- a/example_scripts/show_workspace_views +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# Copyright 2020 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT -# -# This script displays the process names of the views on the current workspace. - -named_pipe_send="$(mktemp -u)" -named_pipe_recv="$(mktemp -u)" -mkfifo "${named_pipe_send}" -mkfifo "${named_pipe_recv}" -nc -U "${CAGEBREAK_SOCKET}" < "${named_pipe_send}" > "${named_pipe_recv}"& -# The file descriptor 3 is set up to send commands to cagebreak and file -# descriptor 4 can be used to read events. Notice that events will pile up in -# file descriptor 4, so it is a good idea to continuously read from it or to -# clear it before starting a new transaction. -exec 3>"${named_pipe_send}" -exec 4<"${named_pipe_recv}" -# When the script exits, the os will clean up the pipe -rm "${named_pipe_recv}" -rm "${named_pipe_send}" - -echo "dump" >&3 - -while IFS= read -r -d $'\0' event -do - # Remove the cg-ipc header - event="${event:6}" - if [[ "$(echo "${event}" | jq ".event_name")" = "\"dump\"" ]] - then - curr_output="$(echo "${event}"|jq ".curr_output")" - curr_workspace="$(echo "${event}"|jq -r ".outputs.${curr_output}.curr_workspace")" - # Print the process names of the view on the current workspace. jq retrieves - # their PID and ps is then used to retrieve the process names. - # shellcheck disable=2046 - (echo -n "message ";ps -o comm=Command -p $(echo "${event}"|jq -r ".outputs.${curr_output}.workspaces[$((curr_workspace-1))].views[].pid")|tail +2|sed ':a; N; $!ba; s/\n/||/g') >&3 - break - fi -done <&4 diff --git a/examples/config b/examples/config index e2d6795..7800a17 100644 --- a/examples/config +++ b/examples/config @@ -1,4 +1,3 @@ -# Copyright 2020 - 2025, project-repo and the NEDM contributors # SPDX-License-Identifier: MIT # General settings and key bindings @@ -23,8 +22,8 @@ bind R setmode resize bind N nextscreen bind P prevscreen bind a time -bind C-n movetonextscreen -bind C-p movetoprevscreen +bind A-n movetonextscreen +bind A-p movetoprevscreen bind H exchangeleft bind J exchangedown bind K exchangeup diff --git a/release-non-auto-checks/Bugs.md b/release-non-auto-checks/Bugs.md deleted file mode 100644 index e981e3e..0000000 --- a/release-non-auto-checks/Bugs.md +++ /dev/null @@ -1,2 +0,0 @@ -3.0.1 -2025-07-05 diff --git a/release-non-auto-checks/FAQ.md b/release-non-auto-checks/FAQ.md deleted file mode 100644 index e981e3e..0000000 --- a/release-non-auto-checks/FAQ.md +++ /dev/null @@ -1,2 +0,0 @@ -3.0.1 -2025-07-05 diff --git a/release-non-auto-checks/SECURITY.md b/release-non-auto-checks/SECURITY.md deleted file mode 100644 index e981e3e..0000000 --- a/release-non-auto-checks/SECURITY.md +++ /dev/null @@ -1,2 +0,0 @@ -3.0.1 -2025-07-05 diff --git a/release-non-auto-checks/WLR_XDG_VERSION b/release-non-auto-checks/WLR_XDG_VERSION deleted file mode 100644 index e981e3e..0000000 --- a/release-non-auto-checks/WLR_XDG_VERSION +++ /dev/null @@ -1,2 +0,0 @@ -3.0.1 -2025-07-05 diff --git a/release-non-auto-checks/acknowledge-contributors b/release-non-auto-checks/acknowledge-contributors deleted file mode 100644 index e981e3e..0000000 --- a/release-non-auto-checks/acknowledge-contributors +++ /dev/null @@ -1,2 +0,0 @@ -3.0.1 -2025-07-05 diff --git a/release-non-auto-checks/archwiki b/release-non-auto-checks/archwiki deleted file mode 100644 index e981e3e..0000000 --- a/release-non-auto-checks/archwiki +++ /dev/null @@ -1,2 +0,0 @@ -3.0.1 -2025-07-05 diff --git a/release-non-auto-checks/changelog-major-minor b/release-non-auto-checks/changelog-major-minor deleted file mode 100644 index e981e3e..0000000 --- a/release-non-auto-checks/changelog-major-minor +++ /dev/null @@ -1,2 +0,0 @@ -3.0.1 -2025-07-05 diff --git a/release-non-auto-checks/internal-wiki b/release-non-auto-checks/internal-wiki deleted file mode 100644 index e981e3e..0000000 --- a/release-non-auto-checks/internal-wiki +++ /dev/null @@ -1,2 +0,0 @@ -3.0.1 -2025-07-05 diff --git a/release-non-auto-checks/release-note b/release-non-auto-checks/release-note deleted file mode 100644 index e981e3e..0000000 --- a/release-non-auto-checks/release-note +++ /dev/null @@ -1,2 +0,0 @@ -3.0.1 -2025-07-05 diff --git a/release-non-auto-checks/reproducibility-checked b/release-non-auto-checks/reproducibility-checked deleted file mode 100644 index e981e3e..0000000 --- a/release-non-auto-checks/reproducibility-checked +++ /dev/null @@ -1,2 +0,0 @@ -3.0.1 -2025-07-05 diff --git a/release-non-auto-checks/security-to-man-page-info-transfer b/release-non-auto-checks/security-to-man-page-info-transfer deleted file mode 100644 index e981e3e..0000000 --- a/release-non-auto-checks/security-to-man-page-info-transfer +++ /dev/null @@ -1,2 +0,0 @@ -3.0.1 -2025-07-05 diff --git a/release-non-auto-checks/version-restrictions b/release-non-auto-checks/version-restrictions deleted file mode 100644 index e981e3e..0000000 --- a/release-non-auto-checks/version-restrictions +++ /dev/null @@ -1,2 +0,0 @@ -3.0.1 -2025-07-05 diff --git a/scripts/adjust-epoch b/scripts/adjust-epoch deleted file mode 100755 index 5cb93cc..0000000 --- a/scripts/adjust-epoch +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -if [[ -n ${MESON_SOURCE_ROOT} ]] -then - # shellcheck disable=2164 - cd "${MESON_SOURCE_ROOT}" -fi - -# shellcheck disable=2034 -ssepoch=$(date +%s) -sed -i -e "/secssinceepoch \=/s/[0-9]*$/$ssepoch/" meson.build diff --git a/scripts/create-release-artefacts b/scripts/create-release-artefacts deleted file mode 100755 index 367811e..0000000 --- a/scripts/create-release-artefacts +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -if [[ -n ${MESON_SOURCE_ROOT} ]] -then - # shellcheck disable=2164 - cd "${MESON_SOURCE_ROOT}" -fi - -readonly gpg_id="${1}" -readonly version="${2}" - -git archive --prefix=cagebreak/ -o "release_${version}.tar.gz" "tags/${version}" . - -rm -rf "release-artefacts_${version}" -mkdir "release-artefacts_${version}" - -rm -rf temp-rel-artefacts -meson setup temp-rel-artefacts -Dxwayland=true -Dman-pages=true --buildtype=release -ninja -C temp-rel-artefacts - -cp LICENSE "release-artefacts_${version}" -cp SECURITY.md "release-artefacts_${version}" -cp FAQ.md "release-artefacts_${version}" -cp README.md "release-artefacts_${version}" -cp temp-rel-artefacts/cagebreak "release-artefacts_${version}" -cp temp-rel-artefacts/cagebreak.1 "release-artefacts_${version}" -cp temp-rel-artefacts/cagebreak-config.5 "release-artefacts_${version}" -cp temp-rel-artefacts/cagebreak-socket.7 "release-artefacts_${version}" -cp signatures/cagebreak*.sig "release-artefacts_${version}" - -# shellcheck disable=2155 -export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) ; tar --sort=name --mtime= --owner=0 --group=0 --numeric-owner -czf "release-artefacts_${version}.tar.gz" "release-artefacts_${version}" - -gpg -u "${gpg_id}" --detach-sign "release-artefacts_${version}.tar.gz" -gpg -u "${gpg_id}" --detach-sign "release_${version}.tar.gz" - - -rm -rf temp-rel-artefacts diff --git a/scripts/create-signatures b/scripts/create-signatures deleted file mode 100755 index 182ad3d..0000000 --- a/scripts/create-signatures +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -if [[ -n ${MESON_SOURCE_ROOT} ]] -then - # shellcheck disable=2164 - cd "${MESON_SOURCE_ROOT}" -fi - -readonly gpg_id="${1}" -# shellcheck disable=2155 -readonly old_tags=$(git tag| tail -1) - -mv signatures/cagebreak.sig "signatures/${old_tags}-cagebreak.sig" -mv signatures/cagebreak.1.sig "signatures/${old_tags}-cagebreak.1.sig" -mv signatures/cagebreak-config.5.sig "signatures/${old_tags}-cagebreak-config.5.sig" -mv signatures/cagebreak-socket.7.sig "signatures/${old_tags}-cagebreak-socket.7.sig" - -git add "signatures/${old_tags}-cagebreak.sig" -git add "signatures/${old_tags}-cagebreak.1.sig" -git add "signatures/${old_tags}-cagebreak-config.5.sig" -git add "signatures/${old_tags}-cagebreak-socket.7.sig" - -rm -rf temp-sigs -meson setup temp-sigs -Dxwayland=true -Dman-pages=true --buildtype=release -ninja -C temp-sigs - -gpg -u "${gpg_id}" --detach-sign temp-sigs/cagebreak -gpg -u "${gpg_id}" --detach-sign temp-sigs/cagebreak.1 -gpg -u "${gpg_id}" --detach-sign temp-sigs/cagebreak-config.5 -gpg -u "${gpg_id}" --detach-sign temp-sigs/cagebreak-socket.7 - -cp temp-sigs/*.sig signatures/ - - -rm -rf temp-sigs diff --git a/scripts/fuzz b/scripts/fuzz deleted file mode 100755 index 87fb399..0000000 --- a/scripts/fuzz +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -readonly fuzzing_corpus="${1}" - -if [[ -n ${MESON_SOURCE_ROOT} ]] -then - # shellcheck disable=2164 - cd "${MESON_SOURCE_ROOT}" -fi - -rm -rf fuzzing-directory -CC=clang CCXFLAGS=-std=c11 meson setup fuzzing-directory -Dfuzz=true -Db_sanitize=address,undefined -Db_lundef=false -ninja -C fuzzing-directory/ -WLR_BACKENDS=headless ./fuzzing-directory/fuzz-parse -detect_leaks=0 -jobs=12 -max_len=50000 -close_fd_mask=3 "${fuzzing_corpus}" -rm -rf fuzzing-directory diff --git a/scripts/git-tag b/scripts/git-tag deleted file mode 100755 index d5db012..0000000 --- a/scripts/git-tag +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -readonly gpg_id="${1}" -readonly version="${2}" - -git tag -u "${gpg_id}" "${version}" HEAD diff --git a/scripts/install-development-environment b/scripts/install-development-environment deleted file mode 100755 index c5775b7..0000000 --- a/scripts/install-development-environment +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -sudo pacman -Syu --noconfirm git grep sed xorg-xev meson ninja clang gcc shellcheck jq openbsd-netcat gnupg binutils alacritty wlroots wayland wayland-protocols libxkbcommon cairo pango fontconfig libinput libevdev pkgconf scdoc systemd-libs # systemd-libs is included because of libudev - -if [[ -n ${MESON_SOURCE_ROOT} ]] -then - # shellcheck disable=2164 - cd "${MESON_SOURCE_ROOT}" -fi - -gpg --import keys/* diff --git a/scripts/output-hashes b/scripts/output-hashes deleted file mode 100755 index 93f6da5..0000000 --- a/scripts/output-hashes +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -if [[ -n ${MESON_SOURCE_ROOT} ]] -then - # shellcheck disable=2164 - cd "${MESON_SOURCE_ROOT}" -fi - -readonly version="${1}" - -rm -rf hashes -meson setup hashes -Dxwayland=true -Dman-pages=true --buildtype=release -ninja -C hashes - -cb256=$(sha256sum hashes/cagebreak | cut -d " " -f1) -cb512=$(sha512sum hashes/cagebreak | cut -d " " -f1) - -cb1man256=$(sha256sum hashes/cagebreak.1 | cut -d " " -f1) -cb1man512=$(sha512sum hashes/cagebreak.1 | cut -d " " -f1) - -cb5man256=$(sha256sum hashes/cagebreak-config.5 | cut -d " " -f1) -cb5man512=$(sha512sum hashes/cagebreak-config.5 | cut -d " " -f1) - -cb7man256=$(sha256sum hashes/cagebreak-socket.7 | cut -d " " -f1) -cb7man512=$(sha512sum hashes/cagebreak-socket.7 | cut -d " " -f1) - -echo "${version} cagebreak - - * sha 256: ${cb256} - * sha 512: ${cb512} - -${version} cagebreak.1 - - * sha 256: ${cb1man256} - * sha 512: ${cb1man512} - -${version} cagebreak-config.5 - - * sha 256: ${cb5man256} - * sha 512: ${cb5man512} - -${version} cagebreak-socket.7 - - * sha 256: ${cb7man256} - * sha 512: ${cb7man512} -" > local-hashes.txt - -rm -rf hashes diff --git a/scripts/set-version b/scripts/set-version deleted file mode 100755 index 9e36371..0000000 --- a/scripts/set-version +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -if [[ -n ${MESON_SOURCE_ROOT} ]] -then - # shellcheck disable=2164 - cd "${MESON_SOURCE_ROOT}" -fi - -# shellcheck disable=2034 -version="${1}" -sed -i -e "s/minversion\=[0-9]*\.[0-9]*.[0-9]*/minversion=$version/" README.md - - -sed -i -e "s/Version [0-9]*\.[0-9]*.[0-9]*/Version $version/" man/cagebreak.1.md -sed -i -e "s/Version [0-9]*\.[0-9]*.[0-9]*/Version $version/" man/cagebreak-config.5.md -sed -i -e "s/Version [0-9]*\.[0-9]*.[0-9]*/Version $version/" man/cagebreak-socket.7.md diff --git a/signatures/1.0.6.sig b/signatures/1.0.6.sig deleted file mode 100644 index 3a641be..0000000 Binary files a/signatures/1.0.6.sig and /dev/null differ diff --git a/signatures/1.1.0.sig b/signatures/1.1.0.sig deleted file mode 100644 index ac5a0e8..0000000 Binary files a/signatures/1.1.0.sig and /dev/null differ diff --git a/signatures/1.2.0.sig b/signatures/1.2.0.sig deleted file mode 100644 index 18255c9..0000000 Binary files a/signatures/1.2.0.sig and /dev/null differ diff --git a/signatures/1.2.1.sig b/signatures/1.2.1.sig deleted file mode 100644 index a37d71e..0000000 Binary files a/signatures/1.2.1.sig and /dev/null differ diff --git a/signatures/1.3.0.sig b/signatures/1.3.0.sig deleted file mode 100644 index 3c5c359..0000000 Binary files a/signatures/1.3.0.sig and /dev/null differ diff --git a/signatures/1.3.1.sig b/signatures/1.3.1.sig deleted file mode 100644 index 288094e..0000000 Binary files a/signatures/1.3.1.sig and /dev/null differ diff --git a/signatures/1.3.2.sig b/signatures/1.3.2.sig deleted file mode 100644 index dad0846..0000000 Binary files a/signatures/1.3.2.sig and /dev/null differ diff --git a/signatures/1.3.3.sig b/signatures/1.3.3.sig deleted file mode 100644 index 467b8fa..0000000 Binary files a/signatures/1.3.3.sig and /dev/null differ diff --git a/signatures/1.3.4.sig b/signatures/1.3.4.sig deleted file mode 100644 index 6809315..0000000 Binary files a/signatures/1.3.4.sig and /dev/null differ diff --git a/signatures/1.4.0.sig b/signatures/1.4.0.sig deleted file mode 100644 index 5482cbd..0000000 Binary files a/signatures/1.4.0.sig and /dev/null differ diff --git a/signatures/1.4.1.sig b/signatures/1.4.1.sig deleted file mode 100644 index 07c06c7..0000000 Binary files a/signatures/1.4.1.sig and /dev/null differ diff --git a/signatures/1.4.2.sig b/signatures/1.4.2.sig deleted file mode 100644 index af4b2f1..0000000 Binary files a/signatures/1.4.2.sig and /dev/null differ diff --git a/signatures/1.4.3.sig b/signatures/1.4.3.sig deleted file mode 100644 index e37900a..0000000 Binary files a/signatures/1.4.3.sig and /dev/null differ diff --git a/signatures/1.4.4.sig b/signatures/1.4.4.sig deleted file mode 100644 index 6480250..0000000 Binary files a/signatures/1.4.4.sig and /dev/null differ diff --git a/signatures/1.5.0.sig b/signatures/1.5.0.sig deleted file mode 100644 index 4310d30..0000000 Binary files a/signatures/1.5.0.sig and /dev/null differ diff --git a/signatures/1.5.1.sig b/signatures/1.5.1.sig deleted file mode 100644 index 0afd9ea..0000000 Binary files a/signatures/1.5.1.sig and /dev/null differ diff --git a/signatures/1.6.0.sig b/signatures/1.6.0.sig deleted file mode 100644 index 3ade030..0000000 Binary files a/signatures/1.6.0.sig and /dev/null differ diff --git a/signatures/1.7.0.sig b/signatures/1.7.0.sig deleted file mode 100644 index eebdb6c..0000000 Binary files a/signatures/1.7.0.sig and /dev/null differ diff --git a/signatures/1.7.1-cagebreak-config.5.sig b/signatures/1.7.1-cagebreak-config.5.sig deleted file mode 100644 index 048473e..0000000 Binary files a/signatures/1.7.1-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/1.7.1-cagebreak.1.sig b/signatures/1.7.1-cagebreak.1.sig deleted file mode 100644 index 35c9e1f..0000000 Binary files a/signatures/1.7.1-cagebreak.1.sig and /dev/null differ diff --git a/signatures/1.7.1.sig b/signatures/1.7.1.sig deleted file mode 100644 index e54765f..0000000 Binary files a/signatures/1.7.1.sig and /dev/null differ diff --git a/signatures/1.7.2-cagebreak-config.5.sig b/signatures/1.7.2-cagebreak-config.5.sig deleted file mode 100644 index a6facb1..0000000 Binary files a/signatures/1.7.2-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/1.7.2-cagebreak.1.sig b/signatures/1.7.2-cagebreak.1.sig deleted file mode 100644 index 17ef4b3..0000000 Binary files a/signatures/1.7.2-cagebreak.1.sig and /dev/null differ diff --git a/signatures/1.7.2.sig b/signatures/1.7.2.sig deleted file mode 100644 index 5fd3ee9..0000000 Binary files a/signatures/1.7.2.sig and /dev/null differ diff --git a/signatures/1.7.3-cagebreak-config.5.sig b/signatures/1.7.3-cagebreak-config.5.sig deleted file mode 100644 index 7461360..0000000 Binary files a/signatures/1.7.3-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/1.7.3-cagebreak.1.sig b/signatures/1.7.3-cagebreak.1.sig deleted file mode 100644 index 95b9fad..0000000 Binary files a/signatures/1.7.3-cagebreak.1.sig and /dev/null differ diff --git a/signatures/1.7.3.sig b/signatures/1.7.3.sig deleted file mode 100644 index c0e3497..0000000 Binary files a/signatures/1.7.3.sig and /dev/null differ diff --git a/signatures/1.7.4-cagebreak-config.5.sig b/signatures/1.7.4-cagebreak-config.5.sig deleted file mode 100644 index 0fa98a3..0000000 Binary files a/signatures/1.7.4-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/1.7.4-cagebreak.1.sig b/signatures/1.7.4-cagebreak.1.sig deleted file mode 100644 index a953951..0000000 Binary files a/signatures/1.7.4-cagebreak.1.sig and /dev/null differ diff --git a/signatures/1.7.4.sig b/signatures/1.7.4.sig deleted file mode 100644 index 22e1818..0000000 Binary files a/signatures/1.7.4.sig and /dev/null differ diff --git a/signatures/1.8.0-cagebreak-config.5.sig b/signatures/1.8.0-cagebreak-config.5.sig deleted file mode 100644 index c33bf84..0000000 Binary files a/signatures/1.8.0-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/1.8.0-cagebreak.1.sig b/signatures/1.8.0-cagebreak.1.sig deleted file mode 100644 index 5b92ae8..0000000 Binary files a/signatures/1.8.0-cagebreak.1.sig and /dev/null differ diff --git a/signatures/1.8.0.sig b/signatures/1.8.0.sig deleted file mode 100644 index a7634a9..0000000 Binary files a/signatures/1.8.0.sig and /dev/null differ diff --git a/signatures/1.8.1-cagebreak-config.5.sig b/signatures/1.8.1-cagebreak-config.5.sig deleted file mode 100644 index a8dcddb..0000000 Binary files a/signatures/1.8.1-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/1.8.1-cagebreak.1.sig b/signatures/1.8.1-cagebreak.1.sig deleted file mode 100644 index 1ded6a2..0000000 Binary files a/signatures/1.8.1-cagebreak.1.sig and /dev/null differ diff --git a/signatures/1.8.1.sig b/signatures/1.8.1.sig deleted file mode 100644 index ecd7a25..0000000 Binary files a/signatures/1.8.1.sig and /dev/null differ diff --git a/signatures/1.8.2-cagebreak-config.5.sig b/signatures/1.8.2-cagebreak-config.5.sig deleted file mode 100644 index ee831f3..0000000 Binary files a/signatures/1.8.2-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/1.8.2-cagebreak.1.sig b/signatures/1.8.2-cagebreak.1.sig deleted file mode 100644 index e4133eb..0000000 Binary files a/signatures/1.8.2-cagebreak.1.sig and /dev/null differ diff --git a/signatures/1.8.2.sig b/signatures/1.8.2.sig deleted file mode 100644 index 1aab7aa..0000000 Binary files a/signatures/1.8.2.sig and /dev/null differ diff --git a/signatures/1.8.3-cagebreak-config.5.sig b/signatures/1.8.3-cagebreak-config.5.sig deleted file mode 100644 index 2c25210..0000000 Binary files a/signatures/1.8.3-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/1.8.3-cagebreak.1.sig b/signatures/1.8.3-cagebreak.1.sig deleted file mode 100644 index e5280a3..0000000 Binary files a/signatures/1.8.3-cagebreak.1.sig and /dev/null differ diff --git a/signatures/1.8.3.sig b/signatures/1.8.3.sig deleted file mode 100644 index 6ac0f63..0000000 Binary files a/signatures/1.8.3.sig and /dev/null differ diff --git a/signatures/1.9.0-cagebreak-config.5.sig b/signatures/1.9.0-cagebreak-config.5.sig deleted file mode 100644 index d6ac6bb..0000000 Binary files a/signatures/1.9.0-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/1.9.0-cagebreak.1.sig b/signatures/1.9.0-cagebreak.1.sig deleted file mode 100644 index 47ba7f2..0000000 Binary files a/signatures/1.9.0-cagebreak.1.sig and /dev/null differ diff --git a/signatures/1.9.0.sig b/signatures/1.9.0.sig deleted file mode 100644 index 2cc14a8..0000000 Binary files a/signatures/1.9.0.sig and /dev/null differ diff --git a/signatures/1.9.1-cagebreak-config.sig b/signatures/1.9.1-cagebreak-config.sig deleted file mode 100644 index 7349ebc..0000000 Binary files a/signatures/1.9.1-cagebreak-config.sig and /dev/null differ diff --git a/signatures/1.9.1-cagebreak.1.sig b/signatures/1.9.1-cagebreak.1.sig deleted file mode 100644 index e0a399b..0000000 Binary files a/signatures/1.9.1-cagebreak.1.sig and /dev/null differ diff --git a/signatures/1.9.1-cagebreak.sig b/signatures/1.9.1-cagebreak.sig deleted file mode 100644 index 1813ed2..0000000 Binary files a/signatures/1.9.1-cagebreak.sig and /dev/null differ diff --git a/signatures/2.0.0-cagebreak-config.5.sig b/signatures/2.0.0-cagebreak-config.5.sig deleted file mode 100644 index 0e839de..0000000 Binary files a/signatures/2.0.0-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/2.0.0-cagebreak-socket.7.sig b/signatures/2.0.0-cagebreak-socket.7.sig deleted file mode 100644 index 6c5048b..0000000 Binary files a/signatures/2.0.0-cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/2.0.0-cagebreak.1.sig b/signatures/2.0.0-cagebreak.1.sig deleted file mode 100644 index 3dfee28..0000000 Binary files a/signatures/2.0.0-cagebreak.1.sig and /dev/null differ diff --git a/signatures/2.0.0-cagebreak.sig b/signatures/2.0.0-cagebreak.sig deleted file mode 100644 index 93517d0..0000000 Binary files a/signatures/2.0.0-cagebreak.sig and /dev/null differ diff --git a/signatures/2.0.1-cagebreak-config.5.sig b/signatures/2.0.1-cagebreak-config.5.sig deleted file mode 100644 index c2c27ba..0000000 Binary files a/signatures/2.0.1-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/2.0.1-cagebreak-socket.7.sig b/signatures/2.0.1-cagebreak-socket.7.sig deleted file mode 100644 index d7dfe41..0000000 Binary files a/signatures/2.0.1-cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/2.0.1-cagebreak.1.sig b/signatures/2.0.1-cagebreak.1.sig deleted file mode 100644 index 02074e9..0000000 Binary files a/signatures/2.0.1-cagebreak.1.sig and /dev/null differ diff --git a/signatures/2.0.1-cagebreak.sig b/signatures/2.0.1-cagebreak.sig deleted file mode 100644 index f557280..0000000 Binary files a/signatures/2.0.1-cagebreak.sig and /dev/null differ diff --git a/signatures/2.1.0-cagebreak-config.5.sig b/signatures/2.1.0-cagebreak-config.5.sig deleted file mode 100644 index 25072cb..0000000 Binary files a/signatures/2.1.0-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/2.1.0-cagebreak-socket.7.sig b/signatures/2.1.0-cagebreak-socket.7.sig deleted file mode 100644 index 67c2e16..0000000 Binary files a/signatures/2.1.0-cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/2.1.0-cagebreak.1.sig b/signatures/2.1.0-cagebreak.1.sig deleted file mode 100644 index b0c8dc1..0000000 Binary files a/signatures/2.1.0-cagebreak.1.sig and /dev/null differ diff --git a/signatures/2.1.0-cagebreak.sig b/signatures/2.1.0-cagebreak.sig deleted file mode 100644 index f2f774a..0000000 Binary files a/signatures/2.1.0-cagebreak.sig and /dev/null differ diff --git a/signatures/2.1.1-cagebreak-config.5.sig b/signatures/2.1.1-cagebreak-config.5.sig deleted file mode 100644 index e25e49c..0000000 Binary files a/signatures/2.1.1-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/2.1.1-cagebreak-socket.7.sig b/signatures/2.1.1-cagebreak-socket.7.sig deleted file mode 100644 index 6b1a6a5..0000000 Binary files a/signatures/2.1.1-cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/2.1.1-cagebreak.1.sig b/signatures/2.1.1-cagebreak.1.sig deleted file mode 100644 index 7674f52..0000000 Binary files a/signatures/2.1.1-cagebreak.1.sig and /dev/null differ diff --git a/signatures/2.1.1-cagebreak.sig b/signatures/2.1.1-cagebreak.sig deleted file mode 100644 index c71037f..0000000 Binary files a/signatures/2.1.1-cagebreak.sig and /dev/null differ diff --git a/signatures/2.1.2-cagebreak-config.5.sig b/signatures/2.1.2-cagebreak-config.5.sig deleted file mode 100644 index 93f0f2b..0000000 Binary files a/signatures/2.1.2-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/2.1.2-cagebreak-socket.7.sig b/signatures/2.1.2-cagebreak-socket.7.sig deleted file mode 100644 index 6797b53..0000000 Binary files a/signatures/2.1.2-cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/2.1.2-cagebreak.1.sig b/signatures/2.1.2-cagebreak.1.sig deleted file mode 100644 index feaa1b9..0000000 Binary files a/signatures/2.1.2-cagebreak.1.sig and /dev/null differ diff --git a/signatures/2.1.2-cagebreak.sig b/signatures/2.1.2-cagebreak.sig deleted file mode 100644 index 4e3a176..0000000 Binary files a/signatures/2.1.2-cagebreak.sig and /dev/null differ diff --git a/signatures/2.2.1-cagebreak-config.5.sig b/signatures/2.2.1-cagebreak-config.5.sig deleted file mode 100644 index 4a959e1..0000000 Binary files a/signatures/2.2.1-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/2.2.1-cagebreak-socket.7.sig b/signatures/2.2.1-cagebreak-socket.7.sig deleted file mode 100644 index c2006c1..0000000 Binary files a/signatures/2.2.1-cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/2.2.1-cagebreak.1.sig b/signatures/2.2.1-cagebreak.1.sig deleted file mode 100644 index cdbd781..0000000 Binary files a/signatures/2.2.1-cagebreak.1.sig and /dev/null differ diff --git a/signatures/2.2.1-cagebreak.sig b/signatures/2.2.1-cagebreak.sig deleted file mode 100644 index f24848b..0000000 Binary files a/signatures/2.2.1-cagebreak.sig and /dev/null differ diff --git a/signatures/2.2.2-cagebreak-config.5.sig b/signatures/2.2.2-cagebreak-config.5.sig deleted file mode 100644 index 811fe37..0000000 Binary files a/signatures/2.2.2-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/2.2.2-cagebreak-socket.7.sig b/signatures/2.2.2-cagebreak-socket.7.sig deleted file mode 100644 index e46522f..0000000 Binary files a/signatures/2.2.2-cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/2.2.2-cagebreak.1.sig b/signatures/2.2.2-cagebreak.1.sig deleted file mode 100644 index 36b2c99..0000000 Binary files a/signatures/2.2.2-cagebreak.1.sig and /dev/null differ diff --git a/signatures/2.2.2-cagebreak.sig b/signatures/2.2.2-cagebreak.sig deleted file mode 100644 index ca4ae14..0000000 Binary files a/signatures/2.2.2-cagebreak.sig and /dev/null differ diff --git a/signatures/2.2.3-cagebreak-config.5.sig b/signatures/2.2.3-cagebreak-config.5.sig deleted file mode 100644 index 6d7f6c1..0000000 Binary files a/signatures/2.2.3-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/2.2.3-cagebreak-socket.7.sig b/signatures/2.2.3-cagebreak-socket.7.sig deleted file mode 100644 index 5e37733..0000000 Binary files a/signatures/2.2.3-cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/2.2.3-cagebreak.1.sig b/signatures/2.2.3-cagebreak.1.sig deleted file mode 100644 index 14ac7ab..0000000 Binary files a/signatures/2.2.3-cagebreak.1.sig and /dev/null differ diff --git a/signatures/2.2.3-cagebreak.sig b/signatures/2.2.3-cagebreak.sig deleted file mode 100644 index b061305..0000000 Binary files a/signatures/2.2.3-cagebreak.sig and /dev/null differ diff --git a/signatures/2.3.0-cagebreak-config.5.sig b/signatures/2.3.0-cagebreak-config.5.sig deleted file mode 100644 index fdbf9e3..0000000 Binary files a/signatures/2.3.0-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/2.3.0-cagebreak-socket.7.sig b/signatures/2.3.0-cagebreak-socket.7.sig deleted file mode 100644 index 274e8e5..0000000 Binary files a/signatures/2.3.0-cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/2.3.0-cagebreak.1.sig b/signatures/2.3.0-cagebreak.1.sig deleted file mode 100644 index 8ed93af..0000000 Binary files a/signatures/2.3.0-cagebreak.1.sig and /dev/null differ diff --git a/signatures/2.3.0-cagebreak.sig b/signatures/2.3.0-cagebreak.sig deleted file mode 100644 index e106209..0000000 Binary files a/signatures/2.3.0-cagebreak.sig and /dev/null differ diff --git a/signatures/2.3.1-cagebreak-config.5.sig b/signatures/2.3.1-cagebreak-config.5.sig deleted file mode 100644 index 62cebfa..0000000 Binary files a/signatures/2.3.1-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/2.3.1-cagebreak-socket.7.sig b/signatures/2.3.1-cagebreak-socket.7.sig deleted file mode 100644 index aef73c0..0000000 Binary files a/signatures/2.3.1-cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/2.3.1-cagebreak.1.sig b/signatures/2.3.1-cagebreak.1.sig deleted file mode 100644 index 3bcca8b..0000000 Binary files a/signatures/2.3.1-cagebreak.1.sig and /dev/null differ diff --git a/signatures/2.3.1-cagebreak.sig b/signatures/2.3.1-cagebreak.sig deleted file mode 100644 index a6fd9dd..0000000 Binary files a/signatures/2.3.1-cagebreak.sig and /dev/null differ diff --git a/signatures/2.4.0-cagebreak-config.5.sig b/signatures/2.4.0-cagebreak-config.5.sig deleted file mode 100644 index 46ef4a5..0000000 Binary files a/signatures/2.4.0-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/2.4.0-cagebreak-socket.7.sig b/signatures/2.4.0-cagebreak-socket.7.sig deleted file mode 100644 index 47cc4dc..0000000 Binary files a/signatures/2.4.0-cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/2.4.0-cagebreak.1.sig b/signatures/2.4.0-cagebreak.1.sig deleted file mode 100644 index b960e8a..0000000 Binary files a/signatures/2.4.0-cagebreak.1.sig and /dev/null differ diff --git a/signatures/2.4.0-cagebreak.sig b/signatures/2.4.0-cagebreak.sig deleted file mode 100644 index ac519a8..0000000 Binary files a/signatures/2.4.0-cagebreak.sig and /dev/null differ diff --git a/signatures/3.0.0-cagebreak-config.5.sig b/signatures/3.0.0-cagebreak-config.5.sig deleted file mode 100644 index 4715f77..0000000 Binary files a/signatures/3.0.0-cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/3.0.0-cagebreak-socket.7.sig b/signatures/3.0.0-cagebreak-socket.7.sig deleted file mode 100644 index 9e5bf85..0000000 Binary files a/signatures/3.0.0-cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/3.0.0-cagebreak.1.sig b/signatures/3.0.0-cagebreak.1.sig deleted file mode 100644 index a548c3e..0000000 Binary files a/signatures/3.0.0-cagebreak.1.sig and /dev/null differ diff --git a/signatures/3.0.0-cagebreak.sig b/signatures/3.0.0-cagebreak.sig deleted file mode 100644 index 1c15d69..0000000 Binary files a/signatures/3.0.0-cagebreak.sig and /dev/null differ diff --git a/signatures/cagebreak-config.5.sig b/signatures/cagebreak-config.5.sig deleted file mode 100644 index cf8ea58..0000000 Binary files a/signatures/cagebreak-config.5.sig and /dev/null differ diff --git a/signatures/cagebreak-socket.7.sig b/signatures/cagebreak-socket.7.sig deleted file mode 100644 index 3c10d8b..0000000 Binary files a/signatures/cagebreak-socket.7.sig and /dev/null differ diff --git a/signatures/cagebreak.1.sig b/signatures/cagebreak.1.sig deleted file mode 100644 index 1ba9a29..0000000 Binary files a/signatures/cagebreak.1.sig and /dev/null differ diff --git a/signatures/cagebreak.sig b/signatures/cagebreak.sig deleted file mode 100644 index f8532d6..0000000 Binary files a/signatures/cagebreak.sig and /dev/null differ diff --git a/test/arguments b/test/arguments deleted file mode 100644 index b396992..0000000 --- a/test/arguments +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -testdir="${MESONCURRENTCONFIGDIR}/_build-arguments/" -mkdir "${testdir}" -mkdir "${testdir}/arguments/" - -readonly helptext="Usage: ./cagebreak [OPTIONS] - - -c Load configuration file from - -e Enable socket - -h Display this help message - -s Show information about the current setup and exit - -v Show the version number and exit - --bs \"bad security\": Enable features with potential security implications (see man page)" - -readonly basicheadless="Cagebreak ${1} is running on Wayland display wayland-.* -Outputs: - \\* HEADLESS-1 -Inputs:" - -RESULT=0 - -# check -c option -## Check without config file -[[ $(2>&1 ./cagebreak -c | head -1 ) = "./cagebreak: option requires an argument -- 'c'" ]] || RESULT=1 -[[ $(2>&1 ./cagebreak -c | tail -n +2 ) = "$helptext" ]] || RESULT=1 -## Check with config file -cp "${MESONCURRENTCONFIGDIR}/test/testing-configurations/-c-config" "${testdir}/arguments/" -sed -i "s|CONFIGPATH|${testdir}\/arguments\/result|g" "${testdir}/arguments/-c-config" -WLR_BACKENDS=headless ./cagebreak -c "${testdir}/arguments/-c-config" -sync -[[ $(cat "${testdir}/arguments/result") = "SUCCESS" ]] || RESULT=1 - -# check -e option -## Check without socket -cp "${MESONCURRENTCONFIGDIR}/test/testing-configurations/config" "${testdir}/arguments" -readonly oldsocket=$CAGEBREAK_SOCKET -sed -i "s|CONFIGPATH|${testdir}\/arguments\/socket|g" "${testdir}/arguments/config" -(WLR_BACKENDS=headless ./cagebreak -c "${testdir}/arguments/config") -sync -[[ $(cat "${testdir}/arguments/socket") = "${oldsocket}" ]] || RESULT=1 -## Check with socket -cp "${MESONCURRENTCONFIGDIR}/test/testing-configurations/config" "${testdir}/arguments" -sed -i "s|CONFIGPATH|$testdir\/arguments\/socket|g" "${testdir}/arguments/config" -(WLR_BACKENDS=headless ./cagebreak -e -c "${testdir}/arguments/config") -sync -[[ ! $(cat "${testdir}/arguments/socket") = "${oldsocket}" ]] || RESULT=1 - -# check -h option -[[ $(./cagebreak -h) = "$helptext" ]] || RESULT=1 - -# check -s option -[[ $(WLR_BACKENDS=headless ./cagebreak -s) =~ ${basicheadless} ]] || RESULT=1 - - -# check -v option -[[ $(./cagebreak -v) = "Cagebreak version $1" ]] || RESULT=1 - -rm -rf "${testdir}" - -exit "${RESULT}" diff --git a/test/build-w-o-warnings b/test/build-w-o-warnings deleted file mode 100644 index 24c5e3d..0000000 --- a/test/build-w-o-warnings +++ /dev/null @@ -1,15 +0,0 @@ -#! /bin/sh -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -RESULT=0 - -# shellcheck disable=SC2164 -cd "${MESONCURRENTCONFIGDIR}" -echo "Build standard release build" -rm -rf _build-w-o-warnings -meson setup _build-w-o-warnings -Dxwayland=true -Dman-pages=true --buildtype=release --fatal-meson-warnings || RESULT=1 -ninja -C _build-w-o-warnings || RESULT=1 -rm -rf _build-w-o-warnings - -exit "${RESULT}" diff --git a/test/build-w-o-xwayland b/test/build-w-o-xwayland deleted file mode 100644 index 1817490..0000000 --- a/test/build-w-o-xwayland +++ /dev/null @@ -1,15 +0,0 @@ -#! /bin/sh -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -RESULT=0 - -# shellcheck disable=2164 -cd "${MESONCURRENTCONFIGDIR}" -echo "Build without xwayland" -rm -rf _build-w-o-xwayland -meson setup _build-w-o-xwayland -Dxwayland=false -Dman-pages=false --buildtype=release --fatal-meson-warnings || RESULT=1 -ninja -C _build-w-o-xwayland || RESULT=1 -rm -rf _build-w-o-xwayland - -exit "${RESULT}" diff --git a/test/check-artefacts b/test/check-artefacts deleted file mode 100644 index 109c604..0000000 --- a/test/check-artefacts +++ /dev/null @@ -1,27 +0,0 @@ -#! /bin/sh -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -RESULT=0 - -readonly version="${1}" - -# shellcheck disable=SC2164 -cd "${MESONCURRENTCONFIGDIR}" - -gpg --verify "release_${version}.tar.gz.sig" || RESULT=1 -gpg --verify "release-artefacts_${version}.tar.gz.sig" || RESULT=1 - -tar -xvf "release_${version}.tar.gz" -cd cagebreak || exit 1 -meson setup build -Dxwayland=true -Dman-pages=true --buildtype=release -ninja -C build -gpg --verify ../signatures/cagebreak.sig build/cagebreak || RESULT=1 -gpg --verify ../signatures/cagebreak.1.sig build/cagebreak.1 || RESULT=1 -gpg --verify ../signatures/cagebreak-config.5.sig build/cagebreak-config.5 || RESULT=1 -gpg --verify ../signatures/cagebreak-socket.7.sig build/cagebreak-socket.7 || RESULT=1 -# shellcheck disable=2103 -cd .. -rm -rf cagebreak - -exit "${RESULT}" diff --git a/test/clang-format b/test/clang-format deleted file mode 100644 index ca081bd..0000000 --- a/test/clang-format +++ /dev/null @@ -1,26 +0,0 @@ -#! /bin/sh -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -readonly declared_deps="${*}" -readonly deps="${declared_deps}" - -RESULT=0 - -set -x - -echo "${MESONCURRENTCONFIGDIR}" - -for file in ${deps} -do - echo "${file}" - if (clang-format -Werror --dry-run "${MESONCURRENTCONFIGDIR}/${file}") - then - echo " [x] clang-format" - else - RESULT=1 - echo " [ ] clang-format" - fi -done - -exit "${RESULT}" diff --git a/test/copyright-license b/test/copyright-license deleted file mode 100644 index 6d98f32..0000000 --- a/test/copyright-license +++ /dev/null @@ -1,50 +0,0 @@ -#! /bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -readonly declared_deps="${*}" -readonly hardcoded_deps="meson_options.txt meson.build" -# shellcheck disable=2155,2164,2046 -readonly test_deps=$(cd "${MESONCURRENTCONFIGDIR}" ; find . -type f | grep test/) -# shellcheck disable=2155,2164,2046 -readonly examples_deps=$(cd "${MESONCURRENTCONFIGDIR}" ; find . -type f | grep examples/) -# shellcheck disable=2155,2164,2046 -readonly example_scripts_deps=$(cd "${MESONCURRENTCONFIGDIR}" ; find . -type f | grep example_scripts/) -# shellcheck disable=2155,2164,2046 -readonly scripts_deps=$(cd "${MESONCURRENTCONFIGDIR}" ; find . -type f | grep scripts/) -readonly deps="${declared_deps} ${hardcoded_deps} ${test_deps} ${examples_deps} ${example_scripts_deps} ${scripts_deps}" -# shellcheck disable=2046,2155 -readonly curryear=$(date +%Y) - -RESULT=0 - -for file in ${deps} -do - echo "${file}" - if (grep -q "Copyright.*${curryear}, project-repo.* and the cagebreak contributors" "$MESONCURRENTCONFIGDIR/${file}") - then - echo " [x] Copyright Notice" - else - RESULT=1 - echo " [ ] Copyright Notice" - fi - if (grep -q "SPDX-License-Identifier: MIT" "$MESONCURRENTCONFIGDIR/${file}") - then - echo " [x] SPDX-License-Identifier" - else - RESULT=1 - echo " [ ] SPDX-License-Identifier" - fi -done - -[[ "${MESONLICENSE}" = "MIT" ]] || RESULT=1 - -# shellcheck disable=2164 -cd "${MESONCURRENTCONFIGDIR}" - -# shellcheck disable=2046,2002 -[[ $(cat LICENSE) = $( cat README.md | tail -$(wc -l LICENSE)) ]] || RESULT=1 - -[[ "Copyright (c) 2020-${curryear} The Cagebreak authors" = $( head -1 LICENSE) ]] || RESULT=1 - -exit "${RESULT}" diff --git a/test/environment-variables b/test/environment-variables deleted file mode 100644 index 114419f..0000000 --- a/test/environment-variables +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, 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}" diff --git a/test/git-tag b/test/git-tag deleted file mode 100644 index 15677e7..0000000 --- a/test/git-tag +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -VERSION=$1 -RESULT=0 - -if git tag -v "${VERSION}" -then - echo "[x] git tag" -else - RESULT=1 - echo "[ ] git tag" -fi - -exit "${RESULT}" diff --git a/test/gpg-signatures b/test/gpg-signatures deleted file mode 100644 index 554ea7d..0000000 --- a/test/gpg-signatures +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -RESULT=0 - -# cagebreak -if gpg --verify ../signatures/cagebreak.sig cagebreak -then - echo "[x] cagebreak binary" -else - RESULT=1 - echo "[ ] cagebreak binary" -fi - -# cagebreak-man -if gpg --verify ../signatures/cagebreak.1.sig cagebreak.1 -then - echo "[x] cagebreak.1 man" -else - RESULT=1 - echo "[ ] cagebreak.1 man" -fi - -# cagebreak-config man -if gpg --verify ../signatures/cagebreak-config.5.sig cagebreak-config.5 -then - echo "[x] cagebreak-config.5 man" -else - RESULT=1 - echo "[ ] cagebreak-config.5 man" -fi - -# cagebreak-socket man -if gpg --verify ../signatures/cagebreak-socket.7.sig cagebreak-socket.7 -then - echo "[x] cagebreak-socket.7 man" -else - RESULT=1 - echo "[ ] cagebreak-socket.7 man" -fi - -exit "${RESULT}" diff --git a/test/gpg-validity b/test/gpg-validity deleted file mode 100644 index fee3935..0000000 --- a/test/gpg-validity +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -RESULT=0 - -# shellcheck disable=2164 -cd "${MESONCURRENTCONFIGDIR}/keys" -stoday=$(date +%s) -signingmargin=120 - -# shellcheck disable=2046 -skey13exptime=$(date --date=$(gpg --show-keys cagebreak_signing_key_13\@project-repo.co.pub | tail -2 | head -1 | cut -d " " -f 8 | rev | cut -c2- | rev) '+%s') -# shellcheck disable=2046 -skey14exptime=$(date --date=$(gpg --show-keys cagebreak_signing_key_14\@project-repo.co.pub | tail -2 | head -1 | cut -d " " -f 8 | rev | cut -c2- | rev) '+%s') -# shellcheck disable=2046 -mailexptime=$(date --date=$(gpg --show-keys cagebreak\@project-repo.co.pub | tail -2 | head -1 | cut -d " " -f 8 | rev | cut -c2- | rev) '+%s') - -# signing keys -## signing key 13 -if [[ $(( (stoday - skey13exptime) / 86400 )) -lt $signingmargin ]] -then - echo "[x] signign key 13" -else - RESULT=1 - echo "[ ] signing key 13" -fi -## signing key 14 -if [[ $(( (stoday - skey14exptime) / 86400 )) -lt $signingmargin ]] -then - echo "[x] signign key 14" -else - RESULT=1 - echo "[ ] signing key 14" -fi - -# email key -if [[ $(( (stoday - mailexptime) / 86400 )) -lt $signingmargin ]] -then - echo "[x] mail key" -else - RESULT=1 - echo "[ ] mail key" -fi - -exit "${RESULT}" diff --git a/test/hashes-md b/test/hashes-md deleted file mode 100644 index 56bfe4d..0000000 --- a/test/hashes-md +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -VERSION=$1 -RESULT=0 - -# shellcheck disable=2164 -cd "${MESONCURRENTCONFIGDIR}" - -cb256=$(sha256sum build/cagebreak | cut -d " " -f1 ) -cb256man1=$(sha256sum build/cagebreak.1 | cut -d " " -f1 ) -cb256man5=$(sha256sum build/cagebreak-config.5 | cut -d " " -f1 ) -cb256man7=$(sha256sum build/cagebreak-socket.7 | cut -d " " -f1 ) -cb512=$(sha512sum build/cagebreak | cut -d " " -f1 ) -cb512man1=$(sha512sum build/cagebreak.1 | cut -d " " -f1 ) -cb512man5=$(sha512sum build/cagebreak-config.5 | cut -d " " -f1 ) -cb512man7=$(sha512sum build/cagebreak-socket.7 | cut -d " " -f1 ) - -hashesdoc=$(head -21 Hashes.md) - -testdoc="# Hashes - -$VERSION cagebreak - - * sha 256: ${cb256} - * sha 512: ${cb512} - -$VERSION cagebreak.1 - - * sha 256: ${cb256man1} - * sha 512: ${cb512man1} - -$VERSION cagebreak-config.5 - - * sha 256: ${cb256man5} - * sha 512: ${cb512man5} - -$VERSION cagebreak-socket.7 - - * sha 256: ${cb256man7} - * sha 512: ${cb512man7}" - -# email key -if [[ "${hashesdoc}" = "${testdoc}" ]] -then - echo "[x] Hashes.md" -else - RESULT=1 - echo "[ ] Hashes.md" -fi - -exit "${RESULT}" diff --git a/test/illegal-strings b/test/illegal-strings deleted file mode 100644 index 7fdccaf..0000000 --- a/test/illegal-strings +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -RESULT=0 - -# shellcheck disable=2164 -cd "${MESONCURRENTCONFIGDIR}" - -# Check that no TODO statements remain in the release directory -if grep --exclude='test/illegal-strings' --exclude-dir='build' --exclude-dir='test' --exclude-dir='fuzz_corpus' -Rn "TODO" ./** -then - echo "[x] TODO" -else - RESULT=1 - echo "[ ] TODO" -fi - -exit "${RESULT}" diff --git a/test/man-pages b/test/man-pages deleted file mode 100644 index 0daf954..0000000 --- a/test/man-pages +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# Copyright 2024 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -RESULT=0 - -cd "${MESONCURRENTCONFIGDIR}" || exit 1 - -tail_license=$(tail -n 17 LICENSE) -tail_man1=$(tail -n 17 man/cagebreak.1.md) -tail_man5=$(tail -n 17 man/cagebreak-config.5.md) -tail_man7=$(tail -n 17 man/cagebreak-socket.7.md) - -[[ $tail_license = "$tail_man1" ]] || RESULT=1 -[[ $tail_license = "$tail_man5" ]] || RESULT=1 -[[ $tail_license = "$tail_man7" ]] || RESULT=1 - -if [[ $RESULT -eq 0 ]] -then -echo "[x] License ending" -else -echo "[ ] License ending" -fi - -for man_page in man/* -do - grep -q "$man_page" manuals.md || RESULT=1 -done - -if [[ $RESULT -eq 0 ]] -then -echo "[x] All man pages listed in manuals.md" -else -echo "[ ] All man pages listed in manuals.md" -fi - -exit "${RESULT}" diff --git a/test/non-auto-tests b/test/non-auto-tests deleted file mode 100644 index 1f40aee..0000000 --- a/test/non-auto-tests +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -VERSION=$1 -RESULT=0 - -# shellcheck disable=2164 -cd "${MESONCURRENTCONFIGDIR}/release-non-auto-checks" - -filevar="$VERSION -$(date +%Y-%m-%d)" - -for check in ./* -do - if [[ $(cat "$check") = "${filevar}" ]] - then - echo "[x] ${check}" - else - RESULT=1 - echo "[ ] ${check}" - fi -done - -exit "${RESULT}" diff --git a/test/scan-build b/test/scan-build deleted file mode 100644 index 5cd6028..0000000 --- a/test/scan-build +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -RESULT=0 - -# shellcheck disable=2164 -cd "${MESONCURRENTCONFIGDIR}" -rm -rf _build-scan-build -meson setup _build-scan-build -Dxwayland=true -Dman-pages=true --buildtype=release || RESULT=1 -SCANBUILD="$(pwd)/test/testing-configurations/my-scan-build" ninja -C _build-scan-build scan-build || RESULT=1 -rm -rf _build-scan-build - -exit "${RESULT}" diff --git a/test/script-executability b/test/script-executability deleted file mode 100644 index 14d9b61..0000000 --- a/test/script-executability +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# Copyright 2024 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT -# Each example script must contain the header unmodified. - -# shellcheck disable=2164 -cd "${MESONCURRENTCONFIGDIR}" - -RESULT=0 - -example_all=$(find example_scripts/) -example_exec=$(find example_scripts/ -executable) -[[ $example_all = "$example_exec" ]] || RESULT=1 - -scripts_all=$(find scripts/) -scripts_exec=$(find scripts/ -executable) -[[ $scripts_all = "$scripts_exec" ]] || RESULT=1 - -exit $RESULT diff --git a/test/script-header b/test/script-header deleted file mode 100644 index 313d539..0000000 --- a/test/script-header +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# Copyright 2024 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT -# Each example script must contain the header unmodified. - -# shellcheck disable=2164 -cd "${MESONCURRENTCONFIGDIR}" - -RESULT=0 - -for file in example_scripts/* -do - # shellcheck disable=2002 - grep "$(cat test/testing-configurations/cb_script_header.sh | tail -n +3 | tr '\n' ' ' )" <(cat "$file" | tr '\n' ' ') || RESULT=1 -done - -exit $RESULT diff --git a/test/shellcheck b/test/shellcheck deleted file mode 100644 index 9c5bea1..0000000 --- a/test/shellcheck +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -RESULT=0 - -# shellcheck disable=2164 -cd "${MESONCURRENTCONFIGDIR}/test" -# shellcheck disable=2046 -shellcheck --source-path=../example_scripts/ $(ls -Itesting-configurations) || RESULT=1 - -cd "${MESONCURRENTCONFIGDIR}/example_scripts/" || RESULT=1 -shellcheck ./* || RESULT=1 - -cd "${MESONCURRENTCONFIGDIR}/scripts/" || RESULT=1 -shellcheck ./* || RESULT=1 - -exit "${RESULT}" diff --git a/test/testing-configurations/-c-config b/test/testing-configurations/-c-config deleted file mode 100644 index 370a711..0000000 --- a/test/testing-configurations/-c-config +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT -exec (echo "SUCCESS" > CONFIGPATH ) -quit diff --git a/test/testing-configurations/cb_script_header.sh b/test/testing-configurations/cb_script_header.sh deleted file mode 100644 index e205f60..0000000 --- a/test/testing-configurations/cb_script_header.sh +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright 2024 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT -named_pipe_send="$(mktemp -u)" -named_pipe_recv="$(mktemp -u)" -mkfifo "${named_pipe_send}" -mkfifo "${named_pipe_recv}" -nc -U "${CAGEBREAK_SOCKET}" < "${named_pipe_send}" > "${named_pipe_recv}"& -# The file descriptor 3 is set up to send commands to cagebreak and file -# descriptor 4 can be used to read events. Notice that events will pile up in -# file descriptor 4, so it is a good idea to continuously read from it or to -# clear it before starting a new transaction. -exec 3>"${named_pipe_send}" -exec 4<"${named_pipe_recv}" -# When the script exits, the os will clean up the pipe -rm "${named_pipe_recv}" -rm "${named_pipe_send}" diff --git a/test/testing-configurations/config b/test/testing-configurations/config deleted file mode 100644 index d5fe23e..0000000 --- a/test/testing-configurations/config +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT -exec (echo $CAGEBREAK_SOCKET > CONFIGPATH) -quit diff --git a/test/testing-configurations/env-var-config b/test/testing-configurations/env-var-config deleted file mode 100644 index 370a711..0000000 --- a/test/testing-configurations/env-var-config +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT -exec (echo "SUCCESS" > CONFIGPATH ) -quit diff --git a/test/testing-configurations/my-scan-build b/test/testing-configurations/my-scan-build deleted file mode 100755 index a329d2d..0000000 --- a/test/testing-configurations/my-scan-build +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -scan-build --status-bugs "$@" diff --git a/test/versions b/test/versions deleted file mode 100644 index d56a4f9..0000000 --- a/test/versions +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# Copyright 2023 - 2025, project-repo and the cagebreak contributors -# SPDX-License-Identifier: MIT - -readonly newversion="${1}" -# shellcheck disable=2155 -readonly oldversion=$(git describe --match=master --abbrev=0) - -RESULT=0 - -# meson.build version -if [[ $(vercmp "${newversion}" "${oldversion}") -gt 0 ]] -then - echo "[x] meson.build version respects semantic versioning" -else - RESULT=1 - echo "[ ] meson.build version is NOT semantic version" -fi - -# shellcheck disable=2164 -cd "${MESONCURRENTCONFIGDIR}" - -for file in man/* -do - if [[ $(head -1 "${file}" | cut -d ' ' -f 3 | rev | cut -c2- | rev ) = "${newversion}" ]] - then - echo "[x] ${file} version is meson.build version" - else - RESULT=1 - echo "[ ] ${file} version is NOT meson.build version" - fi -done - -if head -3 README.md | tail -1 | grep -q "minversion=${newversion}" -then - echo "[x] README.md repology minversion" -else - RESULT=1 - echo "[ ] README.md repology minversion" -fi - -exit "${RESULT}"