diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-13 11:27:39 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-13 11:27:39 +0100 |
commit | 97b8d5bb3c9fd96251e89539d122d2331a2a7925 (patch) | |
tree | d72aca2bb0a2ea3b7d5933c1c68097ed0840002a /Makefile | |
parent | 387af55e498970975d77291374e2f5be12a040bd (diff) |
Add system tests, implement syscall
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -57,9 +57,8 @@ PROGSRC=\ asm/intel64/jmp.cpp \ asm/intel64/mov.cpp \ asm/intel64/mul.cpp \ - asm/intel64/nop.cpp \ - asm/intel64/ret.cpp \ asm/intel64/sub.cpp \ + asm/intel64/trivials.cpp \ asm/intel64/xor.cpp \ asm/intel64/codes.cpp \ asm/intel64/encode.cpp \ @@ -99,6 +98,11 @@ SRC=$(PROGSRC) mcc.cpp all: test-$(PROJECTNAME) mcc ./test-$(PROJECTNAME) --gtest_filter='CppTest.compile' +systemtest: + #./mcc systemtest/mcc-execute.tests/test.cpp + ./mcc systemtest/mcc-execute.tests/test1.cpp + runtest --all --srcdir systemtest --tool mcc + # testsuite ---------------------------------------------- test-$(PROJECTNAME): $(TESTSRC:.cpp=.o) $(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@ @@ -127,12 +131,14 @@ ADD_DEP=Makefile clean: -rm -f test-$(PROJECTNAME) mcc tempfile.txt -find . -name '*.o' -o -name '*.d' -o -name '*.gcno' -o -name '*.gcda' | xargs rm -f + -rm -f systemtest/mcc-execute.tests/test1 + -rm -f *.log *.sum zip: clean -rm -f ../$(PROJECTNAME).zip zip -r ../$(PROJECTNAME).zip * ls -l ../$(PROJECTNAME).zip -.PHONY: clean all zip dep +.PHONY: clean all zip dep systemtest -include $(wildcard $(SRC:.cpp=.d)) |