Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp788011ybp; Fri, 4 Oct 2019 05:05:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/GYG3NB5o8QaJrk0pJtwQ2k8EZD7CMLQ7UYSQJgNjvjoVvx2japoeA1zb6MZqdWMbu9x7 X-Received: by 2002:a17:906:4b15:: with SMTP id y21mr11937659eju.112.1570190755292; Fri, 04 Oct 2019 05:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570190755; cv=none; d=google.com; s=arc-20160816; b=J5C54EKn7VaV4dxW4RqXVezd9E/SD5fUXYbWl2Eg/++LRjZ/mJcpyWBkA/QpwoZeOZ icGiaTnJfMHf820g0A7La6UZsegGdTonEjuz7UBUntc5RxiT3eiuCkhS6OSKHZcGVwn1 HJDwTbGo7jZX7WK2IFgIt/kWUBPCIW67+MJOzw0jBzwpqivPdcBF3dgQqmoiLd0jp67F io+QWeGFDfj5AB3Eej7MIBJpdAmH5yWIKE1Ihl3hmI+Zs++RfI09MDFsbX1xq1abVV6e GIirIL6IF31ox7QtCq+40A8yTCol7UP+tt94y1HKw5JjO7mFqlWnU0SGY2DVuCz8tOu9 rJJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=w4zK4hirW2z2txgNQmJ9AE7L6F9Ss0luDrYYsT+NSoE=; b=hV9qCFl05+AHcMXG5Hyfwoq2E7RRgUJ5hlTYDoynqC1iDKLjMH5x7LlX/ETIYZ7JBR Bf75MLl60GZ5saODLD95fEnegEeBc+fihywT/TnDTqkItIQYJChjoSixm2I8u800/X6k 4GcVoFg7s9dSjBm0gEieTH2Ccx1+HehFSP3NgXIWhKhn6cqjQiR+ofP3SM/iBquNeFg4 gLn6QtbRYj9hnyvCW54At3apSs4Em3D4YlL4Gnjqi6RPGuh3E1YcfDcLZ0SkZIJPJsZ3 2RaNszTsrz2pbXsjLB7jg1loMR8Vgg8HHfSfJTTEwCDH7i/hkJkzOquzLgWSrg3tQ8m3 /Bzg== 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 t4si2693298ejd.328.2019.10.04.05.05.30; Fri, 04 Oct 2019 05:05:55 -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 S1730698AbfJDLsE (ORCPT + 99 others); Fri, 4 Oct 2019 07:48:04 -0400 Received: from mail105.syd.optusnet.com.au ([211.29.132.249]:50339 "EHLO mail105.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbfJDLsE (ORCPT ); Fri, 4 Oct 2019 07:48:04 -0400 Received: from dimstar.local.net (n122-110-44-45.sun2.vic.optusnet.com.au [122.110.44.45]) by mail105.syd.optusnet.com.au (Postfix) with SMTP id 4235D3638C7 for ; Fri, 4 Oct 2019 21:47:46 +1000 (AEST) Received: (qmail 23038 invoked by uid 501); 4 Oct 2019 11:47:45 -0000 Date: Fri, 4 Oct 2019 21:47:45 +1000 From: Duncan Roe To: Haishuang Yan Cc: Julian Anastasov , Shuah Khan , Pablo Neira Ayuso , "David S. Miller" , Simon Horman , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org Subject: Re: [PATCH v3 0/3] selftests: netfilter: introduce test cases for ipvs Message-ID: <20191004114745.GB6803@dimstar.local.net> Mail-Followup-To: Haishuang Yan , Julian Anastasov , Shuah Khan , Pablo Neira Ayuso , "David S. Miller" , Simon Horman , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org References: <1569939599-1872-1-git-send-email-yanhaishuang@cmss.chinamobile.com> <20191002012726.GB9810@dimstar.local.net> <8E2E81F3-8385-4397-9A22-F513E507507D@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8E2E81F3-8385-4397-9A22-F513E507507D@cmss.chinamobile.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=FNpr/6gs c=1 sm=1 tr=0 a=4DzML1vCOQ6Odsy8BUtSXQ==:117 a=4DzML1vCOQ6Odsy8BUtSXQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=XobE76Q3jBoA:10 a=PO7r1zJSAAAA:8 a=YExiR9hJhUxYzP8DYcgA:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 03, 2019 at 10:41:06PM +0800, Haishuang Yan wrote: > > > > On 2019??10??2??, at ????9:27, Duncan Roe wrote: > > > > On Tue, Oct 01, 2019 at 09:34:13PM +0300, Julian Anastasov wrote: > >> > >> Hello, > >> > >> On Tue, 1 Oct 2019, Haishuang Yan wrote: > >> > >>> This series patch include test cases for ipvs. > >>> > >>> The test topology is who as below: > >>> +--------------------------------------------------------------+ > >>> | | | > >>> | ns0 | ns1 | > >>> | ----------- | ----------- ----------- | > >>> | | veth01 | --------- | veth10 | | veth12 | | > >>> | ----------- peer ----------- ----------- | > >>> | | | | | > >>> | ----------- | | | > >>> | | br0 | |----------------- peer |--------------| > >>> | ----------- | | | > >>> | | | | | > >>> | ---------- peer ---------- ----------- | > >>> | | veth02 | --------- | veth20 | | veth12 | | > >>> | ---------- | ---------- ----------- | > >>> | | ns2 | > >>> | | | > >>> +--------------------------------------------------------------+ > >>> > >>> Test results: > >>> # selftests: netfilter: ipvs.sh > >>> # Testing DR mode... > >>> # Testing NAT mode... > >>> # Testing Tunnel mode... > >>> # ipvs.sh: PASS > >>> ok 6 selftests: netfilter: ipvs.sh > >>> > >>> Haishuang Yan (3): > >>> selftests: netfilter: add ipvs test script > >>> selftests: netfilter: add ipvs nat test case > >>> selftests: netfilter: add ipvs tunnel test case > >> > >> Acked-by: Julian Anastasov > >> > >>> tools/testing/selftests/netfilter/Makefile | 2 +- > >>> tools/testing/selftests/netfilter/ipvs.sh | 234 +++++++++++++++++++++++++++++ > >>> 2 files changed, 235 insertions(+), 1 deletion(-) > >>> create mode 100755 tools/testing/selftests/netfilter/ipvs.sh > >> > >> Regards > >> > >> -- > >> Julian Anastasov > > > > I still prefer #!/bin/sh in 1/3. You never know what's in someone's environment > > > > Cheers ... Duncan. > > > > It??s also my preference too. "_" > > I have tested both #!/bin/bash and #!/bin/sh script, they all works properly. Enter these 2 lines: > ip(){ return 0; } > export -f ip Now try the #!/bin/bash script. If that now fails, try again with #!/bin/bash changed to #!/bin/bash -p Any better now? Cheers ... Duncan.