Author: nickboldt
Date: 2010-04-12 10:44:11 -0400 (Mon, 12 Apr 2010)
New Revision: 21435
Modified:
branches/modular_build/runstack.sh
Log:
improve runstack.sh: add support for passing though flags; switch to running tests w/
--fail-at-end
Modified: branches/modular_build/runstack.sh
===================================================================
--- branches/modular_build/runstack.sh 2010-04-12 05:49:22 UTC (rev 21434)
+++ branches/modular_build/runstack.sh 2010-04-12 14:44:11 UTC (rev 21435)
@@ -11,11 +11,22 @@
exit 1
fi
-components="$*"
+flags=""
+components=""
+while [ "$#" -gt 0 ]; do
+ case $1 in
+ '-'*) flags="$flags $1"; shift 1;;
+ *) components="$components $1"; shift 1;;
+ esac
+done
# run builds w/o running tests
for d in $components; do
- cd $workingdir; ./runtests.sh ${d}/ clean install -Dmaven.test.skip
+ # build features, plugins, and tests, but do not RUN tests
+ #cd $workingdir; ./runtests.sh ${d}/ clean install -Dmaven.test.skip
+
+ # build features, plugins, and tests, then run ALL tests (don't stop after first
failed test)
+ cd $workingdir; ./runtests.sh ${d}/ clean install --fail-at-end $flags
done
# collect compilation results and failures