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 <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2021-05-18 16:09:50 +02:00
parent 94230eaf41
commit 67debb6161

View file

@ -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