mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-19 07:08:48 +01:00
fix(scripts): the Linux scripts find the repository from scripts/linux/
The scripts were written for a KDE-only repository root (komorebi-for-kde/, scripts/ one level below it). They now live in scripts/linux/ of the consolidated repository: - run-kde looks for the repository two directories above itself (flake.nix at the root) and no longer knows the komorebi-for-kde/ subdirectory; its comments name nix/linux and docs/linux - vm-mac cd`s two levels up, usage and comments name scripts/linux/vm-mac - sync-e2e-core and scenario-status read nix/linux/tests/vm/lib, and usage lines name the new paths (scenario-status resolves the library with parents[2]) - wsl2-probe.sh names docs/linux/dev/wsl2-probe.md and prints "komorebi (KDE Plasma)" instead of komorebi-for-kde in its report header - compare-gen.py is stale by design: the docstring now says so a second time (layout) and names the new path of COMPARE.md; the logic is not repaired Flake attribute names the scripts call (nix run .#run-kde, .#wsl2-probe, legacyPackages.*.vm.NAME in vm-mac) are left for the one-flake revision. Verified: bash -n and shellcheck -S warning pass on the four shell scripts; the two Python scripts parse (ast); `bash run-kde --dry-run` run from /tmp prints KOMOREBI_REPO as this checkout; `sync-e2e-core --check e2e/lib` prints "in step"; `scenario-status --help` runs. Not run: the VM, vm-mac, wsl2-probe.
This commit is contained in:
1 parent
a7b78cc7e4
commit
1afac08af5
6 files changed
+36
-32
No files matched your search
@@ -1,16 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# Checks that the copy of the platform-neutral part of the VM library in this tree is in step with
|
||||
# the root e2e/lib of the komorebi repository (the plan in docs/dev/vm-tests.md, "Writing a
|
||||
# the root e2e/lib of this repository (the plan in docs/linux/dev/vm-tests.md, "Writing a
|
||||
# scenario"): the package komorebi_vm.core, and the unit tests that belong to it. The SOURCE OF TRUTH
|
||||
# IS THE ROOT e2e/lib, where the core is on its way to the Windows tree, and this tree's copy follows
|
||||
# it. The script goes away once the root flake builds the KDE VM tests from e2e/lib; until then the
|
||||
# KDE flake cannot reach ../, so the copy stays.
|
||||
# KDE flake could not reach ../ of its own tree, so the copy stays.
|
||||
#
|
||||
# scripts/sync-e2e-core --check ../e2e/lib say what differs, and exit 1 if anything does
|
||||
# scripts/sync-e2e-core DEST copy THIS tree's core into DEST/komorebi_vm/core,
|
||||
# scripts/linux/sync-e2e-core --check e2e/lib say what differs, and exit 1 if anything does
|
||||
# scripts/linux/sync-e2e-core DEST copy THIS tree's core into DEST/komorebi_vm/core,
|
||||
# DEST/tests and DEST/tests/fixtures. That is the direction
|
||||
# from before the move: the root is the source now, so
|
||||
# do not point it at ../e2e/lib; copy the other way by hand.
|
||||
# do not point it at e2e/lib; copy the other way by hand.
|
||||
#
|
||||
# Nothing else of DEST is touched, and a file of DEST that is not here is reported and left alone.
|
||||
set -euo pipefail
|
||||
@@ -21,8 +21,8 @@ if [ "${1:-}" = --check ]; then
|
||||
shift
|
||||
fi
|
||||
dest=${1:?usage: sync-e2e-core [--check] DEST}
|
||||
repo=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
||||
lib=$repo/nix/tests/vm/lib
|
||||
repo=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)
|
||||
lib=$repo/nix/linux/tests/vm/lib
|
||||
|
||||
tests=(fake_platform.py fake_strip.py fake_wallpaper.py test_checks.py test_suite.py test_pixels.py test_snapshot.py test_recorded.py test_tiling.py
|
||||
test_focus_moving.py)
|
||||
|
||||
Reference in new issue
Block a user