Run PostgreSQL during "make check"

This commit is contained in:
Eelco Dolstra
2015-06-25 15:51:44 +02:00
parent 18a3c3ff1c
commit b5815e2aa6
4 changed files with 17 additions and 7 deletions

View File

@ -1,3 +1,5 @@
use strict;
system("createdb hydra-test-suite") == 0 or die;
system("initdb -D postgres") == 0 or die;
system("pg_ctl -D postgres -o \"-F -p 6433 -h ''\" -w start") == 0 or die;
system("createdb -p 6433 hydra-test-suite") == 0 or die;
system("hydra-init") == 0 or die;