mbedtls/programs/test
Gilles Peskine 9b35640e3f Generate cpp_dummy_build.cpp dynamically
Generate programs/test/cpp_dummy_build.cpp dynamically instead of
maintaining it manually. This removes the need to update it when the list of
headers changes.

Include all the headers unconditionally except for the ones that cannot be
included directly.

Support this dynamic generation both with make and with cmake.

Adapt all.sh accordingly. Remove the redundant C build from
component_build_default_make_gcc_and_cxx (it was also done in
component_test_default_out_of_box), leaving a component_test_make_cxx. Also
run the C++ program, because why not. Do this in the full configuration
which may catch a bit more problems in headers.

Fixes #2570 for good.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Signed-off-by: Thomas Daubney <>
2021-10-11 14:29:16 +01:00
..
cmake_subproject Build: Add MBEDTLS_TARGET_PREFIX 2020-10-20 13:44:44 +01:00
benchmark.c Support running the benchmark with a single curve 2020-12-07 22:51:25 +01:00
CMakeLists.txt Generate cpp_dummy_build.cpp dynamically 2021-10-11 14:29:16 +01:00
generate_cpp_dummy_build.sh Generate cpp_dummy_build.cpp dynamically 2021-10-11 14:29:16 +01:00
query_compile_time_config.c Move the declaration of query_config() to a dedicated header file 2021-01-13 14:19:43 +01:00
query_config.c Remove MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES option. 2021-09-06 12:18:53 +02:00
query_config.h Move the declaration of query_config() to a dedicated header file 2021-01-13 14:19:43 +01:00
selftest.c Fix GCC warning about test_snprintf 2020-11-25 01:13:12 -03:00
udp_proxy.c Fix bug with UDP proxy not forwarding enough 2021-07-08 12:42:59 +02:00
udp_proxy_wrapper.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
zeroize.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00