]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
warn, rather than failing, if kyua is not present
authorEvan Hunt <each@isc.org>
Thu, 15 Nov 2018 21:27:09 +0000 (13:27 -0800)
committerEvan Hunt <each@isc.org>
Fri, 16 Nov 2018 20:42:39 +0000 (12:42 -0800)
(cherry picked from commit 6cfb2249e1adc216691bc59fea2256559d37fe0e)

README
README.md
configure
configure.ac
unit/README

diff --git a/README b/README
index 8e442f68e1041452999220b33ca7ee56d55c01f6..77c3ba4443e95cf4058fcc548b394ddafc48675c 100644 (file)
--- a/README
+++ b/README
@@ -409,9 +409,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
 
index dd0b77037dfd23ab5fc0f18d984db449e23d09f3..b1e6d6cef831a68c9b9a1085e551d577f56f2f90 100644 (file)
--- a/README.md
+++ b/README.md
@@ -422,9 +422,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
 
index e139dcb28df5f7839f57b5ebdf2d0010071341b7..81ca6584f4611330a2954c668acf6801c1cdbf20 100755 (executable)
--- a/configure
+++ b/configure
@@ -23423,7 +23423,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
 #
 
@@ -23474,7 +23474,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
 
index f772c89147edf73925c2f93c2e8f4d30598c43b9..328daa2c075674842be3416254ee0aa930f6c881 100644 (file)
@@ -4874,14 +4874,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])
 
index 5775ef87eff0b5b83b512a0fec94dc0ac82b13aa..9cdcf9b904166a7b445acf115f51b3747785dc01 100644 (file)
@@ -1,4 +1,5 @@
-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: