Commit 2ffc3584 authored by Shane Snyder's avatar Shane Snyder

more automated build refactoring

parent 9f1250a9
#!/bin/bash
#
# Base build script which calls the system specific version.
# Build darshan runtime and util code
#
fcount=0
runtime_status=0
util_status=0
runtime_result=""
util_result=""
thedate=$(date)
status=0
cd build/darshan-runtime
make && make install
runtime_status=$?
if [ $runtime_status -ne 0 ]; then
fcount=$((fcount+1));
runtime_result="<error type='$runtime_status' message='build failed' />"
fi
if [[ $NODE_LABELS =~ "mcs" ]];
then
source darshan-test/automated/mcs/build.sh
status=$?
else
# unknown machine
status=100
cd ../../build/darshan-util
make && make install
util_status=$?
if [ $util_status -ne 0 ]; then
fcount=$((fcount+1));
util_result="<error type='$util_status' message='build failed' />"
fi
exit $status
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
#!/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
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
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