aboutsummaryrefslogtreecommitdiff
path: root/tests/simt_cache/source.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simt_cache/source.mk')
-rw-r--r--tests/simt_cache/source.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/simt_cache/source.mk b/tests/simt_cache/source.mk
new file mode 100644
index 0000000..c9b5877
--- /dev/null
+++ b/tests/simt_cache/source.mk
@@ -0,0 +1,11 @@
+SIMT_CACHE := tests/simt_cache
+SIMT_CACHE_SIM := $(SIMT_CACHE)/sim.c
+
+TESTS += $(SIMT_CACHE)/sim
+
+.PHONY: $(SIMT_CACHE)/sim
+$(SIMT_CACHE)/sim: $(SIMT_CACHE_SIM) libgran.a
+ mkdir -p build/$(SIMT_CACHE)
+ ./scripts/gen-rv64-fw -d build -o $(SIMT_CACHE)/test.inc $(SIMT_CACHE)/test.c
+ $(COMPILE_TEST) $(SIMT_CACHE_SIM) libgran.a -o build/$@
+ ./scripts/gen-report -d build $@