diff --git a/tests/case_utils/case_validate/.gitignore b/tests/case_utils/case_validate/.gitignore new file mode 100644 index 0000000..303dea0 --- /dev/null +++ b/tests/case_utils/case_validate/.gitignore @@ -0,0 +1 @@ +uco_monolithic.ttl diff --git a/tests/case_utils/case_validate/Makefile b/tests/case_utils/case_validate/Makefile index 37378f4..d0c1b0a 100644 --- a/tests/case_utils/case_validate/Makefile +++ b/tests/case_utils/case_validate/Makefile @@ -15,6 +15,11 @@ SHELL := /bin/bash top_srcdir := $(shell cd ../../.. ; pwd) +case_version := $(shell $(PYTHON3) $(top_srcdir)/case_utils/ontology/version_info.py) +ifeq ($(case_version),) +$(error Unable to determine CASE version) +endif + tests_srcdir := $(top_srcdir)/tests all: \ @@ -57,7 +62,8 @@ check-cli: --directory cli \ check -check-uco_test_examples: +check-uco_test_examples: \ + uco_monolithic.ttl $(MAKE) \ --directory uco_test_examples \ check @@ -72,3 +78,17 @@ clean: @$(MAKE) \ --directory cli \ clean + +# This file is necessary for a UCO unit test that case-utils runs +# substituting its own monolithic build. +# It is incorrect to designate this the "UCO" monolithic build due to +# CASE concepts being present, but using the CASE build here keeps with +# the spirit of confirming UCO tests continue to pass when using the +# CASE monolithic build. +uco_monolithic.ttl: \ + $(top_srcdir)/case_utils/ontology/version_info.py \ + $(top_srcdir)/case_utils/ontology/case-$(case_version).ttl + rm -f $@ + cp \ + $(top_srcdir)/case_utils/ontology/case-$(case_version).ttl \ + $@