]> scripts.mit.edu Git - wizard.git/blob - tests/all-versions.sh
Move wizard.scripts module to plugins, added hooks accordingly.
[wizard.git] / tests / all-versions.sh
1 #!/bin/bash
2 # takes an app name, and the git repo where it is located as arguments
3 cd `dirname $0`
4 bold="`tput -T${TERM:-dumb} bold`"
5 red="`tput -T${TERM:-dumb} setf 4`"
6 green="`tput -T${TERM:-dumb} setf 2`"
7 sgr0="`tput -T${TERM:-dumb} sgr0`"
8 APP="$1"
9 REPO="$2"
10 if [ "$APP" == "" ]; then
11     echo "Must specify application"
12     exit 1
13 fi
14 if [ "$REPO" == "" ]; then
15     echo "Must specify path to git repo"
16     exit 1
17 fi
18
19 for version in `git --git-dir=$REPO tag | grep scripts | sed -e 's/.*-\(.*\)-.*/\1/'`; do
20     ./all-tests.sh $APP $version
21 done