File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 369
369
in
370
370
pkgs . runCommand "postgres-${ pgpkg . version } -check-harness"
371
371
{
372
- nativeBuildInputs = with pkgs ; [ coreutils bash pgpkg pg_prove procps ] ;
372
+ nativeBuildInputs = with pkgs ; [ coreutils bash pgpkg pg_prove pg_regress procps ] ;
373
373
} ''
374
374
TMPDIR=$(mktemp -d)
375
375
if [ $? -ne 0 ]; then
417
417
done
418
418
createdb -p 5432 -h localhost testing
419
419
psql -p 5432 -h localhost -d testing -Xaf ${ ./nix/tests/prime.sql }
420
- pg_prove -p 5432 -h localhost -d testing ${ sqlTests } /*.sql
420
+
421
+
422
+ #pg_prove -p 5432 -h localhost -d testing ${ sqlTests } /*.sql
423
+
424
+ mkdir regression_output
425
+ pg_regress \
426
+ --use-existing \
427
+ --dbname=testing \
428
+ --inputdir=${ ./nix/tests } \
429
+ --outputdir=regression_output \
430
+ $(ls ${ ./nix/tests/sql } | sed -e 's/\..*$//' | sort )
431
+
432
+
433
+ mv regression.diffs $PWD
434
+ mv regression_output $PWD
435
+
421
436
pg_ctl -D "$PGDATA" stop
422
437
mv $TMPDIR/logfile/postgresql.log $out
423
438
echo ${ pgpkg }
Original file line number Diff line number Diff line change
1
+ 1
Original file line number Diff line number Diff line change
1
+ select 1 ;
You can’t perform that action at this time.
0 commit comments