Usermode/libc - Fixed unit tests
authorJohn Hodge <[email protected]>
Mon, 7 Oct 2013 13:05:29 +0000 (21:05 +0800)
committerJohn Hodge <[email protected]>
Mon, 7 Oct 2013 13:05:29 +0000 (21:05 +0800)
Usermode/Libraries/Makefile.tpl
Usermode/Libraries/libc.so_src/Makefile

index 7c9546f..00913ce 100644 (file)
@@ -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:
index 6dba912..4c37d18 100644 (file)
@@ -26,8 +26,10 @@ endif
 include ../Makefile.tpl\r
 \r
 EXP_%.txt: TEST_%.native\r
-       ./TEST_printf.native > EXP_printf.txt\r
-       rm TEST_printf.native\r
+       ./$< > $@\r
+       rm $<\r
+EXP_strtoi.txt:\r
+       echo -n "" > $@\r
 \r
 %.native: %.c\r
        $(NCC) $< -o $@ -Wall -std=gnu99\r

UCC git Repository :: git.ucc.asn.au