forked from lix-project/hydra
Merge pull request #648 from danbst/pg-changes
tests: change postgresql socket dir to /tmp
This commit is contained in:
commit
1be7de15a8
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -32,3 +32,4 @@ Makefile.in
|
||||||
/inst
|
/inst
|
||||||
hydra-config.h
|
hydra-config.h
|
||||||
hydra-config.h.in
|
hydra-config.h.in
|
||||||
|
result
|
||||||
|
|
|
@ -12,6 +12,7 @@ TESTS_ENVIRONMENT = \
|
||||||
NIX_STORE_DIR="$(abs_builddir)/nix/store" \
|
NIX_STORE_DIR="$(abs_builddir)/nix/store" \
|
||||||
NIX_LOG_DIR="$(abs_builddir)/nix/var/log/nix" \
|
NIX_LOG_DIR="$(abs_builddir)/nix/var/log/nix" \
|
||||||
NIX_BUILD_HOOK= \
|
NIX_BUILD_HOOK= \
|
||||||
|
PGHOST=/tmp \
|
||||||
PERL5LIB="$(srcdir):$(abs_top_srcdir)/src/lib:$$PERL5LIB" \
|
PERL5LIB="$(srcdir):$(abs_top_srcdir)/src/lib:$$PERL5LIB" \
|
||||||
PATH=$(abs_top_srcdir)/src/hydra-evaluator:$(abs_top_srcdir)/src/script:$(abs_top_srcdir)/src/hydra-eval-jobs:$(abs_top_srcdir)/src/hydra-queue-runner:$$PATH \
|
PATH=$(abs_top_srcdir)/src/hydra-evaluator:$(abs_top_srcdir)/src/script:$(abs_top_srcdir)/src/hydra-eval-jobs:$(abs_top_srcdir)/src/hydra-queue-runner:$$PATH \
|
||||||
perl -w
|
perl -w
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use strict;
|
use strict;
|
||||||
system("initdb -D postgres") == 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("pg_ctl -D postgres -o \"-F -p 6433 -h '' -k /tmp \" -w start") == 0 or die;
|
||||||
system("createdb -p 6433 hydra-test-suite") == 0 or die;
|
system("createdb -p 6433 hydra-test-suite") == 0 or die;
|
||||||
system("hydra-init") == 0 or die;
|
system("hydra-init") == 0 or die;
|
||||||
|
|
Loading…
Reference in a new issue