1 { postgresql, postgresqlTestHook, stdenv }:
4 name = "postgresql-test-hook-test";
5 buildInputs = [ postgresqlTestHook ];
6 nativeCheckInputs = [ postgresql ];
14 INSERT INTO hello VALUES ('it '||'worked');
17 postgresqlTestSetupPost = ''
22 psql <$sqlPath | grep 'it worked'
27 [[ $TEST_RAN == 1 && $TEST_POST_HOOK_RAN == 1 ]]