- Timestamp:
- Dec 15, 2008, 12:04:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Selftest
r88 r94 41 41 declare -i all_ok=1; \ 42 42 for i in $(EXEC_LOG); do \ 43 $(GREP) -q "Timing" $$i; \ 44 declare -i test_timing=$$?; \ 43 45 $(GREP) -q "Test OK" $$i; \ 44 46 declare -i test_ok=$$?; \ 45 47 $(GREP) -q "Test KO" $$i; \ 46 48 declare -i test_ko=$$?; \ 47 $(GREP) -q "ERROR" $$i; \ 48 declare -i test_error=$$?; \ 49 if $(TEST) $$test_ko -eq 0 -o $$test_error -eq 0 -o $$test_ok -ne 0; \ 49 if $(TEST) $$test_ko -eq 0 -o $$test_ok -ne 0 -o $$test_timing -ne 0; \ 50 50 then all_ok=0; \ 51 51 fi; \ … … 168 168 export SYSTEMC=$(SYSTEMC_$(SIMULATOR)); $(EXEC_PREFIX) $(DIR_BIN)/$(EXEC).x $(EXEC_PARAMS) $* `$(CAT) $<` &> $@; \ 169 169 declare timing=`$(GREP) -h "Timing" $@`; \ 170 $(GREP) -q "Timing" $@; \ 171 declare -i test_timing=$$?; \ 170 172 $(GREP) -q "Test OK" $@; \ 171 173 declare -i test_ok=$$?; \ 172 174 $(GREP) -q "Test KO" $@; \ 173 175 declare -i test_ko=$$?; \ 174 $(GREP) -q "ERROR" $@; \ 175 declare -i test_error=$$?; \ 176 if $(TEST) $$test_ko -ne 0 -a $$test_error -ne 0 -a $$test_ok -eq 0; \ 176 if $(TEST) $$test_ko -ne 0 -a $$test_ok -eq 0 -a $$test_timing -eq 0; \ 177 177 then echo -e " $* ... OK\t$$timing";\ 178 178 else echo " $* ... KO"; \ … … 184 184 export SYSTEMC=$(SYSTEMC_$(SIMULATOR)); $(EXEC_PREFIX) $(DIR_BIN)/$(EXEC).x $(EXEC_PARAMS) $* `$(CAT) $<` &> $@; \ 185 185 declare timing=`$(GREP) -h "Timing" $@`; \ 186 $(GREP) -q "Timing" $@; \ 187 declare -i test_timing=$$?; \ 186 188 $(GREP) -q "Test OK" $@; \ 187 189 declare -i test_ok=$$?; \ 188 190 $(GREP) -q "Test KO" $@; \ 189 191 declare -i test_ko=$$?; \ 190 $(GREP) -q "ERROR" $@; \ 191 declare -i test_error=$$?; \ 192 if $(TEST) $$test_ko -ne 0 -a $$test_error -ne 0 -a $$test_ok -eq 0; \ 192 if $(TEST) $$test_ko -ne 0 -a $$test_ok -eq 0 -a $$test_timing -eq 0; \ 193 193 then $(ECHO) -e " $* ... OK\t$$timing";\ 194 194 else $(ECHO) " $* ... KO"; \
Note: See TracChangeset
for help on using the changeset viewer.