Skip to content

Commit 5b9e4b0

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 b3b3517 commit 5b9e4b0

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
@@ -42,8 +42,14 @@ lint:
4242
pycodestyle --ignore=E501 gen_contents.py
4343

4444
integration: all
45-
# make sure generated output has created expected files
46-
tests/integration/check-missing-files platforms/*/*/*.xml
45+
# check files mentioned in generated XML outputs
46+
tests/integration/check-missing-files \
47+
$$(find platforms \
48+
-name 'contents.xml' -o \
49+
-name 'partitions.xml' -o \
50+
-name 'patch*.xml' -o \
51+
-name 'rawprogram*.xml' -o \
52+
-name 'wipe_*.xml')
4753
# test %include and multi-disk features
4854
tests/integration/check-include-multidisk
4955

0 commit comments

Comments
 (0)