Skip to content

Commit 79c70c6

Browse files
committed
Add recipes to generate Python test fixtures
1 parent 9e44bd0 commit 79c70c6

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
# TARGETS #
3+
4+
# Run fixture runners.
5+
#
6+
# This target runs scripts written in Python to generate test fixtures.
7+
8+
test-fixtures-python:
9+
$(QUIET) $(FIND_PYTHON_TESTS_FIXTURES_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | while read -r file; do \
10+
echo ""; \
11+
echo "Generating test fixtures: $$file"; \
12+
$(PYTHON) $$file || exit 1; \
13+
done
14+
15+
.PHONY: test-fixtures-python
16+
17+
18+
# Run fixture runners.
19+
#
20+
# This target runs a list of scripts written in Python to generate fixtures.
21+
22+
test-fixtures-python-files:
23+
$(QUIET) for file in $(FILES); do \
24+
echo ""; \
25+
echo "Generating test fixtures: $$file"; \
26+
$(PYTHON) $$file || exit 1; \
27+
done
28+
29+
.PHONY: test-fixtures-python-files

0 commit comments

Comments
 (0)