tests: delete set-up.pl / tear-down.pl

We'll set these up on a per-test basis.
This commit is contained in:
Graham Christensen 2021-02-22 13:33:25 -05:00
parent 9ddc6e355f
commit b15d8edab1
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F
3 changed files with 1 additions and 20 deletions

View file

@ -25,9 +25,7 @@ EXTRA_DIST = \
$(TESTS)
TESTS = \
set-up.pl \
test.pl \
tear-down.pl
test.pl
check_SCRIPTS = repos

View file

@ -1,5 +0,0 @@
use strict;
system("initdb -D postgres --locale C.UTF-8 ") == 0 or die;
system("pg_ctl -D postgres -o \"-F -p 6433 -h '' -k /tmp \" -w start") == 0 or die;
system("createdb -l C.UTF-8 -p 6433 hydra-test-suite") == 0 or die;
system("hydra-init") == 0 or die;

View file

@ -1,12 +0,0 @@
use strict;
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;