Run PostgreSQL during "make check"

[?]
Jun 25, 2015, 1:51 PM
UQYHPQ6UO7LIQ4P6NSCAEV677K52RQOQKCF4KSGNXMMFOQKY7IPQC

Dependencies

  • [2] 2554VN4T Fix ‘Unable to handle files with the extension 'conf'’
  • [3] 7VQ4ALFY Update "make check" for the new queue runner
  • [4] N3KBVX6G Set $PERL5LIB properly in hydra-init in "make check"
  • [5] RBQEBVT5 Doh
  • [6] RBZRCTAL hydra: fixed and re-enabled evaluation tests
  • [7] JRVI4XTV tests: Use $(builddir) instead of `pwd`.
  • [8] V2ALOFRR Fix the test
  • [9] G2ZB6464 first test, not yet in buildprocess
  • [10] 3PNG7NIB Remove trailing whitespace
  • [11] GAZHOBWE Better fix
  • [12] OB7GB5DL Test environment cleanups
  • [*] T4LLYESZ * Nix expression for building Hydra.
  • [*] 6K5PBUUN Use buildEnv to combine Hydra's Perl dependencies

Change contents

  • edit in release.nix at line 157
    [2.102]
    [15.1420]
    postgresql92 # for running the tests
  • replacement in tests/Makefile.am at line 3
    [4.176][3.1569:1618]()
    HYDRA_DBI="dbi:Pg:dbname=hydra-test-suite;" \
    [4.176]
    [4.177]
    HYDRA_DBI="dbi:Pg:dbname=hydra-test-suite;port=6433" \
  • replacement in tests/Makefile.am at line 15
    [4.58][4.127:210]()
    PATH=$(abs_top_srcdir)/src/script:$(abs_top_srcdir)/src/hydra-eval-jobs:$$PATH \
    [4.58]
    [4.37753]
    PATH=$(abs_top_srcdir)/src/script:$(abs_top_srcdir)/src/hydra-eval-jobs:$(abs_top_srcdir)/src/hydra-queue-runner:$$PATH \
  • replacement in tests/set-up.pl at line 2
    [3.2013][3.2013:2062]()
    system("createdb hydra-test-suite") == 0 or die;
    [3.2013]
    [3.2062]
    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;
  • replacement in tests/tear-down.pl at line 2
    [3.2145][3.2145:2404]()
    system("chmod -R a+w nix") == 0 or die;
    system("rm -rf data nix git-repo hg-repo svn-repo svn-checkout svn-checkout-repo bzr-repo bzr-checkout-repo darcs-repo") == 0 or die;
    system("rm -f .*-state") == 0 or die;
    system("dropdb hydra-test-suite") == 0 or die;
    [3.2145]
    my $fail = 0;
    system("dropdb -p 6433 hydra-test-suite") == 0 or $fail = 1;
    system("pg_ctl -D postgres -w stop") == 0 or $fail = 1;
    system("chmod -R a+w nix") == 0 or $fail = 1;
    system("rm -rf postgres data nix git-repo hg-repo svn-repo svn-checkout svn-checkout-repo bzr-repo bzr-checkout-repo darcs-repo") == 0 or $fail = 1;
    system("rm -f .*-state") == 0 or $fail = 1;
    exit $fail;