configure.sh 1.01 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
#
# Run configure for runtime and utils

basedir=$PWD
status=0
fcount=0
runtime_result=""
util_result=""
thedate=$(date)

cd build/darshan-runtime
13
../../darshan-runtime/configure --prefix=$basedir/install --with-mem-align=16 --with-jobid-env=DARSHAN_JOBID --with-log-path=$basedir/logs CC=mpicc
14
15
16
runtime_status=$?
if [ $runtime_status -ne 0 ]; then
  fcount=$((fcount+1));
17
  runtime_result="<error type='$runtime_status' message='configure failed' />"
18
19
20
fi

cd ../darshan-util
21
../../darshan-util/configure --prefix=$basedir/install
22
23
24
util_status=$?
if [ $util_status -ne 0 ]; then
  fcount=$((fcount+1));
25
  util_result="<error type='$util_status' message='configure failed' />"
26
27
fi

Kevin Harms's avatar
Kevin Harms committed
28
29
cd ../../;

30
31
echo "
<testsuites>
32
33
  <testsuite name='configure' tests='2' failures='$fcount' time='$thedate'>
    <testcase name='darshan-runtime' time='$thedate'>
34
    $runtime_result
Kevin Harms's avatar
Kevin Harms committed
35
    </testcase>
36
    <testcase name='darshan-util' time='$thedate'>
37
38
39
40
    $util_result
    </testcase>
  </testsuite>
</testsuites>
Kevin Harms's avatar
Kevin Harms committed
41
" > configure-result.xml
42
exit $fcount