diff options
author | Nate Potter <nathaniel.potter@intel.com> | 2017-08-02 15:17:41 -0700 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2017-08-14 17:51:57 -0500 |
commit | 8a0c9450a19892d4254e2b69d04f3b84007b700b (patch) | |
tree | 51fdaf12217c3bb027f688cfce53c74f0447d688 /bootstrap/vagrant-onap/vagrant_utils | |
parent | d1c03409f28c32d8cb0a97d4311b58907729998e (diff) |
Add warnings and options to run.sh
Adds a warning to run.sh informing the user that
the contents of their /opt folder will be deleted by the test.
Also adds option parsing, -y for skipping the prompt, -s for
test suite selection, -c for test case selection, as well as
-h for displaying help for the program.
Change-Id: I888350d31839bd6db91a497a04ae3308af5329e9
Issue-Id: INT-97
Signed-off-by: Nate Potter <nathaniel.potter@intel.com>
Diffstat (limited to 'bootstrap/vagrant-onap/vagrant_utils')
-rwxr-xr-x | bootstrap/vagrant-onap/vagrant_utils/postinstall.sh | 17 | ||||
-rwxr-xr-x | bootstrap/vagrant-onap/vagrant_utils/unit_testing.sh | 10 |
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 |