aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorazidar2015-02-18 17:20:11 -0800
committerazidar2015-02-18 17:20:11 -0800
commit50b5ce57d1b823a03725dd0aa2141f300c244bf1 (patch)
tree6fd005a2e07034ff017dfb6bada6b1eeddad2783 /Makefile
parentafde65773fc7b19dd99e0c65f718a96d0466541b (diff)
Added more testing infrastructre, and Makefile to build firrtl
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 139597f9..cf869d2b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,22 @@
+# Installs stanza into /usr/local/bin
+# TODO Talk to Patrick to fill this in
+root_dir ?= $(PWD)
+test_src_dir ?= $(root_dir)/test/unit
+test_out_dir ?= $(root_dir)/test/unit/out
+firrtl_dir ?= $(root_dir)/src/main/stanza
+all: build check
+install-stanza:
+
+
+
+build:
+ cd $(firrtl_dir) && stanzam -i firrtl-main.stanza -o $(root_dir)/utils/bin/firrtl
+
+# Runs single test
+check:
+ ./firrtl $(test_src_dir)/gcd.fir | tee $(test_out_dir)/gcd.out
+
+diff:
+ diff test/unit/out/* test/unit/cor/*