mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-04 05:56:31 +01:00
fix(repo): sources and tests read files from the final directories
The include_str! and test paths of komorebic (Linux and macOS modules and tests),
komorebi-bar (macOS), komorebi-linux, komorebi-macos, komorebic-core, komorebi-config and
komorebi-bar-core named the old trees (komorebi-for-kde/docs, komorebi-for-mac/docs, the
schema.json files at the roots of the trees, komorebic/fixtures of the macOS tree). They
now read docs/linux, docs/macos, schemas/{windows,linux,macos} and the byte-identical
komorebic/fixtures at the root; the macOS pan tests point at the root fixtures, and
komorebi-linux's config_parity test takes the example config from docs/linux. Comments
that named the old paths were updated with them.
Not touched: markdown docs, justfiles, scripts, tools and nix files that name the old
paths (next revisions of the stack).
Verified: Windows clippy --locked --all-targets -D warnings (default members) passes; on
Linux cargo test -p komorebi -p komorebic -p komorebi-client -p komorebi-linux -p
komorebi-hotkeys -p komorebi-config -p komorebi-bar-core -p komorebic-core -p
komorebi-protocol (one test thread) passes, 96 test binaries ok after config_parity was
fixed; macOS cargo check --target aarch64-apple-darwin (fake CC) passes. Nix not run.
This commit is contained in:
1 parent
f661493793
commit
fa4752a514
17 files changed
+47
-51
No files matched your search
@@ -873,7 +873,7 @@ fn quickstart_writes_the_example_files_and_asks_before_it_overwrites_one() {
|
||||
|
||||
let output = quickstart(&runtime, &home, "");
|
||||
assert!(output.status.success(), "{output:?}");
|
||||
let example = include_str!("../../komorebi-for-kde/docs/komorebi.example.json");
|
||||
let example = include_str!("../../docs/linux/komorebi.example.json");
|
||||
assert_eq!(
|
||||
std::fs::read_to_string(home.join("komorebi.json")).unwrap(),
|
||||
example
|
||||
@@ -884,7 +884,7 @@ fn quickstart_writes_the_example_files_and_asks_before_it_overwrites_one() {
|
||||
);
|
||||
assert_eq!(
|
||||
std::fs::read_to_string(home.join("skhdrc")).unwrap(),
|
||||
include_str!("../../komorebi-for-kde/docs/skhdrc.sample")
|
||||
include_str!("../../docs/linux/skhdrc.sample")
|
||||
);
|
||||
assert!(stdout(&output).contains("The following example files were written"));
|
||||
assert!(stdout(&output).contains("komorebic start"));
|
||||
@@ -905,7 +905,7 @@ fn quickstart_writes_the_example_files_and_asks_before_it_overwrites_one() {
|
||||
// the third question has no answer, which is not a yes
|
||||
assert_eq!(
|
||||
std::fs::read_to_string(home.join("skhdrc")).unwrap(),
|
||||
include_str!("../../komorebi-for-kde/docs/skhdrc.sample")
|
||||
include_str!("../../docs/linux/skhdrc.sample")
|
||||
);
|
||||
assert!(stdout(&output).contains("Skipping"));
|
||||
}
|
||||
@@ -1001,7 +1001,7 @@ fn the_schema_files_of_the_repository_are_what_the_subcommands_print() {
|
||||
let root = Path::new(env!("CARGO_MANIFEST_DIR"))
|
||||
.parent()
|
||||
.unwrap()
|
||||
.join("komorebi-for-kde");
|
||||
.join("schemas/linux");
|
||||
|
||||
for (file, subcommand) in [
|
||||
("schema.json", "static-config-schema"),
|
||||
|
||||
Reference in new issue
Block a user