Changeset 944


Ignore:
Timestamp:
12/24/25 12:30:41 (6 hours ago)
Author:
Kris Deugau
Message:

/trunk/t

Add calls to wipe and reload a consistent minimal DB for testing
Add SQL files to drop and reload tables
See #88

Location:
trunk/t
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/DNSTest.pm

    • Property svn:keywords set to Date Rev Author Id
    r943 r944  
    5858
    5959  $dbh = $dnsdb->{dbh};
     60
     61  # drop all tables etc
     62  $ENV{PGPASSWORD} = $dnsdb->{dbpass};
     63  diag qx( psql -h $dnsdb->{dbhost} -U $dnsdb->{dbuser} $dnsdb->{dbname} < t/dropall.sql );
     64  # load some standard test data
     65  diag qx( psql -h $dnsdb->{dbhost} -U $dnsdb->{dbuser} $dnsdb->{dbname} < t/dns-unitbase.sql );
     66
    6067}
    6168
Note: See TracChangeset for help on using the changeset viewer.