]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Enable eBPF regression tests in our CI
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 1 Feb 2024 13:45:40 +0000 (14:45 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 5 Feb 2024 10:36:13 +0000 (11:36 +0100)
.github/workflows/build-and-test-all.yml
tasks.py

index 2b97fd36f302e91f7b023a7336abca425d97bcc0..cbf691718dc509aa736242c2f569067f84d20a81 100644 (file)
@@ -612,7 +612,7 @@ jobs:
         SKIP_INCLUDEDIR_TESTS: yes
         SANITIZERS: ${{ matrix.sanitizers }}
         COVERAGE: yes
-      options: --sysctl net.ipv6.conf.all.disable_ipv6=0
+      options: --sysctl net.ipv6.conf.all.disable_ipv6=0 --privileged
     steps:
       - uses: actions/checkout@v4
         with:
index 1fbb5553f1449667a91130e95391efc6aba9c2ed..9c5fe5b305bdebc8ada9d59bb0530512cd040de1 100644 (file)
--- a/tasks.py
+++ b/tasks.py
@@ -585,7 +585,7 @@ def ci_dnsdist_configure(c, features):
         features_set,
         unittests,
         fuzztargets,
-        ' --enable-lto=thin',
+        '--enable-lto=thin',
         '--prefix=/opt/dnsdist'
     ])
 
@@ -871,7 +871,7 @@ def test_dnsdist(c):
     c.run('ls -ald /var /var/agentx /var/agentx/master')
     c.run('ls -al /var/agentx/master')
     with c.cd('regression-tests.dnsdist'):
-        c.run('DNSDISTBIN=/opt/dnsdist/bin/dnsdist LD_LIBRARY_PATH=/opt/dnsdist/lib/ ./runtests')
+        c.run('DNSDISTBIN=/opt/dnsdist/bin/dnsdist LD_LIBRARY_PATH=/opt/dnsdist/lib/ ENABLE_SUDO_TESTS=1 ./runtests')
 
 @task
 def test_regression_recursor(c):