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
ISC Open Source Projects
Kea
Commits
f6e9a118
Commit
f6e9a118
authored
May 12, 2011
by
Michal 'vorner' Vaner
Browse files
[trac875] Fix make distcheck
parent
7b25152b
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/bin/cfgmgr/plugins/Makefile.am
View file @
f6e9a118
SUBDIRS
=
tests
EXTRA_DIST
=
README
EXTRA_DIST
=
README
tsig_keys.py tsig_keys.spec
config_plugindir
=
@prefix@/share/@PACKAGE@/config_plugins
config_plugin_DATA
=
tsig_keys.py tsig_keys.spec
src/bin/cfgmgr/plugins/tests/Makefile.am
View file @
f6e9a118
PYCOVERAGE_RUN
=
@PYCOVERAGE_RUN@
PYTESTS
=
tsig_keys_test.py
EXTRA_DIST
=
$(PYTESTS)
# test using command-line arguments, so use check-local target instead of TESTS
check-local
:
if
ENABLE_PYTHON_COVERAGE
...
...
@@ -12,6 +14,6 @@ endif
echo Running test
:
$$pytest ;
\
env B10_TEST_PLUGIN_DIR=$(abs_srcdir)/..:$(abs_builddir)/..
\
env PYTHONPATH=$(abs_top_srcdir)/src/lib/python:$(abs_top_builddir)/src/lib/python:$(abs_top_builddir)/src/bin/cfgmgr:$(abs_top_builddir)/src/lib/dns/python/.libs
\
$(PYCOVERAGE_RUN) $(abs_
build
dir)/$$pytest || exit ;
\
$(PYCOVERAGE_RUN) $(abs_
src
dir)/$$pytest || exit ;
\
done
src/lib/python/isc/util/tests/file_test.py
View file @
f6e9a118
...
...
@@ -19,8 +19,8 @@ import unittest
class
FileTest
(
unittest
.
TestCase
):
def
test_search_path_find
(
self
):
"""Test it returns the first occurence of the file"""
self
.
assertEqual
(
'./file
_test.py
'
,
isc
.
util
.
file
.
path_search
(
'file
_test.py
'
,
self
.
assertEqual
(
'./
Make
file'
,
isc
.
util
.
file
.
path_search
(
'
Make
file'
,
[
'/no/such/directory/'
,
'.'
,
'../tests/'
]))
...
...
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