]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
regression-tests.nobackend - soa-edit: use datefudge instead of faketime
authorromeroalx <alexis.romero@open-xchange.com>
Fri, 21 Mar 2025 13:22:03 +0000 (14:22 +0100)
committerromeroalx <alexis.romero@open-xchange.com>
Thu, 5 Jun 2025 13:18:08 +0000 (15:18 +0200)
.github/actions/spell-check/allow.txt
regression-tests.nobackend/README
regression-tests.nobackend/soa-edit/command
tasks.py

index 7c3de4a6c4ba83eb1c7e44c3905d1b741d173cff..8ad4f60d89a4a089f73b1483f00ada4af63a8bdb 100644 (file)
@@ -607,6 +607,7 @@ datalen
 datapoints
 datapos
 dataret
+datefudge
 datestr
 datetime
 DBC
index 8dc8ab6b62ba5e67d4bc573fddd69249a0040ee0..bd2da1d0cf97e9a2f0118daed1dec73eb696bfff 100644 (file)
@@ -1,4 +1,4 @@
 To run these tests, you need a PowerDNS Authoritative Server with bind,
 gsqlite3, lmdb and random backends.
 
-You also will need to have 'faketime' installed.
+You also will need to have 'datefudge' installed.
index 88cd97cf8c63287b06a4ad908ce006a6a022ef79..5d616a235f02b5f1008d88f37a20ebdc2a89f4d5 100755 (executable)
@@ -28,12 +28,10 @@ rm -f pdns*.pid
 
 rm -f soa-edit/bind-dnssec.db
 
-now=$(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
-faketime -m -f -$delta $PDNS --config-dir=soa-edit &
+# Wed Dec 17 23:59:50 2014 UTC
+datefudge "$(date -d@1418860790)" $PDNS --config-dir=soa-edit &
 bindwait
 
 $SDIG 127.0.0.1 $port minimal.com SOA | LC_ALL=C sort
index 4718fa7b601c227b6960b6e653046238916d2bcb..6062e6e46437c442d95cf89da6aa067949c264eb 100644 (file)
--- a/tasks.py
+++ b/tasks.py
@@ -108,7 +108,7 @@ auth_test_deps = [   # FIXME: we should be generating some of these from shlibde
     'curl',
     'default-jre-headless',
     'bind9-dnsutils',
-    'faketime',
+    'datefudge',
     'gawk',
     'krb5-user',
     'ldnsutils',