From patchwork Mon Feb 4 16:13:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Elif Aslan X-Patchwork-Id: 1036049 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.vnet.ibm.com Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43tXnp0Xc9z9sCh for ; Tue, 5 Feb 2019 03:13:44 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id D154E294A8C for ; Mon, 4 Feb 2019 17:13:41 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [IPv6:2001:4b78:1:20::5]) by picard.linux.it (Postfix) with ESMTP id 74CE8294A73 for ; Mon, 4 Feb 2019 17:13:39 +0100 (CET) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-5.smtp.seeweb.it (Postfix) with ESMTPS id 051BA600768 for ; Mon, 4 Feb 2019 17:13:38 +0100 (CET) Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x14G9upP041392 for ; Mon, 4 Feb 2019 11:13:35 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 2qeq72d61u-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 04 Feb 2019 11:13:35 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 4 Feb 2019 16:13:34 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 4 Feb 2019 16:13:31 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x14GDUvA39387236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 4 Feb 2019 16:13:30 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8FA7A5204E; Mon, 4 Feb 2019 16:13:30 +0000 (GMT) Received: from dyn-9-152-97-98.boeblingen.de.ibm.com (unknown [9.152.97.98]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 63EED52054; Mon, 4 Feb 2019 16:13:30 +0000 (GMT) From: Elif Aslan To: ltp@lists.linux.it Date: Mon, 4 Feb 2019 17:13:28 +0100 X-Mailer: git-send-email 2.17.2 (Apple Git-113) X-TM-AS-GCONF: 00 x-cbid: 19020416-0012-0000-0000-000002F11EFF X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19020416-0013-0000-0000-0000212876B3 Message-Id: <20190204161328.4616-1-elas@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-04_11:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=57 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=676 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902040125 X-Virus-Scanned: clamav-milter 0.99.2 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.0 required=7.0 tests=none autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-5.smtp.seeweb.it Subject: [LTP] [PATCH] adding s390x tests to ltp X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" --- runtest/s390x_tools | 2 + testcases/commands/s390x_tools/vmcp/vmcp_m.sh | 58 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 runtest/s390x_tools create mode 100644 testcases/commands/s390x_tools/vmcp/vmcp_m.sh diff --git a/runtest/s390x_tools b/runtest/s390x_tools new file mode 100644 index 000000000..c88f0cac4 --- /dev/null +++ b/runtest/s390x_tools @@ -0,0 +1,2 @@ +#DESCRIPTION:s390x_tools tests +vmcp vmcp_m.sh diff --git a/testcases/commands/s390x_tools/vmcp/vmcp_m.sh b/testcases/commands/s390x_tools/vmcp/vmcp_m.sh new file mode 100644 index 000000000..d1f7752de --- /dev/null +++ b/testcases/commands/s390x_tools/vmcp/vmcp_m.sh @@ -0,0 +1,58 @@ +#!/bin/sh +# +# Copyright (C) 2018 IBM Corp. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. This file is offered as-is, +# without any warranty. + +#set -x +# + +TST_CNT=2 +TST_TESTFUNC=vmcp_main +TST_USAGE=usage +. tst_test.sh + +usage() +{ + cat << EOF +usage: $0 + +OPTIONS +EOF +} + +vmcp_run() +{ + + $2 + if [ $? -eq $1 ]; then + tst_res TPASS "'$2' returned '$1'. Test passed" + else + tst_res TFAIL "'$2' did not return '$1'. Test failed" + fi +} + +vmcp_main1() +{ + echo "verifyBasicVMCPCommands" + vmcp_run 0 "vmcp --version"; + vmcp_run 0 "vmcp --help"; + vmcp_run 0 "vmcp -v"; + vmcp_run 0 "vmcp -h"; + vmcp_run 0 "vmcp q dasd"; +} + +vmcp_main2() +{ + echo "verifyErrorCondition" + vmcp_run 4 "vmcp -L" + vmcp_run 4 "vmcp -m q dasd" + vmcp_run 1 "vmcp dasddasddasd" + +} + + +tst_run