Skip to content

Commit 9e1612c

Browse files
samrosedarora
authored andcommitted
chore: getting the tests to run, and to print a file location
1 parent 51caded commit 9e1612c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

flake.nix

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,18 +421,16 @@
421421
422422
#pg_prove -p 5432 -h localhost -d testing ${sqlTests}/*.sql
423423
424-
mkdir regression_output
424+
mkdir -p $out/regression_output
425425
pg_regress \
426426
--use-existing \
427427
--dbname=testing \
428428
--inputdir=${./nix/tests} \
429-
--outputdir=regression_output \
429+
--outputdir=$out/regression_output \
430+
--host=localhost \
431+
--port=5432 \
430432
$(ls ${./nix/tests/sql} | sed -e 's/\..*$//' | sort )
431433
432-
433-
mv regression.diffs $PWD
434-
mv regression_output $PWD
435-
436434
pg_ctl -D "$PGDATA" stop
437435
mv $TMPDIR/logfile/postgresql.log $out
438436
echo ${pgpkg}

0 commit comments

Comments
 (0)