Skip to content

Commit 7883c02

Browse files
authored
Merge pull request #3654 from obophenotype/issuenotermsoutsideuberonns
Add namespace validation test to Makefile
2 parents 440d1ec + 145478b commit 7883c02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ontology/uberon.Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ test: $(REPORTDIR)/uberon-basic-allcycles \
4444
obocheck \
4545
test_obo_serialisation \
4646
test_obsolete \
47+
roundtrip_obo \
4748
test_owlaxioms
4849

4950
# The other targets are manually triggered.
@@ -1431,10 +1432,9 @@ aspell:
14311432
# OBO format tricks
14321433
# ----------------------------------------
14331434
.PHONY: roundtrip_obo
1434-
roundtrip_obo: $(SRC)
1435-
$(ROBOT) convert -i $< -o $(TMPDIR)/roundtrip.obo.tmp.obo && \
1436-
mv $(TMPDIR)/roundtrip.obo.tmp.obo $(TMPDIR)/roundtrip.obo && \
1437-
diff -i $< $(TMPDIR)/roundtrip.obo
1435+
roundtrip_obo: $(SRC) $(TMPDIR)/NORMALIZE.obo
1436+
@diff -i $^ || \
1437+
{ echo "ERROR: Normalization would add changes — please normalise (sh run.sh make normalize)." >&2; exit 1; }
14381438

14391439
$(TMPDIR)/NORMALIZE.obo: $(SRC)
14401440
$(ROBOT) convert -i $< -o $@.tmp.obo && mv $@.tmp.obo $@

0 commit comments

Comments
 (0)