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
BIND
Commits
6cfb2249
Commit
6cfb2249
authored
Nov 15, 2018
by
Evan Hunt
Committed by
Ondřej Surý
Nov 16, 2018
Browse files
warn, rather than failing, if kyua is not present
parent
7346199a
Pipeline
#6820
passed with stages
in 8 minutes and 8 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README
View file @
6cfb2249
...
...
@@ -289,9 +289,10 @@ and will be skipped if these are not available. Some tests require Python
and the 'dnspython' module and will be skipped if these are not available.
See bin/tests/system/README for further details.
Unit tests are implemented using cmocka unit testing framework.
To run them, use configure --with-cmocka, then run make test or
make unit.
Unit tests are implemented using the CMocka unit testing framework. To
build them, use configure --with-cmocka. Execution of tests is done by the
Kyua test execution engine; if the kyua command is available, then unit
tests can be run via make test or make unit.
Documentation
...
...
README.md
View file @
6cfb2249
...
...
@@ -307,9 +307,10 @@ and will be skipped if these are not available. Some tests require Python
and the 'dnspython' module and will be skipped if these are not available.
See bin/tests/system/README for further details.
Unit tests are implemented using cmocka unit testing framework.
To run them, use
`configure --with-cmocka`
, then run
`make test`
or
`make unit`
.
Unit tests are implemented using the CMocka unit testing framework.
To build them, use
`configure --with-cmocka`
. Execution of tests is done
by the Kyua test execution engine; if the
`kyua`
command is available,
then unit tests can be run via
`make test`
or
`make unit`
.
### <a name="doc"/> Documentation
...
...
configure
View file @
6cfb2249
...
...
@@ -19875,7 +19875,7 @@ esac
#
# Check for kyua execution engine if
ATF
was requested
# Check for kyua execution engine if
CMocka
was requested
# and bail out if execution engine was not found
#
...
...
@@ -19926,7 +19926,8 @@ fi
done
if test -z "$KYUA"; then :
as_fn_error $? "kyua test execution engine not found" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
$as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
fi
fi
...
...
configure.ac
View file @
6cfb2249
...
...
@@ -2436,14 +2436,14 @@ AC_SUBST([CMOCKA_LIBS])
AC_SUBST(UNITTESTS)
#
# Check for kyua execution engine if
ATF
was requested
# Check for kyua execution engine if
CMocka
was requested
# and bail out if execution engine was not found
#
AC_ARG_VAR([KYUA], [path to kyua execution engine])
AS_IF([test "$with_cmocka" != "no"],
[AC_PATH_PROGS([KYUA], [kyua], [])
AS_IF([test -z "$KYUA"],
[AC_MSG_
ERROR
([kyua test execution engine not found])])])
[AC_MSG_
WARN
([kyua test execution engine not found])])])
AC_SUBST([KYUA])
...
...
unit/README
View file @
6cfb2249
Unit tests for BIND 9 are based on cmocka and test execution engine Kyua.
Unit tests for BIND 9 are based on the CMocka testing framework and
the Kyua test execution engine.
If your distribution of choice doesn't include packages for kyua or cmocka, the
sources can be found here:
...
...
Evan Hunt
@each
mentioned in commit
3ff49fa6
·
Nov 16, 2018
mentioned in commit
3ff49fa6
mentioned in commit 3ff49fa6148deb4f92e7cba29bc1b93f098135f5
Toggle commit list
Evan Hunt
@each
mentioned in commit
2d7235e1
·
Nov 16, 2018
mentioned in commit
2d7235e1
mentioned in commit 2d7235e1f113a5f16f040b6ec9bba885d78ec9d8
Toggle commit list
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