Skip to content

Commit 774ff89

Browse files
committed
Makefile: run tests on specific XML filenames at any depth
Replace static glob (platforms/*/*/*.xml) with find to discover XML files at any depth. This is needed for multi-disk use cases that place generated files in per-storage subdirectories. Take this opportunity to use specific filenames that we can scan. Signed-off-by: Loïc Minier <loic.minier@oss.qualcomm.com>
1 parent 1b7ba74 commit 774ff89

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,14 @@ lint:
5151
pycodestyle --ignore=E501 gen_contents.py
5252

5353
integration: all
54-
# make sure generated output has created expected files
55-
tests/integration/check-missing-files platforms/*/*/*.xml
54+
# check files mentioned in generated XML outputs
55+
tests/integration/check-missing-files \
56+
$$(find platforms \
57+
-name 'contents.xml' -o \
58+
-name 'partitions.xml' -o \
59+
-name 'patch*.xml' -o \
60+
-name 'rawprogram*.xml' -o \
61+
-name 'wipe_*.xml')
5662
# test %include and multi-disk features
5763
tests/integration/check-include-multidisk
5864

0 commit comments

Comments
 (0)