aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant_utils/unit_testing.sh
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-03-13 12:26:08 -0700
committerVictor Morales <victor.morales@intel.com>2018-03-13 12:26:08 -0700
commit4d7590ed7425a94c0f87a8461548c2461d79a710 (patch)
tree083ffc33a4cd6d8eff42deeea1da0b50c49efdfe /vagrant_utils/unit_testing.sh
parentceb22354fcb078e8991a66dc9bc11dd5f21e77f4 (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/unit_testing.sh')
-rwxr-xr-xvagrant_utils/unit_testing.sh14
1 files changed, 14 insertions, 0 deletions
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