diff options
author | 2017-08-02 15:17:41 -0700 | |
---|---|---|
committer | 2017-08-14 17:51:57 -0500 | |
commit | 8a0c9450a19892d4254e2b69d04f3b84007b700b (patch) | |
tree | 51fdaf12217c3bb027f688cfce53c74f0447d688 /bootstrap/vagrant-onap/vagrant_utils/unit_testing.sh | |
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/unit_testing.sh')
-rwxr-xr-x | bootstrap/vagrant-onap/vagrant_utils/unit_testing.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 |