Index: boot/Makefile
===================================================================
--- boot/Makefile	(revision 089901ee8ce49168ea8f8adca63057de93de5f95)
+++ boot/Makefile	(revision 15d0046f9b3c481dc13462cd9c94e9f757fa743d)
@@ -68,4 +68,21 @@
 		cp "$$file" "$(DIST_PATH)/app/" ; \
 	done
+ifeq ($(CONFIG_PCUT_TESTS),y)
+	echo "echo Running all tests..." >"$(DIST_PATH)/test/run_all"
+	echo "<html><head><title>HelenOS test results</title></head><body>" >"$(DIST_PATH)/test/test.html"
+	echo "<h1>HelenOS test results</h1><ul>" >>"$(DIST_PATH)/test/test.html"
+	for file in $(RD_TESTS) ; do \
+		file2=`basename $$file`; \
+		cp "$$file" "$(DIST_PATH)/test/" ; \
+		echo "echo ' ->' $$file2" >>"$(DIST_PATH)/test/run_all"; \
+		echo "/test/$$file2 | to /test/$$file2.out" >>"$(DIST_PATH)/test/run_all"; \
+		echo "cat /test/$$file2.out" >>"$(DIST_PATH)/test/run_all"; \
+		echo "cp -f /test/$$file2.out /data/web/result-$$file2.txt" >>"$(DIST_PATH)/test/run_all"; \
+		echo "<li><a href=\"result-$$file2.txt\">$$file2</a></li>" >>"$(DIST_PATH)/test/test.html"; \
+	done
+	echo "cp -f /test/test.html /data/web/test.html" >>"$(DIST_PATH)/test/run_all"
+	echo "</ul></body></html>" >>"$(DIST_PATH)/test/test.html"
+endif
+
 	for drv in $(RD_DRVS) ; do \
 		drv_dir="`dirname "$$drv"`" ; \
@@ -100,3 +117,4 @@
 	rm -rf $(USPACE_PATH)/dist/inc/*
 	rm -f $(USPACE_PATH)/dist/app/*
+	rm -f $(USPACE_PATH)/dist/test/*
 	rm -f $(USPACE_PATH)/dist/cfg/net/*
Index: boot/Makefile.common
===================================================================
--- boot/Makefile.common	(revision 089901ee8ce49168ea8f8adca63057de93de5f95)
+++ boot/Makefile.common	(revision 15d0046f9b3c481dc13462cd9c94e9f757fa743d)
@@ -221,4 +221,10 @@
 	$(USPACE_PATH)/app/fontviewer/fontviewer
 
+RD_TESTS = \
+	$(USPACE_PATH)/lib/c/test-libc \
+	$(USPACE_PATH)/lib/posix/test-libposix \
+	$(USPACE_PATH)/app/bdsh/test-bdsh
+
+
 COMPONENTS = \
 	$(KERNEL_PATH)/kernel.bin \
