summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/vagrant_utils
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/vagrant-onap/vagrant_utils')
-rwxr-xr-xbootstrap/vagrant-onap/vagrant_utils/postinstall.sh17
-rwxr-xr-xbootstrap/vagrant-onap/vagrant_utils/unit_testing.sh10
2 files changed, 27 insertions, 0 deletions
diff --git a/bootstrap/vagrant-onap/vagrant_utils/postinstall.sh b/bootstrap/vagrant-onap/vagrant_utils/postinstall.sh
new file mode 100755
index 000000000..f5a7ac684
--- /dev/null
+++ b/bootstrap/vagrant-onap/vagrant_utils/postinstall.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -o xtrace
+
+source /var/onap/functions
+
+export_env_vars
+create_configuration_files
+install_dev_tools
+install_java
+configure_bind
+
+for serv in $@; do
+ source /var/onap/${serv}
+ configure_service ${serv}_serv.sh
+ init_${serv}
+done
diff --git a/bootstrap/vagrant-onap/vagrant_utils/unit_testing.sh b/bootstrap/vagrant-onap/vagrant_utils/unit_testing.sh
new file mode 100755
index 000000000..a378ad0cd
--- /dev/null
+++ b/bootstrap/vagrant-onap/vagrant_utils/unit_testing.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+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