#!/bin/bash
+# takes an app name and a version as arguments
cd `dirname $0`
bold="`tput -T${TERM:-dumb} bold`"
red="`tput -T${TERM:-dumb} setf 4`"
+green="`tput -T${TERM:-dumb} setf 2`"
sgr0="`tput -T${TERM:-dumb} sgr0`"
APP="$1"
if [ "$APP" == "" ]; then
- echo "Must specify application"
+ echo "Must specify application and version"
exit 1
fi
for i in $1-*-test.sh; do
./$i "$2"
- if [ $? -eq 0 ]
+
+ if [ $? -eq 0 ] || [ $? -eq 2 ];
then
- echo "${bold}OK${sgr0}"
+ echo "${bold}${green}OK${sgr0}"
+ wizard remove "testdir_$(echo "${i%-test.sh}" | tr - _)_$2"
else
echo "${bold}${red}FAIL${sgr0}"
fi
--- /dev/null
+#!/bin/bash
+# takes an app name, and the git repo where it is located as arguments
+cd `dirname $0`
+bold="`tput -T${TERM:-dumb} bold`"
+red="`tput -T${TERM:-dumb} setf 4`"
+green="`tput -T${TERM:-dumb} setf 2`"
+sgr0="`tput -T${TERM:-dumb} sgr0`"
+APP="$1"
+REPO="$2"
+if [ "$APP" == "" ]; then
+ echo "Must specify application"
+ exit 1
+fi
+if [ "$REPO" == "" ]; then
+ echo "Must specify path to git repo"
+ exit 1
+fi
+
+for version in `git --git-dir=$REPO tag | grep scripts | sed -e 's/.*-\(.*\)-.*/\1/'`; do
+ ./all-tests.sh $APP $version
+done
# XXX: maybe we should build this in as a flag to add
# to exceptions w/ our exception handler
sys.stderr.write("Traceback:\n (n/a)\nAlreadyUpgraded\n")
- sys.exit(1)
+ sys.exit(2)
def preflightQuota(self):
kib_usage, kib_limit = scripts.get_quota_usage_and_limit()
if kib_limit is not None and (kib_limit - kib_usage) < kib_buffer: