From d07c5bc14edbe071ee7b4f47f174780e95e451aa Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 15 Nov 2020 13:55:18 +0100 Subject: Simplify Asm construction --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') 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)) -- cgit v1.2.3