aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/Makefile
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2018-04-11 16:28:49 +0200
committerCyril SIX <cyril.six@kalray.eu>2018-04-11 16:28:49 +0200
commitd407e23fe62ce837082820f777564c0050cf66c1 (patch)
tree1a3b3f260a61c7dcc2d096e0133a8b1dcc42a257 /test/mppa/Makefile
parent1ecd47e848d3073c7317dc39c4fa72dbac66dd60 (diff)
downloadcompcert-kvx-d407e23fe62ce837082820f777564c0050cf66c1.tar.gz
compcert-kvx-d407e23fe62ce837082820f777564c0050cf66c1.zip
MPPA - Automatic generation of expected value for tests
Diffstat (limited to 'test/mppa/Makefile')
-rw-r--r--test/mppa/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/mppa/Makefile b/test/mppa/Makefile
index f8b3f68c..0e0b2eb2 100644
--- a/test/mppa/Makefile
+++ b/test/mppa/Makefile
@@ -23,10 +23,13 @@ $(DIR)/$(ASMDIR)/%.s: $(DIR)/%.c $(CCOMP)
@mkdir -p $(@D)
ccomp $(DEBUG) -O0 -v -S $< -o $@
-$(DIR)/$(BINDIR)/%.tok: $(DIR)/$(BINDIR)/%.bin
+$(DIR)/$(BINDIR)/%.tok: $(DIR)/$(BINDIR)/%.bin $(DIR)/output/%.bin.exp
@mkdir -p $(@D)
@bash check.sh $< $@
+$(DIR)/output/%.bin.exp: $(DIR)/%.c
+ @bash generate.sh $< $@
+
.PHONY: FORCE
FORCE:
@@ -45,7 +48,9 @@ clean:
rm -f $(DIR)/*.parsed.c
rm -f $(DIR)/*.rtl.?
rm -f $(DIR)/$(ASMDIR)/*.s
- rm -f $(DIR)/$(BINDIR)/*.[bin,tok]
+ rm -f $(DIR)/$(BINDIR)/*.bin
+ rm -f $(DIR)/$(BINDIR)/*.tok
rm -f $(DIR)/output/*.out
+ rm -f $(DIR)/output/*.exp
rm -rf $(DIR)/profile/
rm -f $(ELF)