From patchwork Mon Oct 29 13:03:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kodanev X-Patchwork-Id: 990190 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=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=oracle.com header.i=@oracle.com header.b="U7JW35Ao"; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42kF08148Tz9s3Z for ; Mon, 29 Oct 2018 23:53:44 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id A0D533E78E0 for ; Mon, 29 Oct 2018 13:53:41 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) by picard.linux.it (Postfix) with ESMTP id E2CC03E78E1 for ; Mon, 29 Oct 2018 13:53:29 +0100 (CET) Received: from userp2120.oracle.com (userp2120.oracle.com [156.151.31.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 05BCD1400743 for ; Mon, 29 Oct 2018 13:53:28 +0100 (CET) Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9TCiX6b176531 for ; Mon, 29 Oct 2018 12:53:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2018-07-02; bh=WNv+gQceb/MfVumayN/h4RP4WCzviiBQ2ZJSDuWURME=; b=U7JW35AomYF2eOqGlaqGrEAg9SnOATuyD9a3R9waIWUj8CboaCFyerh0X39yJCvuUloV 9+vuQ12vhMoiKbl/zq9Wih4we2Ousj8ekvkvyNaD9GwmeD/imOfYWYFNCLiCLHccT5l0 vdcsGGop2t2XdLp2LxN5p6IQKm2KTpPL+N9mpN3J9Ii2F8Y0FeLWlT0RNyrNu9XSfoXP R1j8m5M0gHqXl1wQauSr4kbAGhsjldZtGXQTtL0tKYvAw3HrlQTte6VflCzHauJnDkzE 8Fa8KetXLTzddL0mRrv85kIKZZ17qBFHEf8Y/0F5APavQxOokSsLKPoUzEKv0reokbTs 0Q== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2ncgnqnc6p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 29 Oct 2018 12:53:27 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9TCrPUk029709 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 29 Oct 2018 12:53:26 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w9TCrP9x004228 for ; Mon, 29 Oct 2018 12:53:25 GMT Received: from ak.ru.oracle.com (/10.162.80.29) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 29 Oct 2018 05:53:25 -0700 From: Alexey Kodanev To: ltp@lists.linux.it Date: Mon, 29 Oct 2018 16:03:18 +0300 Message-Id: <1540818202-11247-3-git-send-email-alexey.kodanev@oracle.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1540818202-11247-1-git-send-email-alexey.kodanev@oracle.com> References: <1540818202-11247-1-git-send-email-alexey.kodanev@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9060 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=716 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810290121 X-Virus-Scanned: clamav-milter 0.99.2 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-6.smtp.seeweb.it Subject: [LTP] [PATCH 2/6] network/sit01: new test for sit tunnel 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" Signed-off-by: Alexey Kodanev --- runtest/net.features | 2 ++ testcases/network/virt/sit01.sh | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-) create mode 100755 testcases/network/virt/sit01.sh diff --git a/runtest/net.features b/runtest/net.features index eac1b2b..de49e76 100644 --- a/runtest/net.features +++ b/runtest/net.features @@ -58,3 +58,5 @@ dctcp_ipv6_01 dctcp01.sh -6 geneve01 geneve01.sh geneve01_ipv6 geneve01.sh -6 + +sit01 sit01.sh diff --git a/testcases/network/virt/sit01.sh b/testcases/network/virt/sit01.sh new file mode 100755 index 0000000..4ecc1f8 --- /dev/null +++ b/testcases/network/virt/sit01.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2018 Oracle and/or its affiliates. + +TST_NEEDS_TMPDIR=1 +TST_TESTFUNC=virt_netperf_msg_sizes +TST_SETUP=do_setup +TST_CLEANUP=virt_cleanup +virt_type="sit" +. virt_lib.sh + +do_setup() +{ + [ -n "$TST_IPV6" ] && tst_res TBROK "invalid option '-6' for sit tunnel" + + virt_lib_setup + + tst_res TINFO "test $virt_type" + virt_setup "local $(tst_ipaddr) remote $(tst_ipaddr rhost)" \ + "local $(tst_ipaddr rhost) remote $(tst_ipaddr)" +} + +tst_run