build-scripts/checker-buildbot.sh
changeset 10649 ddd8049e9d39
parent 10046 4b62fb588d22
child 10652 c3fbfa229d71
     1.1 --- a/build-scripts/checker-buildbot.sh	Thu Nov 24 12:24:22 2016 -0800
     1.2 +++ b/build-scripts/checker-buildbot.sh	Thu Nov 24 21:13:23 2016 -0500
     1.3 @@ -11,7 +11,7 @@
     1.4  
     1.5  FINALDIR="$1"
     1.6  
     1.7 -CHECKERDIR="/usr/local/checker-276"
     1.8 +CHECKERDIR="/usr/local/checker-279"
     1.9  if [ ! -d "$CHECKERDIR" ]; then
    1.10      echo "$CHECKERDIR not found. Trying /usr/share/clang ..." 1>&2
    1.11      CHECKERDIR="/usr/share/clang/scan-build"
    1.12 @@ -61,16 +61,22 @@
    1.13  cd checker-buildbot
    1.14  
    1.15  # You might want to do this for CMake-backed builds instead...
    1.16 -PATH="$CHECKERDIR:$PATH" scan-build -o analysis cmake -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled ..
    1.17 +PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis cmake -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled ..
    1.18  
    1.19  # ...or run configure without the scan-build wrapper...
    1.20  #CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0" ../configure --enable-assertions=enabled
    1.21  
    1.22  # ...but this works for our buildbots just fine (EXCEPT ON LATEST MAC OS X).
    1.23 -#CFLAGS="-O0" PATH="$CHECKERDIR:$PATH" scan-build -o analysis ../configure --enable-assertions=enabled
    1.24 +#CFLAGS="-O0" PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis ../configure --enable-assertions=enabled
    1.25  
    1.26  rm -rf analysis
    1.27 -PATH="$CHECKERDIR:$PATH" scan-build -o analysis $MAKE
    1.28 +PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis $MAKE
    1.29 +
    1.30 +if [ `ls -A analysis |wc -l` == 0 ] ; then
    1.31 +    mkdir analysis/zarro
    1.32 +    echo '<html><head><title>Zarro boogs</title></head><body>Static analysis: no issues to report.</body></html>' >analysis/zarro/index.html
    1.33 +fi
    1.34 +
    1.35  mv analysis/* ../analysis
    1.36  rmdir analysis   # Make sure this is empty.
    1.37  cd ..