Return-Path: From: Wang Mingyu Date: Wed, 8 May 2019 01:00:11 -0700 Message-ID: <1557302441-535-4-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 03/33] Add test case of command bzip2. 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 compress files by bzip2 and decompress it to stdout. Signed-off-by: Wang Mingyu --- tests/Functional.misc/tests/bzip2.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/Functional.misc/tests/bzip2.sh diff --git a/tests/Functional.misc/tests/bzip2.sh b/tests/Functional.misc/tests/bzip2.sh new file mode 100644 index 0000000..b9f49c5 --- /dev/null +++ b/tests/Functional.misc/tests/bzip2.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# In target, run comannd bzip2. + +test="bzip2" + +echo "This is a test file" > test_for_fuego + +bzip2 test_for_fuego + +if bzcat test_for_fuego.bz2 | grep "This is a test file" +then + echo " -> $test: TEST-PASS" +else + echo " -> $test: TEST-FAIL" +fi +rm -fr test_for_fuego.bz2 -- 1.8.3.1