summaryrefslogtreecommitdiffstats
path: root/src/spdk/test/runtest.py
diff options
context:
space:
mode:
authorheluwei <heluwei@huawei.com>2017-09-22 15:51:29 +0800
committerheluwei <heluwei@huawei.com>2018-01-06 20:48:16 +0800
commitbf51c0e84ddf5d8abc59fefb49e39de5f874eab4 (patch)
treee4f4a9301b24ad4ab5e94af2307116a1ebec30b6 /src/spdk/test/runtest.py
parenteb2d77147b52fcaf9267dc6157b63aef7e7afbca (diff)
Add script files of test and spdk-ansible for SPDK
The runtest.py file and the spdk-ansible are submitted. The runtest.py file is used to execute the scripts of test to validate whether the SPDK is available. The spdk-ansible is used to install SPDK by the ansible tool. Change-Id: I9eca7fb5cfcd2dcf718a0ef99d0ced5f962fd92a Signed-off-by: heluwei <heluwei@huawei.com>
Diffstat (limited to 'src/spdk/test/runtest.py')
-rw-r--r--src/spdk/test/runtest.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/spdk/test/runtest.py b/src/spdk/test/runtest.py
new file mode 100644
index 0000000..8020e76
--- /dev/null
+++ b/src/spdk/test/runtest.py
@@ -0,0 +1,15 @@
+#! /usr/bin/env python
+
+import os
+import sys
+
+
+def run_test(test_path):
+ os.system(test_path)
+
+
+if __name__ == "__main__":
+ py_file = sys.argv[0]
+ py_path = os.path.abspath(os.path.dirname(py_file))
+ test_path = os.path.join(py_path, 'unittest.sh')
+ run_test(test_path)