[pisa-src] r2233 - trunk/tools/pisa_autobuild.sh

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Tue, 30 Mar 2010 20:32:57 +0200

Author: biurrun
Date: Tue Mar 30 20:32:57 2010
New Revision: 2233

Log:
autobuild: Add a regression test for 'make dist'.
The contents of a checkout are compared to what 'make dist' puts into a traball.

Modified:
   trunk/tools/pisa_autobuild.sh

Modified: trunk/tools/pisa_autobuild.sh
==============================================================================
--- trunk/tools/pisa_autobuild.sh       Tue Mar 30 20:24:17 2010        (r2232)
+++ trunk/tools/pisa_autobuild.sh       Tue Mar 30 20:32:57 2010        (r2233)
@@ -59,6 +59,18 @@
     exit $1
 }
 
+# Make sure that 'make dist' is complete.
+check_dist()
+{
+    find -L . | sed -e 1d -e 's:./::' -e '/.svn/d' -e '/autom4te.cache/d' -e 
'/file_list_checkout/d' |
+        sort > file_list_checkout
+    ./configure && make dist
+    tar -tzf pisa-*.tar.gz |
+        sed -e 1d -e 's:pisa-[0-9.]*/::' -e 's:/$::' -e 
'/file_list_checkout/d' -e '/version.h/d' |
+        sort > file_list_tarball
+    run_program diff -u file_list_checkout file_list_tarball
+}
+
 compile()
 {
     INSTALL_DIR=${PROJECT_BIN_DIR}/r${PISA_HEAD_REVISION}/$1
@@ -79,6 +91,8 @@
 # Bootstrap the autotools build system.
 run_program autoreconf --install
 
+check_dist
+
 # Compile PISA in different configurations
 compile vanilla
 run_program "make -j17 distcheck"

Other related posts:

  • » [pisa-src] r2233 - trunk/tools/pisa_autobuild.sh - Diego Biurrun