nix(refactor): Split memoryTest from tests.nix into memory.nix

This commit is contained in:
Wolfgang Walther
2021-04-18 13:51:39 +02:00
committed by Wolfgang Walther
parent e199337a53
commit 2e73886adc
5 changed files with 39 additions and 27 deletions
+1 -23
View File
@@ -3,7 +3,6 @@
{ buildEnv
, cabal-install
, checkedShellScript
, curl
, devCabalOptions
, ghc
, glibcLocales
@@ -11,7 +10,6 @@
, haskell
, hpc-codecov
, postgrest
, postgrestProfiled
, python3
, runtimeShell
, withTools
@@ -69,19 +67,6 @@ let
${ioTestPython}/bin/pytest -- -v test/io-tests "''${_arg_leftovers[@]}"
'';
testMemory =
checkedShellScript
{
name = "postgrest-test-memory";
docs = "Run the memory tests.";
inRootDir = true;
}
''
export PATH="${postgrestProfiled}/bin:${curl}/bin:$PATH"
${withTools.latest} test/memory-tests.sh
'';
dumpSchema =
checkedShellScript
{
@@ -192,11 +177,4 @@ buildEnv
"postgrest-tests";
paths = builtins.map (tool: tool.bin) tools;
} // {
inherit bashCompletion;
# The memory tests have large dependencies (a profiled build of PostgREST)
# and are run less often than the spec tests, so we don't include them in
# the default test environment. We make them available through a separate attribute:
memoryTests = testMemory;
}
} // { inherit bashCompletion; }