mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-23 09:04:37 +03:00
fix: tests should use framework
This commit is contained in:
parent
15cb50c271
commit
b22b97fc37
@ -9,15 +9,15 @@
|
|||||||
jq,
|
jq,
|
||||||
parallel,
|
parallel,
|
||||||
nix,
|
nix,
|
||||||
utils,
|
|
||||||
dream2nixWithExternals,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
|
framework,
|
||||||
|
dream2nixWithExternals,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
l = lib // builtins;
|
l = lib // builtins;
|
||||||
examples = ../../examples;
|
examples = ../../examples;
|
||||||
testScript =
|
testScript =
|
||||||
utils.writePureShellScript
|
framework.utils.writePureShellScript
|
||||||
[
|
[
|
||||||
async
|
async
|
||||||
bash
|
bash
|
||||||
@ -53,7 +53,7 @@
|
|||||||
echo "$elapsed sec: $dir" >> $STATS_FILE
|
echo "$elapsed sec: $dir" >> $STATS_FILE
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
utils.writePureShellScript
|
framework.utils.writePureShellScript
|
||||||
[
|
[
|
||||||
coreutils
|
coreutils
|
||||||
parallel
|
parallel
|
||||||
|
@ -7,14 +7,14 @@
|
|||||||
git,
|
git,
|
||||||
parallel,
|
parallel,
|
||||||
nix,
|
nix,
|
||||||
utils,
|
|
||||||
dream2nixWithExternals,
|
dream2nixWithExternals,
|
||||||
|
framework,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
l = lib // builtins;
|
l = lib // builtins;
|
||||||
tests = ./tests;
|
tests = ./tests;
|
||||||
testScript =
|
testScript =
|
||||||
utils.writePureShellScript
|
framework.utils.writePureShellScript
|
||||||
[
|
[
|
||||||
async
|
async
|
||||||
bash
|
bash
|
||||||
@ -40,7 +40,7 @@
|
|||||||
echo "$elapsed sec: $dir" >> $STATS_FILE
|
echo "$elapsed sec: $dir" >> $STATS_FILE
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
utils.writePureShellScript
|
framework.utils.writePureShellScript
|
||||||
[
|
[
|
||||||
coreutils
|
coreutils
|
||||||
parallel
|
parallel
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
parallel,
|
parallel,
|
||||||
nix,
|
nix,
|
||||||
pkgs,
|
pkgs,
|
||||||
utils,
|
framework,
|
||||||
dream2nixWithExternals,
|
dream2nixWithExternals,
|
||||||
callPackageDream,
|
callPackageDream,
|
||||||
...
|
...
|
||||||
@ -21,7 +21,7 @@
|
|||||||
testDirs;
|
testDirs;
|
||||||
testScriptsFile = pkgs.writeText "scripts-list" (l.concatStringsSep "\n" testScripts);
|
testScriptsFile = pkgs.writeText "scripts-list" (l.concatStringsSep "\n" testScripts);
|
||||||
execTest =
|
execTest =
|
||||||
utils.writePureShellScript
|
framework.utils.writePureShellScript
|
||||||
[
|
[
|
||||||
bash
|
bash
|
||||||
coreutils
|
coreutils
|
||||||
@ -41,7 +41,7 @@
|
|||||||
echo "$elapsed sec: $test" >> $STATS_FILE
|
echo "$elapsed sec: $test" >> $STATS_FILE
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
utils.writePureShellScript
|
framework.utils.writePureShellScript
|
||||||
[
|
[
|
||||||
bash
|
bash
|
||||||
coreutils
|
coreutils
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
nix,
|
nix,
|
||||||
git,
|
git,
|
||||||
python3,
|
python3,
|
||||||
utils,
|
|
||||||
dream2nixWithExternals,
|
dream2nixWithExternals,
|
||||||
|
framework,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
l = lib // builtins;
|
l = lib // builtins;
|
||||||
@ -17,7 +17,7 @@
|
|||||||
pytest-xdist
|
pytest-xdist
|
||||||
]);
|
]);
|
||||||
in
|
in
|
||||||
utils.writePureShellScript
|
framework.utils.writePureShellScript
|
||||||
[
|
[
|
||||||
coreutils
|
coreutils
|
||||||
nix
|
nix
|
||||||
|
Loading…
Reference in New Issue
Block a user