summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/control_limits.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/control_limits.stp')
0 files changed, 0 insertions, 0 deletions
href='#n77'>77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
#!/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