Usermode/utests - Fix DNS utest, update libc utests to new format (no more EXP files)
[tpg/acess2.git] / Usermode / Libraries / Makefile.tpl
index 8f548bf..8706a0a 100644 (file)
@@ -55,22 +55,24 @@ HEADERS := $(patsubst include_exp/%,../../include/%,$(shell find include_exp/ -n
 _libs: $(HEADERS)
 
 ../../include/%: include_exp/%
+       @echo [LN] $@
        @mkdir -p $(dir $@)
        @ln -s $(shell pwd)/$< $@
 
 .PHONY: utest utest-build utest-run $(UTESTS:%=runtest-%)
 
-utest: utest-build generate_exp utest-run
+utest: utest-build utest-run
 
-generate_exp: $(UTESTS:%=EXP_%.txt)
+utest-build: _ $(UTESTS:%=TEST_%)
 
-utest-build: $(UTESTS:%=TEST_%)
+utest-run: _ $(UTESTS:%=runtest-%)
 
-utest-run: $(UTESTS:%=runtest-%)
+_:
+       @true
 
-$(UTESTS:%=runtest-%): runtest-%: TEST_% EXP_%.txt
+$(UTESTS:%=runtest-%): runtest-%: TEST_%
        @echo --- [TEST] $*
-       @./TEST_$* | diff EXP_$*.txt -
+       @./TEST_$*
 
 clean:
        $(RM) $(_BIN) $(_XBIN) $(OBJ) $(_BIN).dsm $(DEPFILES) $(EXTRACLEAN)
@@ -133,7 +135,7 @@ $(OUTPUTDIR)Libs/%:
 obj-native/%.no: %.c
        @mkdir -p $(dir $@)
        @echo [CC Native] -o $@
-       @$(NCC) -g -c $< -o $@ -Wall -std=gnu99 -MD -MP -MF [email protected] '-D_SysDebug(f,v...)=fprintf(stderr,"DEBUG "f"\n",##v)' -include stdio.h
+       @$(NCC) -g -c $< -o $@ -Wall -std=gnu99 -MD -MP -MF [email protected] '-D_SysDebug(f,v...)=fprintf(stderr,"DEBUG "f"\n",##v)' -include stdio.h -I $(ACESSDIR)/Usermode/Libraries/_utest_include/
 
 TEST_%: obj-native/TEST_%.no obj-native/%.no
        @echo [CC Native] -o $@

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