X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=t%2FGruntmaster-Data.t;fp=t%2FGruntmaster-Data.t;h=54861af544b218237a321ccfdfd9ed3bfb5bd289;hb=1ea1adc8a16e90ff6ba6a00655b3e02fe7aadfec;hp=d7e2d7faedbd54b4fc3db3267b31d7f6bdfec040;hpb=9dc335bd50640a567127057a9e9cf8e2a7552573;p=gruntmaster-data.git diff --git a/t/Gruntmaster-Data.t b/t/Gruntmaster-Data.t index d7e2d7f..54861af 100644 --- a/t/Gruntmaster-Data.t +++ b/t/Gruntmaster-Data.t @@ -9,10 +9,15 @@ use Test::More; BEGIN { eval { Gruntmaster::Data::init 'dbi:Pg:dbname=gmtest'; 1; - } or plan skip_all => 'Cannot connect to test database. Create it by running make_test_db.sh before running this test. '. "Error: $@"; + } or plan skip_all => 'Cannot connect to test database. Create it by running createdb gmtest before running this test. '. "Error: $@"; plan tests => 37; } +note 'Setting up test database'; +$ENV{PGOPTIONS} = '-c client_min_messages=WARNING'; +system 'psql', 'gmtest', '-qf', 'db.sql'; +system 'psql', 'gmtest', '-qf', 'testdata.sql'; + note 'Running update_status'; update_status;