summaryrefslogtreecommitdiffstats
path: root/legacy
diff options
context:
space:
mode:
Diffstat (limited to 'legacy')
-rw-r--r--legacy/cli/helper.py14
-rw-r--r--legacy/tests/helper/perftest.yaml5
-rw-r--r--legacy/tests/helper/suite.yaml6
-rw-r--r--legacy/tests/helper/version.yaml12
4 files changed, 37 insertions, 0 deletions
diff --git a/legacy/cli/helper.py b/legacy/cli/helper.py
new file mode 100644
index 00000000..acfecf8d
--- /dev/null
+++ b/legacy/cli/helper.py
@@ -0,0 +1,14 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corp and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+import os
+
+
+def fetch_root():
+ return os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, 'benchmarks/')
diff --git a/legacy/tests/helper/perftest.yaml b/legacy/tests/helper/perftest.yaml
new file mode 100644
index 00000000..26c58452
--- /dev/null
+++ b/legacy/tests/helper/perftest.yaml
@@ -0,0 +1,5 @@
+---
+
+ tests:
+ - command: ['perftest', 'run']
+ output: "Run a perftest\n"
diff --git a/legacy/tests/helper/suite.yaml b/legacy/tests/helper/suite.yaml
new file mode 100644
index 00000000..718ae440
--- /dev/null
+++ b/legacy/tests/helper/suite.yaml
@@ -0,0 +1,6 @@
+---
+
+ tests:
+ - command: ['suite', 'run']
+ output: "Run a suite\n"
+
diff --git a/legacy/tests/helper/version.yaml b/legacy/tests/helper/version.yaml
new file mode 100644
index 00000000..b23f16f2
--- /dev/null
+++ b/legacy/tests/helper/version.yaml
@@ -0,0 +1,12 @@
+---
+
+ tests:
+ - command: ['version', 'list']
+ output: "Lists all the different versions\n"
+
+ - command: ['version', 'install', 'Colorado']
+ output: "Install: Colorado\n"
+
+ - command: ['version', 'uninstall', 'Arno']
+ output: "Uninstall: Arno\n"
+