# Run tests interleaved with main build. They have to be in the same target for this.
real-all:$(if $(NO_TEST),,test)
real-all:style $(if $(NO_TEST),,test)
# the test suite
TESTFILES:=$(shell find tests -name"*.v")
NORMALIZER:=test-normalizer.sed
test:$(TESTFILES:.v=.vo)
style:$(VFILES)
# Make sure everything imports the options, and all Instance/Argument/Hint are qualified.
$(SHOW)"Performing some style checks..."
$(HIDE)forFILEin$(VFILES);do\
...
...
@@ -20,6 +16,13 @@ test: $(TESTFILES:.v=.vo)
done
# Make sure main Iris does not import other Iris packages.
$(HIDE)if egrep 'iris\.(heap_lang|deprecated|staging)' --include "*.v" -R iris; then echo "ERROR:Iris may not import modules from other Iris packages (see above for violations)."; echo; exit 1; fi