fix: tests should use framework

This commit is contained in:
Yusuf Bera Ertan 2022-11-16 03:53:40 +03:00
parent 15cb50c271
commit b22b97fc37
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA
4 changed files with 12 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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