Print this page
11506 smatch resync

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/smatch_scripts/build_kernel_data.sh
          +++ new/usr/src/tools/smatch/src/smatch_scripts/build_kernel_data.sh
↓ open down ↓ 27 lines elided ↑ open up ↑
  28   28  # required packages are installed
  29   29  if [ ! -e smatch_db.sqlite ] ; then
  30   30      [ -e smatch_warns.txt ] || touch smatch_warns.txt
  31   31      if ! $DATA_DIR/db/create_db.sh -p=kernel smatch_warns.txt ; then
  32   32          echo "Hm... Not working.  Make sure you have all the sqlite3 packages"
  33   33          echo "And the sqlite3 libraries for Perl and Python"
  34   34          exit 1
  35   35      fi
  36   36  fi
  37   37  
  38      -$SCRIPT_DIR/test_kernel.sh --call-tree --info --param-mapper --spammy --data=$DATA_DIR
       38 +BUILD_STATUS=0
       39 +$SCRIPT_DIR/test_kernel.sh --call-tree --info --param-mapper --spammy --data=$DATA_DIR || BUILD_STATUS=$?
  39   40  
  40   41  for i in $SCRIPT_DIR/gen_* ; do
  41   42          $i smatch_warns.txt -p=kernel
  42   43  done
  43   44  
  44   45  mv ${PROJECT}.* $DATA_DIR
  45   46  
  46   47  $DATA_DIR/db/create_db.sh -p=kernel smatch_warns.txt
  47   48  
       49 +exit $BUILD_STATUS
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX