[Fuego] [PATCH] Add a new test suite called Functional.busybox.

Wang Mingyu wangmy at cn.fujitsu.com
Fri May 18 14:38:39 UTC 2018



Signed-off-by: Wang Mingyu <wangmy at cn.fujitsu.com>
---
 engine/tests/Functional.busybox/fuego_test.sh | 17 +++++++++++++++++
 engine/tests/Functional.busybox/spec.json     |  7 +++++++
 2 files changed, 24 insertions(+)
 create mode 100755 engine/tests/Functional.busybox/fuego_test.sh
 create mode 100644 engine/tests/Functional.busybox/spec.json

diff --git a/engine/tests/Functional.busybox/fuego_test.sh b/engine/tests/Functional.busybox/fuego_test.sh
new file mode 100755
index 0000000..3cc2b85
--- /dev/null
+++ b/engine/tests/Functional.busybox/fuego_test.sh
@@ -0,0 +1,17 @@
+tarball=busybox.tar.gz
+
+
+function test_deploy {
+    put $TEST_HOME/busybox_test.sh $BOARD_TESTDIR/fuego.$TESTDIR/
+    put -r $TEST_HOME/testsuits $BOARD_TESTDIR/fuego.$TESTDIR/
+}
+
+function test_run {
+    report "cd $BOARD_TESTDIR/fuego.$TESTDIR; export test_tcpip_host=$SRV_IP; export test_port_host=$SRV_PORT; export httproot_dir_host=fuego/userContent/readme.txt; sh -v busybox_test.sh"
+}
+
+function test_processing {
+    log_compare "$TESTDIR" "89" "pass" "p"
+}
+
+
diff --git a/engine/tests/Functional.busybox/spec.json b/engine/tests/Functional.busybox/spec.json
new file mode 100644
index 0000000..a71218a
--- /dev/null
+++ b/engine/tests/Functional.busybox/spec.json
@@ -0,0 +1,7 @@
+{
+    "testName": "Functional.busybox",
+    "specs": {
+        "default": {}
+    }
+}
+
-- 
1.8.3.1





More information about the Fuego mailing list