To run these tests, you need a PowerDNS Authoritative Server with bind,
gsqlite3, lmdb and random backends.
-You also will need to have 'datefudge' installed.
+You also will need to have 'faketime' installed.
rm -f soa-edit/bind-dnssec.db
+now=$(LC_ALL=C date +%s)
+delta=$((now-1418860790)) # Wed Dec 17 23:59:50 2014 UTC
+
$PDNSUTIL --config-dir=soa-edit create-bind-db soa-edit/bind-dnssec.db
$PDNSUTIL --config-dir soa-edit/ set-meta minimal.com SOA-EDIT INCREMENT-WEEKS
-# Wed Dec 17 23:59:50 2014 UTC
-datefudge "$(LC_ALL=C date -d@1418860790)" $PDNS --config-dir=soa-edit &
+faketime -m -f -$delta $PDNS --config-dir=soa-edit &
bindwait
$SDIG 127.0.0.1 $port minimal.com SOA | LC_ALL=C sort