[Globus Packages] / gridshib / buildbot / gridshib-ca-test.sh Repository:
ViewVC logotype

View of /gridshib/buildbot/gridshib-ca-test.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.12 - (download) (as text) (annotate)
Thu Aug 27 02:58:15 2009 UTC (9 years, 9 months ago) by welch
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +4 -66 lines
Leverage test/test-dist.sh
#!/bin/sh
######################################################################
#
# gridshib-ca-test.sh
#
# Build GridShib-CA tarball and test it. Intended to be run by
# buildbot.
#
# Usage: gridshib-ca-nmitest.sh
#
# Expects to be called top level directory of gridshib checkout.
#
# $Id: gridshib-ca-test.sh,v 1.12 2009/08/27 02:58:15 welch Exp $
#
######################################################################
#
# Exit on any error

set -e

######################################################################

echo "GridShib-CA Test Script running..."
echo "Script path: $0"
date
hostname
uname

# Check for and source initialization script
INIT_SCRIPT=${HOME}/.gridshib-buildbotrc
if test -e ${INIT_SCRIPT} ; then
    echo "Sourcing init script: ${INIT_SCRIPT}"
    . ${INIT_SCRIPT}
fi

# Output a bunch of stuff for debugging
echo ""
echo "PATH:"
echo ${PATH}
echo ""
echo "LD_LIBRARY_PATH:"
echo ${LD_LIBRARY_PATH}
echo ""
echo "Key binaries:"
PERL=`which perl`
echo "perl: ${PERL}"
OPENSSL=`which openssl`
echo "openssl: ${OPENSSL}"
echo ""

if test -d gridshib-ca ; then
    cd gridshib-ca
else
    echo "Cannot find gridshib-ca directory."
    ls -l
    exit 1
fi

######################################################################
#
# configure
#

echo ""
echo "Building GridShib-CA Distribution."

echo ""
echo "Bootstraping..."
./bootstrap.sh

confOpts=""
confOpts="${confOpts} --enable-build"

# Need to use absolute path here
keystore=`pwd`/test/test.pkcs12
# Note that 0_5_0 branch doesn't support --with-jarsigner-keystore
# and uses ~/.keystore
confOpts="${confOpts} --with-jarsigner-keystore=${keystore}"

echo "Configure options: ${confOpts}"

./configure ${confOpts}

echo "Cleaning up:"
make realclean
rm -rf *.tar.gz

echo "Building:"
make

echo "Running 'make test':"
make test

echo "Making distribution:"
make dist

tarFile=`ls *.tar.gz`
ls -l ${tarFile}

echo "Running test-dist.sh:"
test/test-dist.sh ${tarFile}

echo "Success."
date

echo ""
echo "GridShib-CA Test Script done."

exit 0


Webmaster
ViewVC Help
Powered by ViewVC 1.0.1