test: rename mpp-*.json to *.mpp.json

This simplifies the `test-data` rules in `Makefile` considerably. Also,
it allows adding `*.mpp.json` files in other directories without needing
to copy rules. (make's pattern-based rules only allow a single `%`).

Adjust test/data/README.md accordingly.
This commit is contained in:
Lars Karlitski 2020-10-16 20:18:42 +02:00 committed by Tom Gundersen
parent c11459c626
commit d9ef44eb6d
7 changed files with 7 additions and 7 deletions

View file

@ -205,10 +205,10 @@ coverity-clean-all: coverity-clean
# for linters and other tests on the source code.
#
TEST_MANIFESTS_MPP = $(wildcard $(SRCDIR)/test/data/manifests/mpp-*.json)
TEST_MANIFESTS_GEN = $(patsubst $(SRCDIR)/test/data/manifests/mpp-%.json,$(SRCDIR)/test/data/manifests/%.json,$(TEST_MANIFESTS_MPP))
TEST_MANIFESTS_MPP = $(wildcard $(SRCDIR)/test/data/manifests/*.mpp.json)
TEST_MANIFESTS_GEN = $(TEST_MANIFESTS_MPP:%.mpp.json=%.json)
$(TEST_MANIFESTS_GEN): $(SRCDIR)/test/data/manifests/%.json: $(SRCDIR)/test/data/manifests/mpp-%.json
$(TEST_MANIFESTS_GEN): %.json: %.mpp.json
$(SRCDIR)/tools/mpp-depsolve.py <"$<" \
| $(SRCDIR)/tools/mpp-import-pipeline.py >"$@" \
"--cwd=$(SRCDIR)/test/data/manifests"