Changes in / [15d0046:105d8d6] in mainline
- Files:
-
- 60 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
r15d0046 r105d8d6 600 600 ! CONFIG_WRITE_CORE_FILES (n/y) 601 601 602 % Build userspace unit tests (PCUT)603 ! CONFIG_PCUT_TESTS (n/y)604 605 602 % Include development files (headers, libraries) 606 603 ! CONFIG_DEVEL_FILES (n/y) -
boot/Makefile
r15d0046 r105d8d6 68 68 cp "$$file" "$(DIST_PATH)/app/" ; \ 69 69 done 70 ifeq ($(CONFIG_PCUT_TESTS),y)71 echo "echo Running all tests..." >"$(DIST_PATH)/test/run_all"72 echo "<html><head><title>HelenOS test results</title></head><body>" >"$(DIST_PATH)/test/test.html"73 echo "<h1>HelenOS test results</h1><ul>" >>"$(DIST_PATH)/test/test.html"74 for file in $(RD_TESTS) ; do \75 file2=`basename $$file`; \76 cp "$$file" "$(DIST_PATH)/test/" ; \77 echo "echo ' ->' $$file2" >>"$(DIST_PATH)/test/run_all"; \78 echo "/test/$$file2 | to /test/$$file2.out" >>"$(DIST_PATH)/test/run_all"; \79 echo "cat /test/$$file2.out" >>"$(DIST_PATH)/test/run_all"; \80 echo "cp -f /test/$$file2.out /data/web/result-$$file2.txt" >>"$(DIST_PATH)/test/run_all"; \81 echo "<li><a href=\"result-$$file2.txt\">$$file2</a></li>" >>"$(DIST_PATH)/test/test.html"; \82 done83 echo "cp -f /test/test.html /data/web/test.html" >>"$(DIST_PATH)/test/run_all"84 echo "</ul></body></html>" >>"$(DIST_PATH)/test/test.html"85 endif86 87 70 for drv in $(RD_DRVS) ; do \ 88 71 drv_dir="`dirname "$$drv"`" ; \ … … 117 100 rm -rf $(USPACE_PATH)/dist/inc/* 118 101 rm -f $(USPACE_PATH)/dist/app/* 119 rm -f $(USPACE_PATH)/dist/test/*120 102 rm -f $(USPACE_PATH)/dist/cfg/net/* -
boot/Makefile.common
r15d0046 r105d8d6 221 221 $(USPACE_PATH)/app/fontviewer/fontviewer 222 222 223 RD_TESTS = \224 $(USPACE_PATH)/lib/c/test-libc \225 $(USPACE_PATH)/lib/posix/test-libposix \226 $(USPACE_PATH)/app/bdsh/test-bdsh227 228 229 223 COMPONENTS = \ 230 224 $(KERNEL_PATH)/kernel.bin \ -
uspace/Makefile
r15d0046 r105d8d6 236 236 lib/gpt 237 237 238 ifeq ($(CONFIG_PCUT_TESTS),y)239 LIBS += lib/pcut240 endif241 242 238 LIBC_BUILD = $(addsuffix .build,$(LIBC)) 243 239 LIBS_BUILD = $(addsuffix .build,$(LIBS)) 244 240 LIBN_BUILD = $(addsuffix .build,$(LIBN)) 245 241 BUILDS := $(addsuffix .build,$(DIRS)) 246 BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)247 242 248 243 CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC)) … … 250 245 .PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean 251 246 252 all: $(BUILDS) $(BUILDS_TESTS) 253 254 $(BUILDS_TESTS): $(BUILDS) 255 $(MAKE) -C $(basename $@) all-test PRECHECK=$(PRECHECK) 247 all: $(BUILDS) 256 248 257 249 clean: $(CLEANS) -
uspace/Makefile.common
r15d0046 r105d8d6 78 78 JOB = $(BINARY).job 79 79 OUTPUT = $(BINARY) 80 TEST_BINARY = test-$(BINARY)81 80 EXTRA_OUTPUT += $(BINARY).disasm 82 81 EXTRA_CLEAN += $(BINARY).map … … 86 85 JOB = $(LIBRARY).job 87 86 OUTPUT = $(LIBRARY).a 88 TEST_BINARY = test-$(LIBRARY)89 87 endif 90 88 … … 202 200 endif 203 201 204 # PCUT-based unit tests205 ifeq ($(CONFIG_PCUT_TESTS),y)206 ifneq ($(TEST_SOURCES),)207 TEST_OUTPUT = $(TEST_BINARY)208 TEST_CFLAGS = -I$(LIB_PREFIX)/pcut/include -D__helenos__209 TEST_OUTPUT_LIBS = $(LIB_PREFIX)/pcut/libpcut.a210 EXTRA_CLEAN += $(TEST_OUTPUT) $(TEST_OUTPUT).map211 ifneq ($(LIBRARY),)212 TEST_OUTPUT_LIBS += $(OUTPUT)213 endif214 TEST_OUTPUT_LIBS += $(TEST_LIBS)215 endif216 endif217 218 202 .PHONY: all clean 219 203 220 204 all: $(VERSION_DEF) $(COMMON_MAKEFILE) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(LIBS) $(OUTPUT) $(LOUTPUT) $(EXTRA_OUTPUT) 221 205 -[ -f $(DEPEND) ] && cp -a $(DEPEND) $(DEPEND_PREV) 222 223 all-test: $(TEST_OUTPUT)224 206 225 207 clean: … … 312 294 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 313 295 LOBJECTS := $(addsuffix .lo,$(basename $(SOURCES))) 314 TEST_OBJECTS := $(addsuffix .test.o,$(basename $(TEST_SOURCES)))315 296 316 297 ifneq ($(BINARY),) … … 357 338 endif 358 339 359 ifeq ($(CONFIG_PCUT_TESTS),y)360 ifneq ($(TEST_OUTPUT),)361 $(TEST_OUTPUT): $(LINKER_SCRIPT) $(TEST_OBJECTS) $(TEST_OUTPUT_LIBS)362 $(LD) -n $(LFLAGS) -T $(LINKER_SCRIPT) -M -Map $(TEST_OUTPUT).map -o $@ $(TEST_OBJECTS) $(TEST_OUTPUT_LIBS) $(LIBS) $(BASE_LIBS)363 ifeq ($(CONFIG_STRIP_BINARIES),y)364 $(STRIP) $(TEST_OUTPUT)365 endif366 endif367 endif368 369 340 %.o: %.S $(DEPEND) 370 341 $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@ … … 385 356 endif 386 357 387 %.test.o: %.c $(DEPEND)388 $(CC) $(DEFS) $(CFLAGS) $(TEST_CFLAGS) -c $< -o $@389 ifeq ($(PRECHECK),y)390 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)391 endif392 393 358 %.lo: %.S $(DEPEND) 394 359 $(CC) $(DEFS) $(LIB_CFLAGS) -D__ASM__ -c $< -o $@ … … 410 375 411 376 $(DEPEND): $(PRE_DEPEND) 412 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) $(TEST_SOURCES)> $@ 2> /dev/null377 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > $@ 2> /dev/null 413 378 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ 414 379 -
uspace/app/bdsh/Makefile
r15d0046 r105d8d6 65 65 tok.c 66 66 67 TEST_SOURCES = \68 tok.c \69 test/toktest.c70 71 67 include $(USPACE_PREFIX)/Makefile.common -
uspace/lib/c/Makefile
r15d0046 r105d8d6 165 165 $(ARCH_SOURCES) 166 166 167 TEST_SOURCES = \168 test/main.c \169 test/sprintf.c170 171 167 include $(USPACE_PREFIX)/Makefile.common 172 168 -
uspace/lib/posix/Makefile
r15d0046 r105d8d6 79 79 source/unistd.c 80 80 81 TEST_SOURCES = \82 test/main.c \83 test/scanf.c84 85 81 include $(USPACE_PREFIX)/Makefile.common 86 82
Note:
See TracChangeset
for help on using the changeset viewer.