dash.tests: Add some reverse dependencies

Smoke test any updates before they enter into staging.
This commit is contained in:
Robert Hensing
2025-10-19 00:14:09 +02:00
parent e14c4f6aba
commit 655e13b18f
+17
View File
@@ -7,6 +7,10 @@
libedit,
runCommand,
dash,
# Reverse dependency smoke tests
tests,
patchRcPathPosix,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -43,6 +47,19 @@ stdenv.mkDerivation (finalAttrs: {
[ -s $out/success ]
grep -q "Hello World" $out/success
'';
/**
Reverse dependency smoke tests. Build success of `dash.tests` informs
whether an update makes it into staging.
*/
reverseDependencies = lib.recurseIntoAttrs {
writers = lib.recurseIntoAttrs {
simple = tests.writers.simple.dash;
bin = tests.writers.bin.dash;
};
# Not sure if effective smoke test, but cheap
patch-rc-path-posix = patchRcPathPosix.tests.test-posix;
};
};
};