[cig-commits] r12641 - seismo/3D/SPECFEM3D_GLOBE/trunk
leif at geodynamics.org
leif at geodynamics.org
Thu Aug 14 17:52:09 PDT 2008
Author: leif
Date: 2008-08-14 17:52:09 -0700 (Thu, 14 Aug 2008)
New Revision: 12641
Modified:
seismo/3D/SPECFEM3D_GLOBE/trunk/
Log:
Initial script for BuildBot.
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
More information about the cig-commits
mailing list