This adds an additional test step which runs abi.exp tests with
GLIBCXX_TESTSUITE_STDS=modules in the environment, to trigger the code
in lib/libstdc++.exp that compiles the std.cc and std.compat.cc modules.
If there are errors in those files, it will fail.
The abi.exp testsuite is quick, so using that has low overhead, but this
is really only intended as a stopgap until we do real modules testing in
the testsuite.
libstdc++-v3/ChangeLog:
* testsuite/Makefile.am (check-am): Run abi.exp tests with
GLIBCXX_TESTSUITE_STDS=modules in the environment.
* testsuite/Makefile.in: Regenerate.
---
Tested x86_64-linux.
libstdc++-v3/testsuite/Makefile.am | 1 +
libstdc++-v3/testsuite/Makefile.in | 1 +
2 files changed, 2 insertions(+)
diff --git a/libstdc++-v3/testsuite/Makefile.am
b/libstdc++-v3/testsuite/Makefile.am
index e8b6eb9e8ad4..9093744ce1f6 100644
--- a/libstdc++-v3/testsuite/Makefile.am
+++ b/libstdc++-v3/testsuite/Makefile.am
@@ -152,6 +152,7 @@ check-DEJAGNU $(check_DEJAGNU_normal_targets):
check-DEJAGNU%: site.exp
fi
check-am:
+ GLIBCXX_TESTSUITE_STDS=modules $(MAKE) $(AM_MAKEFLAGS) check-abi
$(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
.PHONY: check-DEJAGNU
diff --git a/libstdc++-v3/testsuite/Makefile.in
b/libstdc++-v3/testsuite/Makefile.in
index 3aed09d10492..1b63cf2f2639 100644
--- a/libstdc++-v3/testsuite/Makefile.in
+++ b/libstdc++-v3/testsuite/Makefile.in
@@ -702,6 +702,7 @@ check-DEJAGNU $(check_DEJAGNU_normal_targets):
check-DEJAGNU%: site.exp
fi
check-am:
+ GLIBCXX_TESTSUITE_STDS=modules $(MAKE) $(AM_MAKEFLAGS) check-abi
$(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
.PHONY: check-DEJAGNU
--
2.53.0