Skip to content

Commit bebd675

Browse files
Move check_committed_generated_files to its own component
This will probably help when a framework change causes the content of these files to change. See Mbed-TLS/mbedtls-test#252 Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
1 parent ab54e0e commit bebd675

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

tests/scripts/components-basic-checks.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,6 @@ component_check_recursion () {
1616
./framework/scripts/recursion.pl ${BUILTIN_SRC_PATH}/*.c
1717
}
1818

19-
support_check_generated_files () {
20-
# Add requirements on the Python installation here for
21-
# the sake of check_committed_generated_files.py in mbedtls.
22-
#
23-
# Check the Python version, not the presence of the package,
24-
# because the CI runs `all.sh --list-components` outside of the
25-
# venv that has our desired packages.
26-
:
27-
}
28-
2919
component_check_generated_files () {
3020
msg "Check make_generated_files.py consistency"
3121
$MAKE_COMMAND neat
@@ -57,7 +47,19 @@ component_check_generated_files () {
5747

5848
# This component ends with the generated files present in the source tree.
5949
# This is necessary for subsequent components!
50+
}
51+
52+
support_check_committed_generated_files () {
53+
# Add requirements on the Python installation here for
54+
# the sake of check_committed_generated_files.py in mbedtls.
55+
#
56+
# Check the Python version, not the presence of the package,
57+
# because the CI runs `all.sh --list-components` outside of the
58+
# venv that has our desired packages.
59+
:
60+
}
6061

62+
component_check_committed_generated_files () {
6163
msg "Check committed generated files"
6264
tests/scripts/check_committed_generated_files.py
6365
}

0 commit comments

Comments
 (0)