Return-Path: From: Wang Mingyu Date: Wed, 8 May 2019 01:00:32 -0700 Message-ID: <1557302441-535-25-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 24/33] Add test case of command uptime. 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 show the current time, how long the system has been running, how many users are currently logged on, and the system load averages. Signed-off-by: Wang Mingyu --- tests/Functional.misc/tests/procps_uptime.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/Functional.misc/tests/procps_uptime.sh diff --git a/tests/Functional.misc/tests/procps_uptime.sh b/tests/Functional.misc/tests/procps_uptime.sh new file mode 100644 index 0000000..9a0fcde --- /dev/null +++ b/tests/Functional.misc/tests/procps_uptime.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# In target, run comannd uptime. + +test="uptime" + +if uptime | grep "up.*user.*load.*average" +then + echo " -> $test: TEST-PASS" +else + echo " -> $test: TEST-FAIL" +fi -- 1.8.3.1