Changeset 101 for trunk/Platforms/Test/Makefile
- Timestamp:
- Jan 15, 2009, 6:19:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Platforms/Test/Makefile
r98 r101 35 35 DIR_OBJ = $(DIR_TMP)/obj 36 36 DIR_BIN = $(DIR_TMP)/bin 37 DIR_LOG = ./log37 DIR_LOG = $(DIR_TMP)/log 38 38 DIR_DATA = ./data 39 39 DIR_SOFT = $(MORPHEO_TOPLEVEL)/Softwares … … 115 115 fi; \ 116 116 $(MAKE) $$logs; \ 117 declare -i have_test_ko=0; \ 117 declare -i nb_test=0; \ 118 declare -i nb_test_ko=0; \ 118 119 for log in $$logs; do \ 119 120 $(GREP) -q "Test OK" $$log; \ … … 122 123 declare -i test_ko=$$?; \ 123 124 if $(TEST) $$test_ko -eq 0 -o $$test_ok -ne 0; \ 124 then have_test_ko=1;\125 then nb_test_ko=$$(($${nb_test_ko} + 1)); \ 125 126 fi; \ 127 nb_test=$$(($${nb_test} + 1)); \ 126 128 done; \ 127 if $(TEST) $$ have_test_ko-ne 0; \128 then $(ECHO) "-------------------| Test KO "; exit 1; \129 if $(TEST) $${nb_test_ko} -ne 0; \ 130 then $(ECHO) "-------------------| Test KO !!! ($${nb_test_ko}/$${nb_test})"; exit 1; \ 129 131 else $(ECHO) "-------------------| Test OK"; exit 0; \ 130 132 fi; 131 133 132 134 execute : run 133 134 135 135 136 $(DIR_LOG)/%.log : %.cfg … … 146 147 declare timing=$$($(GREP) -h "Timing" $$log); \ 147 148 if $(TEST) $$test_ko -ne 0 -a $$test_ok -eq 0; \ 148 then $(ECHO) -e " $$file ... OK\t$$timing"; \ 149 else $(ECHO) -e " $$file ... KO\t$$timing"; \ 150 have_test_ko=1; \ 149 then $(ECHO) -e " $$file ... OK \t$$timing"; \ 150 else $(ECHO) -e " $$file ... KO !!!\t$$timing"; \ 151 151 fi; \ 152 152
Note: See TracChangeset
for help on using the changeset viewer.