Skip to content

Commit e8b7ed9

Browse files
committed
Move repeated file references into Make variable
This patch is code motion, and has no effect on test results. Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent 8db23ce commit e8b7ed9

File tree

1 file changed

+5
-10
lines changed
  • tests/case_utils/case_validate/uco_test_examples

1 file changed

+5
-10
lines changed

tests/case_utils/case_validate/uco_test_examples/Makefile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tests_srcdir := $(top_srcdir)/tests
2525

2626
RDF_TOOLKIT_JAR := $(uco_srcdir)/lib/rdf-toolkit.jar
2727

28-
all: \
28+
validation_ttls := \
2929
action_inheritance_PASS_validation.ttl \
3030
action_inheritance_XFAIL_validation.ttl \
3131
action_result_PASS_validation.ttl \
@@ -36,6 +36,9 @@ all: \
3636
relationship_PASS_validation.ttl \
3737
relationship_XFAIL_validation.ttl
3838

39+
all: \
40+
$(validation_ttls)
41+
3942
.PRECIOUS: \
4043
%_validation.ttl
4144

@@ -75,15 +78,7 @@ all: \
7578
mv _$@ $@
7679

7780
check: \
78-
action_inheritance_PASS_validation.ttl \
79-
action_inheritance_XFAIL_validation.ttl \
80-
action_result_PASS_validation.ttl \
81-
hash_PASS_validation.ttl \
82-
hash_XFAIL_validation.ttl \
83-
location_PASS_validation.ttl \
84-
location_XFAIL_validation.ttl \
85-
relationship_PASS_validation.ttl \
86-
relationship_XFAIL_validation.ttl
81+
$(validation_ttls)
8782
source $(tests_srcdir)/venv/bin/activate \
8883
&& pytest \
8984
--log-level=DEBUG

0 commit comments

Comments
 (0)