summaryrefslogtreecommitdiffstats
path: root/tests-extra/tools/dnstest/libknot.py
blob: 554f594151de9c1fc84987c920df2e419e4b4969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python3

import os
import sys

from dnstest.utils import Skip
import dnstest.params as params

try:
    sys.path.append(os.path.join(params.repo_binary("python"), "libknot"))
    import libknot
    import libknot.control
    import libknot.probe
    libknot.Knot(params.libknot_lib)
except:
    raise Skip("libknot not available or set KNOT_TEST_LIBKNOT to another libknot without ASAN")