[Fuego] [PATCH 29/33] Add test case of command try-from.

Wang Mingyu wangmy at cn.fujitsu.com
Wed May 8 08:00:37 UTC 2019


This test case is used to test program for the tcp_wrapper.

Signed-off-by: Wang Mingyu <wangmy at cn.fujitsu.com>
---
 tests/Functional.misc/tests/tcp_wrappers_try-from.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 tests/Functional.misc/tests/tcp_wrappers_try-from.sh

diff --git a/tests/Functional.misc/tests/tcp_wrappers_try-from.sh b/tests/Functional.misc/tests/tcp_wrappers_try-from.sh
new file mode 100644
index 0000000..f307e68
--- /dev/null
+++ b/tests/Functional.misc/tests/tcp_wrappers_try-from.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+#  In target, run comannd try-from.
+
+test="try-from"
+
+if try-from | grep -E "client address|client hostname|client username|client info|server address|server hostname|server process|server info"
+then
+    echo " -> $test: TEST-PASS"
+else
+    echo " -> $test: TEST-FAIL"
+fi
-- 
1.8.3.1





More information about the Fuego mailing list