puppet-openstack-integration/run_tests.sh
Paul Belanger 2921e36c79 Initial run_tests.sh script
When launching run_tests.sh we need to make sure to call
install_modules.sh.

I've moved it into the tools directory, and installed the modules
local vs global. This is mostly personal preference but avoids puppet
modules conflicts with global /etc/puppet folder.

Change-Id: I77c445a71720e0c8dd4744777c2bc6a0a6663590
Depends-On: I87c12faffab953ad2039d2b9ed9ab420e97ab2b7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-08-06 14:38:42 -04:00

43 lines
1.2 KiB
Bash
Executable File

#!/bin/bash -e
# Copyright 2015 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
if [ -z $GEM_HOME ]; then
echo "Warning! \$GEM_HOME is not set"
echo ""
echo "In order to properly run the integration tests, please run the"
echo "following:"
echo ""
echo " $ export GEM_HOME=\`pwd\`/.bundled_gems"
exit 1
fi
if ! [ -f $GEM_HOME ]; then
mkdir -p $GEM_HOME
fi
BUNDLE=${GEM_HOME}/bin/bundle
if ! [ -f ${BUNDLE} ]; then
echo "Warning! bundler is not installed"
echo ""
echo "Please run the following to install bundler:"
echo " $ gem install bundler"
exit 1
fi
${BUNDLE} install --no-color --without development test system_tests
./tools/install_modules.sh