mbedtls/tests/scripts
Gilles Peskine 03ab544832 Generate cpp_cummy_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>
2021-07-12 18:19:31 +02:00
..
all-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
all.sh Generate cpp_cummy_build.cpp dynamically 2021-07-12 18:19:31 +02:00
analyze_outcomes.py Document the fields of TestCasesOutcomes 2020-06-26 18:31:26 +02:00
basic-build-test.sh Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
basic-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
check-doxy-blocks.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
check-generated-files.sh Do support multiple files generated from the same script 2021-05-25 20:11:48 +02:00
check-names.sh Remove MBEDTLS_USER_CONFIG_VERSION handling 2021-06-28 09:28:48 +01:00
check-python-files.sh mypy: require at least version 0.780 2021-01-20 12:03:24 +01:00
check_files.py check_files.py: pass mypy 2020-12-10 21:30:01 +01:00
check_test_cases.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
curves.pl Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
depends-hashes.pl Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
depends-pkalgs.pl Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
docker_env.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
doxygen.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_ctr_drbg.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_gcm_decrypt.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_gcm_encrypt.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_pkcs1_v21_sign_verify.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate-afl-tests.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate_psa_tests.py Speed up the generation of storage format test cases 2021-07-07 12:47:47 +02:00
generate_test_code.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
key-exchanges.pl Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
list-enum-consts.pl Corrections to the docs wording and changes to aux scripts 2021-06-15 00:18:32 +02:00
list-identifiers.sh Corrections to the docs wording and changes to aux scripts 2021-06-15 00:18:32 +02:00
list-macros.sh Rename the _ret() functions 2021-06-08 16:45:41 +02:00
list-symbols.sh Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
mbedtls_test.py mbedtls_test.py: Tell mypy to ignore mbed_host_tests 2020-12-10 21:30:14 +01:00
psa_collect_statuses.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
recursion.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
run-test-suites.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
scripts_path.py Allow tests/scripts/foo.py to import from scripts 2020-12-10 23:16:03 +01:00
set_psa_test_dependencies.py Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
tcp_client.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
test-ref-configs.pl Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
test_config_script.py Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
test_generate_test_code.py test_generate_test_code: remove Python 2 compatibility code 2020-12-10 21:30:08 +01:00
test_psa_constant_names.py Use InputsForTest in generate_psa_tests 2021-05-25 19:39:02 +02:00
test_zeroize.gdb Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
travis-log-failure.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00