- Timestamp:
- May 1, 2008, 6:48:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Selftest
r81 r82 37 37 38 38 execute : all_selftest 39 @$(MAKE) $(EXEC_LOG); 39 @\ 40 $(MAKE) $(EXEC_LOG); \ 41 declare -i all_ok=1; \ 42 for i in $(EXEC_LOG); do \ 43 $(GREP) -q "Test OK" $$i; \ 44 declare -i test_ok=$$?; \ 45 $(GREP) -q "Test KO" $$i; \ 46 declare -i test_ko=$$?; \ 47 if $(TEST) $$test_ko -eq 0 -o $$test_ok -ne 0; \ 48 then all_ok=0; \ 49 fi; \ 50 done; \ 51 if $(TEST) $$all_ok -eq 1; \ 52 then echo "-------------------| Test OK"; exit 0; \ 53 else echo "-------------------| Test KO"; exit 1; \ 54 fi; 40 55 41 56 reconfig : … … 117 132 @\ 118 133 $(ECHO) "Execute : $*";\ 119 export SYSTEMC=$(SYSTEMC_$(SIMULATOR)) ; $(EXEC_PREFIX) ./$(DIR_BIN)/$(EXEC).x $(EXEC_PARAMS) $* `$(CAT) $<` &> $@ 120 declare -i count=`$(GREP) -ch "Test OK" $@`; \ 121 declare timing=`$(GREP) -h "Timing" $@`; \ 122 if $(TEST) $$count -ne 0; \ 134 export SYSTEMC=$(SYSTEMC_$(SIMULATOR)) ; $(EXEC_PREFIX) ./$(DIR_BIN)/$(EXEC).x $(EXEC_PARAMS) $* `$(CAT) $<` &> $@; \ 135 declare timing=`$(GREP) -h "Timing" $@`; \ 136 $(GREP) -q "Test OK" $@; \ 137 declare -i test_ok=$$?; \ 138 $(GREP) -q "Test KO" $@; \ 139 declare -i test_ko=$$?; \ 140 if $(TEST) $$test_ko -ne 0 -a $$test_ok -eq 0; \ 123 141 then echo -e " $* ... OK\t$$timing";\ 124 else echo " $* ... KO"; exit 1;\142 else echo " $* ... KO"; \ 125 143 fi; 126 144 … … 128 146 @\ 129 147 $(ECHO) "Execute : $*";\ 130 export SYSTEMC=$(SYSTEMC_$(SIMULATOR)) ; $(EXEC_PREFIX) ./$(DIR_BIN)/$(EXEC).x $(EXEC_PARAMS) $* `$(CAT) $<` &> $@ 131 declare -i count=`$(GREP) -ch "Test OK" $@`; \ 132 if $(TEST) $$count -ne 0; \ 133 then echo " $* ... OK"; \ 134 else echo " $* ... KO"; exit 1; \ 148 export SYSTEMC=$(SYSTEMC_$(SIMULATOR)) ; $(EXEC_PREFIX) ./$(DIR_BIN)/$(EXEC).x $(EXEC_PARAMS) $* `$(CAT) $<` &> $@; \ 149 declare timing=`$(GREP) -h "Timing" $@`; \ 150 $(GREP) -q "Test OK" $@; \ 151 declare -i test_ok=$$?; \ 152 $(GREP) -q "Test KO" $@; \ 153 declare -i test_ko=$$?; \ 154 if $(TEST) $$test_ko -ne 0 -a $$test_ok -eq 0; \ 155 then echo -e " $* ... OK\t$$timing";\ 156 else echo " $* ... KO"; \ 135 157 fi; 136 158
Note: See TracChangeset
for help on using the changeset viewer.