remove deprected ./tests/impure

This commit is contained in:
DavHau 2022-04-23 15:11:57 +02:00
parent 5f8841c794
commit e7102302c9

View File

@ -1,41 +0,0 @@
{
async,
coreutils,
lib,
# dream2nix
callPackageDream,
utils,
...
}: let
l = lib // builtins;
allTestFiles =
l.attrNames
(l.filterAttrs
(name: type: type == "regular" && l.hasPrefix "test_" name)
(l.readDir ./.));
allTests =
l.map
(file: callPackageDream "${./.}/${file}" {})
allTestFiles;
executeAll =
utils.writePureShellScript
[
async
coreutils
]
''
S=$(mktemp)
async -s=$S server --start -j$(nproc)
for test in ${toString allTests}; do
async -s=$S cmd -- $test
done
async -s=$S wait
rm $S
'';
in
executeAll