mbedtls/tests/scripts
Gilles Peskine f83eb82a4d Don't restore *config.h before backing it up
Back up the config files at the beginning of all.sh, rather than before each
component. In particular, create the backup before running cleanup for the
first time. This fixes #3139 (all.sh using a config.h.bak from a previous
job), and makes all.sh more robust against accidentally using a modified
config.h midway through because a component messed with the backup.

Use a different extension (*.all.bak rather than *.bak) for the backups.
This is necessary to ensure that auxiliary scripts such as depends*.pl that
make their own backup don't remove all.sh's backup, which the code from this
commit does not support.

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 Don't restore *config.h before backing it up 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