summaryrefslogtreecommitdiffstats
path: root/autobuild.sh
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-08-20 10:49:35 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-08-20 10:49:35 +0100
commit6375aede61d57422ad82f4941693493c07b78aa2 (patch)
tree70ae4ede2c8f3ff866f3f49f9ecc7f8421f6dd86 /autobuild.sh
parenta4db75521d6026410425187fc2c5c9cb931a69b5 (diff)
downloadlibguestfs-6375aede61d57422ad82f4941693493c07b78aa2.tar.gz
libguestfs-6375aede61d57422ad82f4941693493c07b78aa2.tar.xz
libguestfs-6375aede61d57422ad82f4941693493c07b78aa2.zip
New autobuild script.
Remove the old top-level autobuild.sh that confused a lot of people. Add an autobuild.sh script that builds from the latest tarball.
Diffstat (limited to 'autobuild.sh')
-rwxr-xr-xautobuild.sh96
1 files changed, 0 insertions, 96 deletions
diff --git a/autobuild.sh b/autobuild.sh
deleted file mode 100755
index 77068c80..00000000
--- a/autobuild.sh
+++ /dev/null
@@ -1,96 +0,0 @@
-#!/bin/bash -
-
-PROJECT=libguestfs
-FEBOOTSTRAP_PATH=$HOME/d/febootstrap
-MAILTO=libguestfs@redhat.com
-HOSTNAME="$(hostname -s)"
-
-#----------------------------------------------------------------------
-# Helper functions.
-
-failed ()
-{
- mail -s "$HOSTNAME $PROJECT FAILED $1 $gitsha" $MAILTO < local-log
-}
-
-ok ()
-{
- mail -s "$HOSTNAME $PROJECT success $gitsha" $MAILTO < local-log
-}
-
-#----------------------------------------------------------------------
-
-set -e
-set -x
-
-# Make sure we build and test against latest febootstrap.
-PATH=$FEBOOTSTRAP_PATH:$FEBOOTSTRAP_PATH/helper:$PATH
-
-# Remove any old cache directories.
-rm -rf /tmp/guestfs.* ||:
-
-rm -f local-log
-cat > local-log <<EOF
-
-This is an automatic message generated by the builder on
-$HOSTNAME for $PROJECT. Log files from the build
-follow below.
-
-$(uname -a)
-$(date)
-
------
-
-EOF
-exec >> local-log 2>&1
-
-# Pull from the public repo so that we don't need ssh-agent.
-git pull --rebase git://git.annexia.org/git/libguestfs.git master
-git clean -d -f
-
-# The git version we are building.
-gitsha=$(git log|head -1|awk '{print $2}')
-
-# Do the configure step.
-./bootstrap ||:
-./autogen.sh --enable-gcc-warnings || {
- failed "configure step"
- exit 1
-}
-
-make clean ||:
-
-# Do the build step.
-make || {
- failed "build step"
- exit 1
-}
-
-# Tests that are skipped (note that these tests should be fixed).
-case "$HOSTNAME" in
- builder-ubuntu)
- # get_e2uuid: /dev/vdc: [no error message]
- # get_e2label: /dev/vda1: [no error message]
- # Diagnosis: either mkjournal is not writing a UUID or blkid is
- # unable to pick it up.
- export SKIP_TEST_GET_E2UUID=1
- export SKIP_TEST_SET_E2UUID=1
- export SKIP_TEST_SET_E2LABEL=1
-
- # Avoids:
- # device-mapper: ioctl: unable to remove open device temporary-cryptsetup-661
- # device-mapper: remove ioctl failed: Device or resource busy
- # guestfsd: error: Device lukstest is busy.
- # Diagnosis: appears to be a bug in cryptsetup on Ubuntu.
- # https://bugzilla.redhat.com/show_bug.cgi?id=527056
- export SKIP_TEST_LUKS_SH=1
- ;;
-esac
-
-# Run the tests.
-make check || {
- failed "tests"
- exit 1
-}
-
-ok