Commit 61717d67 authored by Kevin Harms's avatar Kevin Harms

Initial attempt at automated build and test

git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@512 3b7491f3-a168-0410-bf4b-c445ed680a29
parent aa458ee6
These test scripts are used by Jenkins to automate testing of the
darshan runtime library and associated tools.
#!/bin/bash
#
# Base configure script which calls the system specific version.
#
status=0
if [[ $NODE_LABELS =~ "magellan" ]];
then
darshan-test/magellan/configure.sh
status=$?
else
# unknown machine
status=100
fi
exit $status
#!/bin/bash
#
# Create build, install and log directories.
#
status=0
mkdir -p install
status=$((status + $?))
mkdir -p logs
status=$((status + $?))
mkdir -p build/darshan-runtime
status=$((status + $?))
mkdir -p build/darshan-utils
status=$((status + $?))
exit $status
#!/bin/bash
#
# Run configure for runtime and utils
basedir=$PWD
status=0
fcount=0
runtime_result=""
util_result=""
thedate=$(date)
cd build/darshan-runtime
../../darshan-runtime/configure --prefix=$basedir/install --with-mem-align=16 --with-jobid-env=DARSHAN_JOBID --with-log-path=$basedir/logs --with-log-path-by-env DARSHAN_LOGPATH CC=/usr/local/mpich/mpich-1.4.1p1/bin/mpicc > configure.out 2>&1
runtime_status=$?
if [ $runtime_status -ne 0 ]; then
fcount=$((fcount+1));
runtime_result="<error type=$runtime_status message='configure failed' />"
fi
cd ../darshan-util
../../darshan-util/configure --prefix=$basedir/install > configure.out 2>&1
util_status=$?
if [ $util_status -ne 0 ]; then
fcount=$((fcount+1));
util_result="<error type=$util_status message='configure failed' />"
fi
echo "
<testsuites>
<testsuite name=configure tests=2 failures=$fcount time='$thedate'>
<testcase name=darshan-runtime time='$thedate'>
</testcase>
$runtime_result
<testcase name=darshan-util time='$thedate'>
$util_result
</testcase>
</testsuite>
</testsuites>
"
exit $fcount
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment