The upside is that postgrest-with-postgresql-xxx postgrest-test-io works as expected now. The downside is, that postgrest-with-postgresql-xxx psql now starts without any schema. This now needs an explicit postgrest-with-postgresql-xxx -f path/to.sql to do anything useful. Resolves #2864
29 lines
690 B
Nix
29 lines
690 B
Nix
# 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 module.
|
|
{ buildToolbox
|
|
, checkedShellScript
|
|
, curl
|
|
, postgrestProfiled
|
|
, withTools
|
|
}:
|
|
let
|
|
test =
|
|
checkedShellScript
|
|
{
|
|
name = "postgrest-test-memory";
|
|
docs = "Run the memory tests.";
|
|
inRootDir = true;
|
|
withPath = [ postgrestProfiled curl ];
|
|
}
|
|
''
|
|
${withTools.withPg} -f test/spec/fixtures/load.sql test/memory/memory-tests.sh
|
|
'';
|
|
|
|
in
|
|
buildToolbox
|
|
{
|
|
name = "postgrest-memory";
|
|
tools = [ test ];
|
|
}
|