Ignore:
Timestamp:
May 1, 2008, 6:48:45 PM (16 years ago)
Author:
rosiere
Message:
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Selftest

    r81 r82  
    3737
    3838execute                         : 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;
    4055
    4156reconfig                        :
     
    117132                                @\
    118133                                $(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;          \
    123141                                then echo -e "                     $* ... OK\t$$timing";\
    124                                 else echo    "                     $* ... KO"; exit 1;     \
     142                                else echo    "                     $* ... KO";          \
    125143                                fi;
    126144
     
    128146                                @\
    129147                                $(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";          \
    135157                                fi;
    136158
Note: See TracChangeset for help on using the changeset viewer.