Changeset 209cd41 in mainline
- Timestamp:
- 2018-10-12T15:03:40Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d4eba6d
- Parents:
- d09eeb2
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-12 12:24:19)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-12 15:03:40)
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
rd09eeb2 r209cd41 67 67 cat "$(USPACE_PATH)/lib/c/arch/$(UARCH)/_link.ld" | sed 's/^STARTUP(.*)$$//g' > "$(DIST_PATH)/inc/_link.ld" 68 68 endif 69 69 70 for app in $(RD_APPS) ; do \ 70 71 app_dir="`dirname "$$app"`" ; \ … … 76 77 cp "$$file" "$(DIST_PATH)/" ; \ 77 78 done 79 78 80 ifeq ($(CONFIG_PCUT_TESTS),y) 79 echo "echo Running all tests..." >"$(DIST_PATH)/test/run_all"80 echo "<html><head><title>HelenOS test results</title></head><body>" >"$(DIST_PATH)/test/test.html"81 echo "<h1>HelenOS test results</h1><ul>" >>"$(DIST_PATH)/test/test.html"82 81 for file in $(RD_TESTS) ; do \ 83 file2=`basename $$file`; \84 82 cp "$$file" "$(DIST_PATH)/test/" ; \ 85 echo "echo ' ->' $$file2" >>"$(DIST_PATH)/test/run_all"; \86 echo "/test/$$file2 | to /test/$$file2.out" >>"$(DIST_PATH)/test/run_all"; \87 echo "cat /test/$$file2.out" >>"$(DIST_PATH)/test/run_all"; \88 echo "cp -f /test/$$file2.out /data/web/result-$$file2.txt" >>"$(DIST_PATH)/test/run_all"; \89 echo "<li><a href=\"result-$$file2.txt\">$$file2</a></li>" >>"$(DIST_PATH)/test/test.html"; \90 83 done 91 echo "cp -f /test/test.html /data/web/test.html" >>"$(DIST_PATH)/test/run_all"92 echo "</ul></body></html>" >>"$(DIST_PATH)/test/test.html"93 84 endif 94 85 95 86 ifeq ($(CONFIG_PCUT_SELF_TESTS),y) 96 echo "echo Running all PCUT self-tests..." >"$(DIST_PATH)/test/run_pcut"97 echo "<html><head><title>Results of PCUT self-tests on HelenOS</title></head><body>" >"$(DIST_PATH)/test/pcut.html"98 echo "<h1>Results of PCUT self-tests on HelenOS</h1><ul>" >>"$(DIST_PATH)/test/pcut.html"99 87 for file in $(USPACE_PATH)/lib/pcut/test-libpcut-*; do \ 100 file2=`basename $$file`; \101 name=`echo "$$file2" | sed 's/test-libpcut-//'`; \102 88 cp "$$file" "$(DIST_PATH)/test/" ; \ 103 echo "echo ' ->' $$name" >>"$(DIST_PATH)/test/run_pcut"; \104 echo "/test/$$file2 | to /test/$$file2.out" >>"$(DIST_PATH)/test/run_pcut"; \105 echo "cat /test/$$file2.out" >>"$(DIST_PATH)/test/run_pcut"; \106 echo "cp -f /test/$$file2.out /data/web/result-$$file2.txt" >>"$(DIST_PATH)/test/run_pcut"; \107 echo "<li><a href=\"result-$$file2.txt\">$$name</a></li>" >>"$(DIST_PATH)/test/pcut.html"; \108 89 done 109 echo "cp -f /test/pcut.html /data/web/pcut.html" >>"$(DIST_PATH)/test/run_pcut"110 echo "</ul></body></html>" >>"$(DIST_PATH)/test/pcut.html"111 90 endif 112 91 -
boot/Makefile.common
rd09eeb2 r209cd41 198 198 tester \ 199 199 testread \ 200 testrunner \ 200 201 testwrit \ 201 202 tetris \ -
uspace/Makefile
rd09eeb2 r209cd41 74 74 app/tester \ 75 75 app/testread \ 76 app/testrunner \ 76 77 app/testwrit \ 77 78 app/tetris \ -
uspace/app/tester/tester.c
rd09eeb2 r209cd41 93 93 } 94 94 95 static voidrun_safe_tests(void)95 static int run_safe_tests(void) 96 96 { 97 97 test_t *test; … … 131 131 if (failed_names) 132 132 printf("Failed tests: %s\n", failed_names); 133 134 return n; 133 135 } 134 136 … … 171 173 172 174 if (str_cmp(argv[1], "*") == 0) { 173 run_safe_tests(); 174 return 0; 175 return run_safe_tests(); 175 176 } 176 177
Note:
See TracChangeset
for help on using the changeset viewer.