summaryrefslogtreecommitdiffstats
path: root/vagrant_utils
diff options
context:
space:
mode:
Diffstat (limited to 'vagrant_utils')
-rwxr-xr-xvagrant_utils/postinstall.sh26
-rwxr-xr-xvagrant_utils/unit_testing.sh14
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