Return-Path: From: Wang Mingyu Date: Wed, 8 May 2019 01:00:37 -0700 Message-ID: <1557302441-535-30-git-send-email-wangmy@cn.fujitsu.com> In-Reply-To: <1557302441-535-1-git-send-email-wangmy@cn.fujitsu.com> References: <1557302441-535-1-git-send-email-wangmy@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Fuego] [PATCH 29/33] Add test case of command try-from. List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org This test case is used to test program for the tcp_wrapper. Signed-off-by: Wang Mingyu --- 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