From 67debb616103c68f259857909062804623a4bf0a Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 18 May 2021 16:09:50 +0200 Subject: [PATCH] Test check-generated-files.sh Re-create a component check_generated_files. Unlike the old one, which checked that the generated files were up-to-date, the job of the new one is to check that tests/scripts/check-generated-files.sh works (at least to the extent of not errorring out). Signed-off-by: Gilles Peskine --- tests/scripts/all.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 30ecd315bc..3cd945656d 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -676,6 +676,26 @@ component_check_recursion () { record_status tests/scripts/recursion.pl library/*.c } +component_check_generated_files () { + msg "Check: check-generated-files, files generated with make" # 2s + make generated_files + record_status tests/scripts/check-generated-files.sh + + msg "Check: check-generated-files -u, files present" # 2s + record_status tests/scripts/check-generated-files.sh -u + # Check that the generated files are considered up to date. + record_status tests/scripts/check-generated-files.sh + + msg "Check: check-generated-files -u, files absent" # 2s + command make neat + record_status tests/scripts/check-generated-files.sh -u + # Check that the generated files are considered up to date. + record_status tests/scripts/check-generated-files.sh + + # This component ends with the generated files present in the source tree. + # This is necessary for subsequent components! +} + component_check_doxy_blocks () { msg "Check: doxygen markup outside doxygen blocks" # < 1s record_status tests/scripts/check-doxy-blocks.pl