]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
tests: added block module to tests
authorMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 6 Aug 2015 17:10:46 +0000 (19:10 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 6 Aug 2015 17:33:13 +0000 (19:33 +0200)
scripts/bootstrap-depends.sh
tests/kresd.j2
tests/pydnstest/test.py
tests/test_integration.py

index 1122ee22ce0acc40da22a6a3550ba36baaa0902f..21b811fee4006d7ff0b0d7e44043643e7eda3ad9 100755 (executable)
@@ -91,7 +91,7 @@ if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
 fi
 if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
        pkg cwrap ${CWRAP_URL} ${CWRAP_TAG} lib/pkgconfig/socket_wrapper.pc
-       pip install --user ${USER} -r ${PIP_PKGS}
+       pip install --user ${USER} -r ${PIP_PKGS} || true
        rm ${HOME}/.cache/pip/log/debug.log || true
 fi
 
@@ -113,7 +113,7 @@ pkg cmocka ${CMOCKA_URL} ${CMOCKA_TAG} include/cmocka.h
 # libuv
 pkg libuv ${LIBUV_URL} ${LIBUV_TAG} include/uv.h --disable-static
 # luajit
-pkg lua ${LUA_URL} ${LUA_TAG} include/lua.h install LDFLAGS=-lm PREFIX=${PREFIX}
+pkg lua ${LUA_URL} ${LUA_TAG} lib/pkgconfig/luajit.pc install LDFLAGS=-lm PREFIX=${PREFIX}
 
 # remove on successful build
 rm -rf ${BUILD_DIR}
index e2d1747e685b1a6324cb37d8eb03de7fd9e7aa3b..2795d4943ccf5ebff581c066e03e951f6057040c 100644 (file)
@@ -1,6 +1,6 @@
 net.listen('{{SELF_ADDR}}',53)
 cache.size = 10*MB
-modules = {'hints'}
+modules = {'block','hints'}
 hints.root({['k.root-servers.net'] = '{{ROOT_ADDR}}'})
 option('NO_MINIMIZE', {{NO_MINIMIZE}})
 option('ALLOW_LOCAL', true)
index afbe66d982215965340b77b5a88700d918a3e557..3d0e0ff25a8c425b9439632b5b905850249057f2 100644 (file)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+import traceback
 
 class Test:
     """ Small library to imitate CMocka output. """
@@ -25,7 +26,7 @@ class Test:
                 passed += 1
                 print('[       OK ] %s' % name)
             except Exception as e:
-                print('[     FAIL ] %s (%s)' % (name, str(e)))
+                print('[     FAIL ] %s (%s) at %s' % (name, str(e), traceback.print_exc()[0]))
 
         # Clear test set
         self.tests = []
@@ -35,4 +36,4 @@ class Test:
             return 0
         else:
             print('[  FAILED  ] %d test(s).' % (planned - passed))
-            return 1
\ No newline at end of file
+            return 1
index 9914bcdcd762aed86f3027ba3ce69f927b2aebd0..1ed977cbc5c250572f06fb25896a1a28d6a680ef 100755 (executable)
@@ -245,8 +245,6 @@ def play_object(path, binary_name, config_name, j2template, binary_additional_pa
     server.start()
     try:
         server.play()
-    except Exception as e:
-        print('... scenario "%s" crashed, logs in "%s"' % (os.path.basename(path), TMPDIR))
     finally:
         server.stop()
         daemon_proc.terminate()