summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/run_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/test/testapi/run_test.sh')
-rwxr-xr-xutils/test/testapi/run_test.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/test/testapi/run_test.sh b/utils/test/testapi/run_test.sh
new file mode 100755
index 000000000..9b25f8ffc
--- /dev/null
+++ b/utils/test/testapi/run_test.sh
@@ -0,0 +1,10 @@
+#! /bin/bash
+
+# Before run this script, make sure that testtools and discover
+# had been installed in your env
+# or else using pip to install them as follows:
+# pip install testtools, discover
+
+find . -type f -name "*.pyc" -delete
+testrargs="discover ./opnfv_testapi/tests/unit"
+python -m testtools.run $testrargs