[cig-commits] r12648 - seismo/3D/SPECFEM3D_GLOBE/trunk
leif at geodynamics.org
leif at geodynamics.org
Fri Aug 15 14:26:01 PDT 2008
Author: leif
Date: 2008-08-15 14:26:01 -0700 (Fri, 15 Aug 2008)
New Revision: 12648
Modified:
seismo/3D/SPECFEM3D_GLOBE/trunk/
Log:
Revised BuildBot script for r12645.
Property changes on: seismo/3D/SPECFEM3D_GLOBE/trunk
___________________________________________________________________
Name: buildbot:script
- #!/bin/sh
buildnumber=$1
code_dir=`pwd`
# configuration
bench_dir=/home/siemins/buildbot
runs="run1 run2"
echo Build $buildnumber
if [ ! -d $bench_dir ]; then
# We are not running on a cluster; simply build the code.
./configure || exit $?
make
exit $?
fi
mkdir RUNS || exit $?
for run in $runs; do
cd $code_dir || exit $?
mkdir RUNS/$run || exit $?
cd RUNS/$run || exit $?
mkdir DATA OUTPUT_FILES obj || exit $?
cp $code_dir/DATA/CMTSOLUTION DATA || exit $?
cp $code_dir/DATA/STATIONS DATA || exit $?
cp $code_dir/DATA/Par_file DATA || exit $?
for pathname in $code_dir/DATA/*; do
filename=`basename $pathname`
if [ ! -e DATA/$filename ]; then
ln -s $pathname DATA || exit $?
fi
done
# Currently, BuildBot always sets FC to 'mpif90';
# force it to 'ifort' in order to get the right flags.
$code_dir/configure FC=ifort || exit $?
make || exit $?
done
# TODO: launch simulation, compare results
cd $code_dir || exit $?
mkdir benchmarks || exit $?
echo Hello. > benchmarks/hello.txt || exit $?
tar cvzf benchmarks.bbl benchmarks
+ #!/bin/sh
buildnumber=$1
code_dir=`pwd`
# configuration
bench_dir=/home/siemins/buildbot
runs="run1 run2"
echo Build $buildnumber
status=0
mkdir output || exit $?
if [ ! -d $bench_dir ]; then
# We are not running on a cluster; simply build the code.
./configure
status=$?
if [ $status -eq 0 ]; then
make
status=$?
fi
mv config.log output || exit $?
tar cvzf output.bbl output || exit $?
exit $status
fi
for run in $runs; do
cd $code_dir || exit $?
mkdir output/$run || exit $?
cd output/$run || exit $?
mkdir DATA OUTPUT_FILES obj || exit $?
cp $code_dir/DATA/CMTSOLUTION DATA || exit $?
cp $code_dir/DATA/STATIONS DATA || exit $?
cp $code_dir/DATA/Par_file DATA || exit $?
for pathname in $code_dir/DATA/*; do
filename=`basename $pathname`
if [ ! -e DATA/$filename ]; then
ln -s $pathname DATA || exit $?
fi
done
# Currently, BuildBot always sets FC to 'mpif90';
# force it to 'ifort' in order to get the right flags.
$code_dir/configure FC=ifort
if [ $? -eq 0 ]; then
make
if [ $? -ne 0 ]; then
status=1
fi
else
status=1
fi
done
# TODO: launch simulation, compare results
cd $code_dir || exit $?
tar cvzf output.bbl output/*/config.log || exit $?
exit $status
More information about the cig-commits
mailing list