diff options
author | Victor Morales <victor.morales@intel.com> | 2018-03-13 12:26:08 -0700 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2018-03-13 12:26:08 -0700 |
commit | 4d7590ed7425a94c0f87a8461548c2461d79a710 (patch) | |
tree | 083ffc33a4cd6d8eff42deeea1da0b50c49efdfe /vagrant_utils | |
parent | ceb22354fcb078e8991a66dc9bc11dd5f21e77f4 (diff) |
Migrate vagrant-onap to devtool repo
This change covers the migration of the vagrant-onap tool's code
which was located under integration repo to devtool's repository.
The tool was renamed to avoid misunderstandings about its goals.
Change-Id: I79df8c35fccaa266a789217d441a6cf1183bd42a
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: INT-441
Diffstat (limited to 'vagrant_utils')
-rwxr-xr-x | vagrant_utils/postinstall.sh | 26 | ||||
-rwxr-xr-x | vagrant_utils/unit_testing.sh | 14 |
2 files changed, 40 insertions, 0 deletions
diff --git a/vagrant_utils/postinstall.sh b/vagrant_utils/postinstall.sh new file mode 100755 index 0000000..3b5017a --- /dev/null +++ b/vagrant_utils/postinstall.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +if [[ "$debug" == "True" ]]; then + set -o xtrace +fi + +if [[ "$1" == "openstack" ]]; then + source /var/onap/openstack + deploy_openstack + exit +fi + +source /var/onap/functions + +update_repos +create_configuration_files +configure_bind + +for serv in $@; do + source /var/onap/${serv} + configure_service ${serv}_serv.sh + init_${serv} + echo "source /var/onap/${serv}" >> ~/.bashrc +done + +echo "source /var/onap/functions" >> ~/.bashrc diff --git a/vagrant_utils/unit_testing.sh b/vagrant_utils/unit_testing.sh new file mode 100755 index 0000000..3a97ad9 --- /dev/null +++ b/vagrant_utils/unit_testing.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +if [[ "$debug" == "True" ]]; then + set -o xtrace +fi + +set -o errexit + +TEST_SUITE=${1:-*} +TEST_CASE=${2:-*} + +for file in $( ls /var/onap_tests/test_$TEST_SUITE); do + bash ${file} $TEST_CASE +done |