Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
9b95e643
Commit
9b95e643
authored
Jun 03, 2013
by
JINMEI Tatuya
Browse files
[2964] distcheck fix: use a local copy of datasrc.spec for tests.
parent
53d462ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/python/isc/server_common/tests/Makefile.am
View file @
9b95e643
...
...
@@ -9,6 +9,14 @@ if SET_ENV_LIBRARY_PATH
LIBRARY_PATH_PLACEHOLDER
+=
$(ENV_LIBRARY_PATH)
=
$(abs_top_builddir)
/src/lib/cryptolink/.libs:
$(abs_top_builddir)
/src/lib/dns/.libs:
$(abs_top_builddir)
/src/lib/dns/python/.libs:
$(abs_top_builddir)
/src/lib/cc/.libs:
$(abs_top_builddir)
/src/lib/config/.libs:
$(abs_top_builddir)
/src/lib/log/.libs:
$(abs_top_builddir)
/src/lib/util/.libs:
$(abs_top_builddir)
/src/lib/util/threads/.libs:
$(abs_top_builddir)
/src/lib/exceptions/.libs:
$(abs_top_builddir)
/src/lib/datasrc/.libs:
$$$(ENV_LIBRARY_PATH)
endif
# We use our own "default" datasrc.spec, tweaking some installation path,
# so we can run the tests with something very close to the actual spec and
# yet independent from installation environment.
BUILT_SOURCES
=
datasrc.spec
datasrc.spec
:
$(abs_top_builddir)/src/bin/cfgmgr/plugins/datasrc.spec.pre
$(SED)
-e
"s|@@STATIC_ZONE_FILE@@|
$(abs_top_builddir)
/src/lib/datasrc/static.zone|;s|@@SQLITE3_DATABASE_FILE@@|
$(abs_builddir)
/zone.sqlite3|"
$(abs_top_builddir)
/src/bin/cfgmgr/plugins/datasrc.spec.pre
>
$@
CLEANFILES
=
datasrc.spec zone.sqlite3
# test using command-line arguments, so use check-local target instead of TESTS
check-local
:
if
ENABLE_PYTHON_COVERAGE
...
...
src/lib/python/isc/server_common/tests/datasrc_clients_mgr_test.py
View file @
9b95e643
...
...
@@ -20,8 +20,9 @@ import unittest
import
isc.config
import
os
# A (slightly tweaked) local copy of the default data source spec
DATASRC_SPECFILE
=
os
.
environ
[
"B10_FROM_BUILD"
]
+
\
"/src/
bin/cfgmgr/plugin
s/datasrc.spec"
"/src/
lib/python/isc/server_common/test
s/datasrc.spec"
DEFAULT_CONFIG
=
\
isc
.
config
.
ConfigData
(
isc
.
config
.
module_spec_from_file
(
DATASRC_SPECFILE
)).
\
get_full_config
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment