root/test/t/999_db_destroy.t

Revision 57156325b280cf0021706459de269ef44b89d8cc, 278 bytes (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

some basic scaffolding for noit tests, refs #230

  • Property mode set to 100644
Line 
1 use Test::More tests => 1;
2 use testconfig;
3
4 use strict;
5
6 SKIP: {
7   skip "no existing test db to cleanup", 1 unless (-d "$NOIT_TEST_DB");
8   `pg_ctl -D $NOIT_TEST_DB -w -m immediate stop`;
9   `rm -rf $NOIT_TEST_DB`;
10   ok(! -d "$NOIT_TEST_DB", 'cleaned up running instance');
11 }
12
13 1;
Note: See TracBrowser for help on using the browser.