Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2129931ybp; Thu, 10 Oct 2019 02:42:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxG1BjH5chV6I3sFGLmJ2aQRSOLNTSZ64K3y1Vs3/K3QUhvpAK0oqA+o6FxGgpa90btnsBQ X-Received: by 2002:a17:907:10d3:: with SMTP id rv19mr6902617ejb.301.1570700568605; Thu, 10 Oct 2019 02:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570700568; cv=none; d=google.com; s=arc-20160816; b=aIq342MelF6XcWfGvvPm+oMWNVdSmzU1YInHGIdsxYno/jBIEF+rIUyvatVRvQ7u3p xBMfMcbPHlhwnmDq4D1pdMyMDici29X/30E8XNrm4jikgwBRzjyEfPxT5/uZQ2qJwaZC DpweAdoWM+njBsz+lR91RyP9ZTFcvm+w5poYK1gSkVl92xThhn3C6rvqPbjjEgxjQj9E C3txgDknWO5/uUFLm7+dMKkIAm22+uhrjXokrZkJUumWI5OVGkWqMWayW9To5enQKUhT Hks/GHlgtGeFKormDKKJJbZvOf9zBojNgyyc0KsT5mYbfKyqdNAdKgaqaM19/BbFVd5m H8Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/9HNbJ7OJSjpZCpoadX/j1w7QGcaS0HhzOav9+D3LDA=; b=lH3ZI5OrchRuttHt8+lPAqHosE9wtkQcV00/b+mg9Fcuyp9umMgQA4QsOGU2HXqLzi qvIQ8J+7dBcwwI4mimHRZF0ZNHb7i4yOMm7Zf0TSd6HYQUqJHzdCKtP0ikSP0XykpNBf isxvQDiSUcwYAXbUCehKniXRfIN5EyJTfpUS8I8tjwsIzrIPD9Q4qHW3upN8IKCYOcX7 OkYbyQKGsf0qsQHyRO4VyF0n6BIHiPRhRetZQwJ0gvexZDNDnsCcmzfeZPtG+6n4ROM1 xalldBSpJtrRJr4aC0IbCwu6OgL2HTIckVeytbnKXwwPab1F3yfETZt+wcsdupDlugXh GamA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z55si3196113edb.41.2019.10.10.02.42.24; Thu, 10 Oct 2019 02:42:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387485AbfJJJmU (ORCPT + 99 others); Thu, 10 Oct 2019 05:42:20 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:43010 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727330AbfJJJmU (ORCPT ); Thu, 10 Oct 2019 05:42:20 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 1D02725B7E8; Thu, 10 Oct 2019 20:42:18 +1100 (AEDT) Received: by reginn.horms.nl (Postfix, from userid 7100) id 245009405EE; Thu, 10 Oct 2019 11:42:16 +0200 (CEST) Date: Thu, 10 Oct 2019 11:42:16 +0200 From: Simon Horman To: Haishuang Yan Cc: Shuah Khan , Pablo Neira Ayuso , "David S. Miller" , Julian Anastasov , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org Subject: Re: [PATCH v5 1/3] selftests: netfilter: add ipvs test script Message-ID: <20191010094215.73rlcbn2tt4wgr54@verge.net.au> References: <1570619790-6086-1-git-send-email-yanhaishuang@cmss.chinamobile.com> <1570619790-6086-2-git-send-email-yanhaishuang@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1570619790-6086-2-git-send-email-yanhaishuang@cmss.chinamobile.com> Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 09, 2019 at 07:16:28PM +0800, Haishuang Yan wrote: > Test virutal server via directing routing for IPv4. > > Tested: > > # selftests: netfilter: ipvs.sh > # Testing DR mode... > # ipvs.sh: PASS > ok 6 selftests: netfilter: ipvs.sh > > Signed-off-by: Haishuang Yan > --- > v5: use cmp to compare two file contents suggested by Simon Horman > v4: use #!/bin/bash -p suggested by Duncan Roe > v3: use bash style > v2: optimize test script > --- > tools/testing/selftests/netfilter/Makefile | 2 +- > tools/testing/selftests/netfilter/ipvs.sh | 178 +++++++++++++++++++++++++++++ > 2 files changed, 179 insertions(+), 1 deletion(-) > create mode 100755 tools/testing/selftests/netfilter/ipvs.sh > > diff --git a/tools/testing/selftests/netfilter/Makefile b/tools/testing/selftests/netfilter/Makefile > index 4144984..de1032b 100644 > --- a/tools/testing/selftests/netfilter/Makefile > +++ b/tools/testing/selftests/netfilter/Makefile > @@ -2,6 +2,6 @@ > # Makefile for netfilter selftests > > TEST_PROGS := nft_trans_stress.sh nft_nat.sh bridge_brouter.sh \ > - conntrack_icmp_related.sh nft_flowtable.sh > + conntrack_icmp_related.sh nft_flowtable.sh ipvs.sh > > include ../lib.mk > diff --git a/tools/testing/selftests/netfilter/ipvs.sh b/tools/testing/selftests/netfilter/ipvs.sh > new file mode 100755 > index 0000000..f844c0a > --- /dev/null > +++ b/tools/testing/selftests/netfilter/ipvs.sh > @@ -0,0 +1,178 @@ > +#!/bin/bash -p Please change this to /bin/sh