]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
TestBed: add distcheck to tested build procedures
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 23 Feb 2009 10:59:18 +0000 (23:59 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 23 Feb 2009 10:59:18 +0000 (23:59 +1300)
Also removed distclean filecount hack. With Henriks adjustments the log
is no longer in the test build directory.

test-suite/buildtest.sh

index 69c2f4369bd16a24815f780da784927ae0447b90..395d4966832923cc8c953d37716e59fabc079b71 100755 (executable)
@@ -21,9 +21,8 @@ fi
 #
 # empty all the existing code, reconfigure and builds test code
 # but skip if we have no files to remove.
-# AYJ: 1 because we already created the build log
 FILECOUNT=`ls -1 | grep -c .`
-if test "$FILECOUNT" != "1" ; then
+if test "$FILECOUNT" != "0" ; then
   make -k distclean || echo "distclean done. errors are unwanted but okay here."
 fi
 
@@ -33,6 +32,7 @@ fi
 rm -f -r src/fs/aufs/.deps src/fs/diskd/.deps &&
        $base/../configure --silent ${OPTS} 2>&1 &&
        make check 2>&1 &&
+       make distcheck 2>&1 &&
        make 2>&1
 
 # do not build any of the install's ...