tests: run the C++ tests on all the available standards

This is much of course more efficient than in the matrix of the CI (or
on our own machines), but a bit more tedious.

* configure.ac (CXX03_CXXFLAGS, CXX11_CXXFLAGS, CXX14_CXXFLAGS)
(CXX17_CXXFLAGS, CXX2A_CXXFLAGS, STDCXX_FLAGS): New.
* tests/atlocal.in: Receive them.
* tests/local.at (AT_FOR_EACH_CXX): New.
* tests/c++.at: Use AT_FOR_EACH_CXX.
This commit is contained in:
Akim Demaille
2018-09-12 22:01:32 +02:00
parent 84744e5f63
commit 9ff76cdda8
4 changed files with 40 additions and 7 deletions

View File

@@ -55,7 +55,9 @@ fi
: ${NO_EXCEPTIONS_CXXFLAGS='@NO_EXCEPTIONS_CXXFLAGS@'}
# Requiring a specific C++ standard.
: ${CXX98_CXXFLAGS='@CXX98_CXXFLAGS@'}
: ${CXX11_CXXFLAGS='@CXX11_CXXFLAGS@'}
: ${STDCXX_FLAGS='@STDCXX_FLAGS@'}
# Be sure that the C++ compiler is not broken because of gnulib. This
# cannot be checked in configure (gnulib is not parameterized yet),