]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
regression-tests.dnsdist: detect function absence and report it better 16333/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 21 Oct 2025 15:18:58 +0000 (17:18 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 21 Oct 2025 15:18:58 +0000 (17:18 +0200)
regression-tests.dnsdist/test_Lua.py

index d81054f2b381caf753f27781ad480b14c1d23c41..3342fa20099026accddbab1056cf78d68023b351 100644 (file)
@@ -101,6 +101,7 @@ class TestLuaFrontendBindings(DNSDistTest):
     -- check that all these methods return nil on a non-existing entry
     functions = { 'getServer', 'getDNSCryptBind', 'getBind', 'getDOQFrontend', 'getDOH3Frontend', 'getDOHFrontend', 'getTLSFrontend'}
     for _, func in ipairs(functions) do
+      assert(_G[func] ~= nil, "function "..func.." not compiled in, cannot test")
       assert(_G[func](42) == nil, "function "..func.." did not return nil as expected")
     end