Commit 16b41c4d authored by Kevin Harms's avatar Kevin Harms

Add automated build phase scripts

git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@521 3b7491f3-a168-0410-bf4b-c445ed680a29
parent a5173ea5
#!/bin/bash
#
# Base build script which calls the system specific version.
#
status=0
if [[ $NODE_LABELS =~ "magellan" ]];
then
source darshan-test/automated/magellan/build.sh
status=$?
else
# unknown machine
status=100
fi
exit $status
#!/bin/bash
#
# Build darshan runtime and util code
#
fcount=0
runtime_status=0
util_status=0
runtime_result=""
util_result=""
thedate=$(date)
cd build/darshan-runtime
make && make install > build.out 2>&1
runtime_status=$?
if [ $runtime_status -ne 0 ]; then
fcount=$((fcount+1));
runtime_result="<error type='$runtime_status' message='build failed' />"
fi
cd ../../build/darshan-util
make && make install > build.out 2>&1
util_status=$?
if [ $util_status -ne 0 ]; then
fcount=$((fcount+1));
util_result="<error type='$util_status' message='build failed' />"
fi
cd ../../;
echo "
<testsuites>
<testsuite name='build' tests='2' failures='$fcount' time='$thedate'>
<testcase name='darshan-runtime' time='$thedate'>
$runtime_result
</testcase>
<testcase name='darshan-util' time='$thedate'>
$util_result
</testcase>
</testsuite>
</testsuites>
" > build-result.xml
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