From: romeroalx Date: Fri, 21 Mar 2025 13:22:03 +0000 (+0100) Subject: regression-tests.nobackend - soa-edit: use datefudge instead of faketime X-Git-Tag: dnsdist-2.0.0-beta1~41^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a71b2f53027d5ea115121fc5146c96d9dd6da8d2;p=thirdparty%2Fpdns.git regression-tests.nobackend - soa-edit: use datefudge instead of faketime --- diff --git a/.github/actions/spell-check/allow.txt b/.github/actions/spell-check/allow.txt index 7c3de4a6c4..8ad4f60d89 100644 --- a/.github/actions/spell-check/allow.txt +++ b/.github/actions/spell-check/allow.txt @@ -607,6 +607,7 @@ datalen datapoints datapos dataret +datefudge datestr datetime DBC diff --git a/regression-tests.nobackend/README b/regression-tests.nobackend/README index 8dc8ab6b62..bd2da1d0cf 100644 --- a/regression-tests.nobackend/README +++ b/regression-tests.nobackend/README @@ -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. diff --git a/regression-tests.nobackend/soa-edit/command b/regression-tests.nobackend/soa-edit/command index 88cd97cf8c..5d616a235f 100755 --- a/regression-tests.nobackend/soa-edit/command +++ b/regression-tests.nobackend/soa-edit/command @@ -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 diff --git a/tasks.py b/tasks.py index 4718fa7b60..6062e6e464 100644 --- 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',