Commit 6231eabe authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4871] add run.fractal.tree.tests.now.bash for running the nightly suite on...

[t:4871] add run.fractal.tree.tests.now.bash for running the nightly suite on a development checkout

git-svn-id: file:///svn/toku/tokudb@43443 c7de825b-a66e-492c-adef-691d508d4ae1
parent dadf5ec7
#!/bin/bash #!/bin/bash
function usage() {
echo "run.fractal.tree.tests.bash - run the nightly fractal tree test suite"
echo "[--ftcc=$ftcc] [--BDBVERSION=$BDBVERSION] [--ctest_model=$ctest_model]"
return 1
}
set -e set -e
pushd $(dirname $0) &>/dev/null pushd $(dirname $0) &>/dev/null
...@@ -23,13 +29,23 @@ export TOKUDB_NAME=$tokudb_name ...@@ -23,13 +29,23 @@ export TOKUDB_NAME=$tokudb_name
productname=$tokudb_name productname=$tokudb_name
if [[ -z $ftcc ]]; then ftcc=icc
export ftcc=icc BDBVERSION=5.3
fi ctest_model=Nightly
if [[ -z $BDBVERSION ]] while [ $# -gt 0 ] ; do
then arg=$1; shift
export BDBVERSION=5.3 if [[ $arg =~ --(.*)=(.*) ]] ; then
eval ${BASH_REMATCH[1]}=${BASH_REMATCH[2]}
else
usage; exit 1;
fi
done
if [[ ! ( ( $ctest_model = Nightly ) || ( $ctest_model = Experimental ) || ( $ctest_model = Continuous ) ) ]]; then
echo "--ctest_model must be Nightly, Experimental, or Continuous"
usage
fi fi
export BDBDIR=/usr/local/BerkeleyDB.$BDBVERSION export BDBDIR=/usr/local/BerkeleyDB.$BDBVERSION
# delete some characters that cygwin and osx have trouble with # delete some characters that cygwin and osx have trouble with
...@@ -129,17 +145,17 @@ cmake \ ...@@ -129,17 +145,17 @@ cmake \
cmake --system-information $resultsdir/sysinfo cmake --system-information $resultsdir/sysinfo
set +e set +e
ctest -j$ncpus \ ctest -j$ncpus \
-D NightlyStart \ -D ${ctest_model}Start \
-D NightlyUpdate \ -D ${ctest_model}Update \
-D NightlyConfigure \ -D ${ctest_model}Configure \
-D NightlyBuild \ -D ${ctest_model}Build \
-D NightlyTest \ -D ${ctest_model}Test \
2>&1 | tee -a $tracefile 2>&1 | tee -a $tracefile
set -e set -e
cp $tracefile notes.txt cp $tracefile notes.txt
set +e set +e
ctest -D NightlySubmit -A notes.txt \ ctest -D ${ctest_model}Submit -A notes.txt \
2>&1 | tee -a $tracefile 2>&1 | tee -a $tracefile
set -e set -e
rm notes.txt rm notes.txt
...@@ -204,18 +220,18 @@ cmake \ ...@@ -204,18 +220,18 @@ cmake \
cmake --system-information $resultsdir/sysinfo cmake --system-information $resultsdir/sysinfo
set +e set +e
ctest -j$ncpus \ ctest -j$ncpus \
-D NightlyStart \ -D ${ctest_model}Start \
-D NightlyUpdate \ -D ${ctest_model}Update \
-D NightlyConfigure \ -D ${ctest_model}Configure \
-D NightlyBuild \ -D ${ctest_model}Build \
-D NightlyTest \ -D ${ctest_model}Test \
-D NightlyMemCheck \ -D ${ctest_model}MemCheck \
2>&1 | tee -a $tracefile 2>&1 | tee -a $tracefile
set -e set -e
cp $tracefile notes.txt cp $tracefile notes.txt
set +e set +e
ctest -D NightlySubmit -A notes.txt \ ctest -D ${ctest_model}Submit -A notes.txt \
2>&1 | tee -a $tracefile 2>&1 | tee -a $tracefile
set -e set -e
rm notes.txt rm notes.txt
...@@ -300,18 +316,18 @@ cmake \ ...@@ -300,18 +316,18 @@ cmake \
cmake --system-information $resultsdir/sysinfo cmake --system-information $resultsdir/sysinfo
set +e set +e
ctest -j$ncpus \ ctest -j$ncpus \
-D NightlyStart \ -D ${ctest_model}Start \
-D NightlyUpdate \ -D ${ctest_model}Update \
-D NightlyConfigure \ -D ${ctest_model}Configure \
-D NightlyBuild \ -D ${ctest_model}Build \
-D NightlyTest \ -D ${ctest_model}Test \
-D NightlyCoverage \ -D ${ctest_model}Coverage \
2>&1 | tee -a $tracefile 2>&1 | tee -a $tracefile
set -e set -e
cp $tracefile notes.txt cp $tracefile notes.txt
set +e set +e
ctest -D NightlySubmit -A notes.txt \ ctest -D ${ctest_model}Submit -A notes.txt \
2>&1 | tee -a $tracefile 2>&1 | tee -a $tracefile
set -e set -e
rm notes.txt rm notes.txt
......
#!/bin/bash
pushd $(dirname $0) &>/dev/null
SCRIPTDIR=$PWD
popd &>/dev/null
exec $SCRIPTDIR/run.fractal.tree.tests.bash --ctest_model=Experimental "$@"
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