]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
meson: run missing config tests
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 6 Mar 2019 14:07:52 +0000 (15:07 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 12 Mar 2019 09:44:50 +0000 (10:44 +0100)
daemon/lua/meson.build
daemon/lua/trust_anchors.test/bootstrap.test.lua
modules/http/http.test.lua
modules/http/test_tls/tls.test.lua

index 6c2586090294e878d5c6a174cf62fe0644003bf3..d11bf7731a4f94d210f87faa7d0306ce3fc08bc5 100644 (file)
@@ -1,6 +1,7 @@
 # daemon: lua modules
 
 config_tests += [
+  ['ta', files('trust_anchors.test/ta.test.lua')],
   ['ta_bootstrap', files('trust_anchors.test/bootstrap.test.lua')],
 ]
 
index 12b6cc30457b339a88d1d93eceb032f962fb6a7c..ea35c487eb11972872040a0943fe95c02edf90cd 100644 (file)
@@ -1,5 +1,5 @@
 -- check prerequisites
-local has_http = pcall(require, 'http') and pcall(require, 'http.request')
+local has_http = pcall(require, 'kres_modules.http') and pcall(require, 'http.request')
 if not has_http then
        pass('skipping bootstrap tests because http module is not not installed')
        done()
index 3d0ac1485851378c7c79509d216ad72376397f54..8d987597ea865586c88bd3952b7e734d404aa7da 100644 (file)
@@ -1,11 +1,11 @@
 -- check prerequisites
-local has_http = pcall(require, 'http') and pcall(require, 'http.request')
+local has_http = pcall(require, 'kres_modules.http') and pcall(require, 'http.request')
 if not has_http then
        pass('skipping http module test because its not installed')
        done()
 else
        local request = require('http.request')
-       local endpoints = require('http').endpoints
+       local endpoints = require('kres_modules.http').endpoints
 
        -- custom endpoints
        endpoints['/test'] = {'text/custom', function () return 'hello' end}
index 9eac38298e15c92fb8f727b9fb21c7b89fc19a3f..5bc3bc671d9ce25bc7c30af3e9a1b5d1afce0df7 100644 (file)
@@ -1,5 +1,5 @@
 -- check prerequisites
-local has_http = pcall(require, 'http') and pcall(require, 'http.request')
+local has_http = pcall(require, 'kres_modules.http') and pcall(require, 'http.request')
 if not has_http then
        pass('skipping http module test because its not installed')
        done()