aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Bachmeyer <jcb@gnu.org>2022-11-29 22:50:45 -0600
committerJacob Bachmeyer <jcb@gnu.org>2022-11-29 22:50:45 -0600
commit907d26ddf2551d6d6aecccd136c38ba93cc80d06 (patch)
tree65bbeca5343851320374153cb87fcc8ef96c8fed
parent93b2a2bafefcd647a55e72dda0618f55f4f694f7 (diff)
Add comment in libdejagnu test driver that the framework tests are elsewhere
-rw-r--r--ChangeLog5
-rw-r--r--testsuite/libdejagnu/unit.exp6
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9c20ec7..693f077 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2022-11-29 Jacob Bachmeyer <jcb@gnu.org>
+ * testsuite/libdejagnu/unit.exp: Add note that tests for the
+ framework side of the unit testing protocol are located in
+ testsuite/runtest.main/stats.exp and its nested testsuite.
+
* Makefile.in: Regenerate.
* Makefile.am (check_PROGRAMS): Remove unit.
(unit_SOURCES): Remove.
@@ -13,6 +17,7 @@
* Makefile.am (check_PROGRAMS): Add testsuite/libdejagnu/unit-cxx.
(testsuite_libdejagnu_unit_cxx_SOURCES): Add.
* testsuite/libdejagnu/unit.exp: Add tests for C++ unit test API.
+
* testsuite/libdejagnu/unit-cxx.cxx: New file.
* dejagnu.h (TestState::totals): Emit header line, like the C version.
diff --git a/testsuite/libdejagnu/unit.exp b/testsuite/libdejagnu/unit.exp
index b52a7dc..abbcf8a 100644
--- a/testsuite/libdejagnu/unit.exp
+++ b/testsuite/libdejagnu/unit.exp
@@ -18,6 +18,12 @@
# This file is a test driver for the unit test protocol library.
+# Note that the tests for the framework side of the unit testing support
+# are in testsuite/runtest.main/stats.exp and its nested testsuite, and
+# this code is a separate implementation for testing libdejagnu. In
+# particular, while libdejagnu suport modules will always emit a "Totals:"
+# line, that line is not actually part of the protocol.
+
# Each test program must accept test outcomes on the command line, and
# produce exactly those results in that order.