Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/tools/random_check.sh

    r1b20da0 ra35b458  
    8888        COUNTER=$(( $COUNTER + 1 ))
    8989        echo "Try #$COUNTER ($FAILED failed):" >&2
    90        
     90
    9191        (
    9292                echo "  Cleaning after previous build." >&2
    9393                make distclean -j$JOBS 2>&1 || exit 1
    94                
    95                
     94
     95
    9696                echo "  Preparing random configuration." >&2
    9797                # It would be nicer to allow set the constraints directly to
     
    105105                                exit 2
    106106                        fi
    107                        
     107
    108108                        make random-config 2>&1 || exit 1
    109                        
     109
    110110                        tr -d ' ' <Makefile.config >"${FILENAME_PREFIX}config.trimmed"
    111                        
     111
    112112                        THIS_CONFIG_OKAY=true
    113113                        while read pattern; do
     
    117117                                fi
    118118                        done <"$PRUNE_CONFIG_FILE"
    119                        
     119
    120120                        rm -f "${FILENAME_PREFIX}config.trimmed"
    121                        
     121
    122122                        if $THIS_CONFIG_OKAY; then
    123123                                break
    124124                        fi
    125125                done
    126                
    127                
     126
     127
    128128                # Report basic info about the configuration and build it
    129129                BASIC_CONFIG=`sed -n \
     
    134134                        | paste '-sd,' | sed 's#,#, #g'`
    135135                echo -n "  Building ($BASIC_CONFIG)... " >&2
    136        
     136
    137137                make -j$JOBS 2>&1
    138138                if [ $? -eq 0 ]; then
     
    143143                        exit 1
    144144                fi
    145                
     145
    146146        ) >random_run_$COUNTER.log
    147147        RC=$?
    148        
     148
    149149        if [ $RC -ne 0 ]; then
    150150                tail -n 10 random_run_$COUNTER.log | sed 's#.*#    | &#'
    151151                FAILED=$(( $FAILED + 1 ))
    152152        fi
    153        
     153
    154154        if [ -e Makefile.config ]; then
    155155                cp Makefile.config "$FILENAME_PREFIX$COUNTER.Makefile.config"
Note: See TracChangeset for help on using the changeset viewer.