From: Zane Bitter Date: Mon, 21 May 2012 21:41:17 +0000 (+0200) Subject: Add an integration test script X-Git-Tag: 2014.1~1807 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=40fd546f8390f95c7ed6fab06fbc1eac63aabf11;p=openstack-build%2Fheat-build.git Add an integration test script Signed-off-by: Zane Bitter --- diff --git a/tools/integration.sh b/tools/integration.sh new file mode 100755 index 00000000..c9b8fe05 --- /dev/null +++ b/tools/integration.sh @@ -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