mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-04 20:22:14 +03:00
remove deprected ./tests/impure
This commit is contained in:
parent
5f8841c794
commit
e7102302c9
@ -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
|
Loading…
Reference in New Issue
Block a user