- Timestamp:
- 12/24/25 12:35:14 (5 hours ago)
- File:
-
- 1 edited
-
trunk/t/DNSTest.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/t/DNSTest.pm
r944 r945 47 47 # A DB instantiated for these tests should NEVER have more than a handful of domains and maybe 20-30 records. 48 48 49 $dbh = $dnsdb->{dbh}; 50 49 51 my ($dcount) = $dbh->selectrow_array("SELECT count(*) FROM domains"); 50 52 BAIL_OUT("# DB looks like it may not be a test DB, found $dcount > 10 domains!\n") 51 53 if $dcount > 10; 52 cmp_ok( $dcount, '<=', 10, "domain count: looks like a test DB" );54 ok( $dcount, '<=', 10, "domain count ($dcount): looks like a test DB" ); 53 55 54 56 my ($rcount) = $dbh->selectrow_array("SELECT count(*) FROM records"); 55 57 BAIL_OUT("# DB looks like it may not be a test DB, found $rcount > 30 records!\n") 56 if $rcount > 30; 57 cmp_ok( $rcount, '<=', 30, "record count: looks like a test DB" ); 58 59 $dbh = $dnsdb->{dbh}; 58 if $rcount > 50; 59 ok( $rcount, '<=', 50, "record ($rcount): looks like a test DB" ); 60 60 61 61 # drop all tables etc
Note:
See TracChangeset
for help on using the changeset viewer.
![[ DNS Administrator ]](/fx/dnsadmin-logo.png)