| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-09-18 15:18:05 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-09-18 15:18:05 +0200 |
| commit | 59d6ea1df12aa2fadcab1ec5cd22b99873721869 (patch) | |
| tree | a75f2a4edc3eb419585cff809025289ea8f5295e /data/test | |
| parent | 80e9830758781e46a283e493a3c2f902969c0bea (diff) | |
Moves the templates to accommodate the tests.
Diffstat (limited to 'data/test')
| -rw-r--r-- | data/test/Makefile | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/data/test/Makefile b/data/test/Makefile index fe2d1ff..43e2232 100644 --- a/data/test/Makefile +++ b/data/test/Makefile @@ -1,23 +1,30 @@ -TABELLION_MAIN ?= $(shell pwd)/../../ +TABELLION_MAIN ?= ${CURDIR}/../../ AST_CREATOR = ghdl --file-to-xml -TEST_DIRS ?= $(addprefix $(shell pwd)/,$(wildcard */)) -PROPERTY_DIR ?= $(shell pwd)/../property +#TEST_DIRS ?= $(addprefix ${CURDIR}/,$(wildcard */)) +TEST_DIRS ?= $(patsubst %/,%,$(wildcard */)) +PROPERTY_DIR ?= ${CURDIR}/../property SOLUTION_DIR ?= /tmp/tabellion/sol/ -ORACLE_CREATOR_SCRIPT = $(shell pwd)/oracle_creator.py +ORACLE_CREATOR_SCRIPT = ${CURDIR}/oracle_creator.py ################################################################################ -TEST_FILES = \ - $(addsuffix /valid,$(TEST_DIRS)) \ - $(addsuffix /invalid,$(TEST_DIRS)) +TEST_FILES = $(addsuffix /valid,$(TEST_DIRS)) #VHD_FILES = $(addsuffix .vhd, $(TEST_FILES)) AST_FILES = $(addsuffix .xml, $(TEST_FILES)) OCL_FILES = $(addsuffix .ocl, $(TEST_FILES)) -SOL_FILES = $(addsuffix .sol, $(TEST_FILES)) all: $(AST_FILES) $(OCL_FILES) + for TD in $(TEST_DIRS) ; do \ + $(MAKE) -C $$TD PROPERTY_FILES=$$TD.pro + + +clean: + rm -f $(AST_FILES) + rm -f $(OCL_FILES) $(AST_FILES): %.xml : %.vhd $(AST_CREATOR) $< > $@ $(OCL_FILES): %.ocl : %.vhd grep -no "\$$SOL:[0-9]\+:[0-9]\+\\$$" $< | $(ORACLE_CREATOR_SCRIPT) > $@ + + |


