summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-15 13:55:18 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-15 13:55:18 +0100
commitd07c5bc14edbe071ee7b4f47f174780e95e451aa (patch)
tree889ed88ea6907119b75b7b76f616a604c9857e3d /Makefile
parent9e7f4c9d43b310c280cd6432cd4150411f4b914e (diff)
Simplify Asm construction
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e7d50dd..7120470 100644
--- a/Makefile
+++ b/Makefile
@@ -97,9 +97,13 @@ TESTSRC=\
SRC=$(PROGSRC) mcc.cpp
-all: test-$(PROJECTNAME) mcc
- ./test-$(PROJECTNAME) # --gtest_filter='CppTest.compile_1'
+all: mcc unittest systemtest
+# Tests on C++ level
+unittest: test-$(PROJECTNAME)
+ ./test-$(PROJECTNAME) --gtest_filter='CppTest.compile_2_times'
+
+# Testing mcc executable and compiled elf programs
systemtest:
./mcc systemtest/mcc-execute.tests/test-return-1.cpp
./mcc systemtest/mcc-execute.tests/test-addition.cpp
@@ -142,6 +146,6 @@ zip: clean
zip -r ../$(PROJECTNAME).zip *
ls -l ../$(PROJECTNAME).zip
-.PHONY: clean all zip dep systemtest
+.PHONY: clean all zip dep systemtest unittest
-include $(wildcard $(SRC:.cpp=.d))