From: John Hodge Date: Mon, 7 Oct 2013 13:05:29 +0000 (+0800) Subject: Usermode/libc - Fixed unit tests X-Git-Tag: rel0.15~130 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=d4b7b60da59da59c06537e8a1e058f4dcd134cdb;p=tpg%2Facess2.git Usermode/libc - Fixed unit tests --- diff --git a/Usermode/Libraries/Makefile.tpl b/Usermode/Libraries/Makefile.tpl index 7c9546f5..00913cec 100644 --- a/Usermode/Libraries/Makefile.tpl +++ b/Usermode/Libraries/Makefile.tpl @@ -62,7 +62,7 @@ utest-build: $(UTESTS:%=TEST_%) utest-run: $(UTESTS:%=runtest-%) @echo > /dev/null -$(UTESTS:%=runtest-%): runtest-%: TEST_% +$(UTESTS:%=runtest-%): runtest-%: TEST_% EXP_%.txt ./TEST_$* | diff EXP_$*.txt - clean: diff --git a/Usermode/Libraries/libc.so_src/Makefile b/Usermode/Libraries/libc.so_src/Makefile index 6dba912e..4c37d186 100644 --- a/Usermode/Libraries/libc.so_src/Makefile +++ b/Usermode/Libraries/libc.so_src/Makefile @@ -26,8 +26,10 @@ endif include ../Makefile.tpl EXP_%.txt: TEST_%.native - ./TEST_printf.native > EXP_printf.txt - rm TEST_printf.native + ./$< > $@ + rm $< +EXP_strtoi.txt: + echo -n "" > $@ %.native: %.c $(NCC) $< -o $@ -Wall -std=gnu99