Add an integration test script

Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
Zane Bitter 2012-05-21 23:41:17 +02:00
parent 21413cafcd
commit 40fd546f83
1 changed files with 26 additions and 0 deletions

26
tools/integration.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
TOOLS_DIR=`dirname $0`
HEAT_DIR="$TOOLS_DIR/.."
clean() {
$TOOLS_DIR/uninstall-heat -y -r ""
}
error() {
echo "Failed :("
}
run() {
bash -c "$($TOOLS_DIR/rst2script.sed $HEAT_DIR/docs/GettingStarted.rst)" || error
}
case $1 in
clean|run)
$1
;;
*)
clean
run
;;
esac