From patchwork Wed Jul 12 16:03:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Baerts X-Patchwork-Id: 702097 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BDF1EB64DA for ; Wed, 12 Jul 2023 16:03:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232977AbjGLQDb (ORCPT ); Wed, 12 Jul 2023 12:03:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233567AbjGLQDa (ORCPT ); Wed, 12 Jul 2023 12:03:30 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8BCA1BDF for ; Wed, 12 Jul 2023 09:03:28 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fbd33a57dcso77167525e9.0 for ; Wed, 12 Jul 2023 09:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares.net; s=google; t=1689177807; x=1691769807; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=pVrDKVLrRoBIdmotwI0bl0cRtLE5t/gXvD0PdoVIlW0=; b=3d5D77DkJG/5PF3HJ1xCcbtAzf3FieOsoPpkBf/jt2NUBU7vHTA9/ctUW16EJzfubI rwLyIXRNarc33SMbS9jMov/IxChYmnTCl7s5cEmFrmCN1WTpoyzyCBfjPOlaIlsul/IS vZpLzGXHcdIVB3WHPKxVGn+i5gX3+WJKsBsxGso125uvnig+myb1SVKzPRIMl+NLDPxZ iMZvSoroR6D0/vE1fVqrkFjP2iW6kqgoZt/Z0ImpHpODP81GNP1KXwR5c7kSohuxV+8v RHf9sNLMLZ2paenx6rftISTg9XuuIUyjcLnBDLYY5/bsnSK0lEa6UH5Wm5LAA45Kqan4 SDvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689177807; x=1691769807; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pVrDKVLrRoBIdmotwI0bl0cRtLE5t/gXvD0PdoVIlW0=; b=RtTb05W/auw6Z7+uFLWzT0xVj9N3LmlWQA3gTwOxsXCnio6Z6ZvoR0CtoAO8DX1ekq SazKdqdc0cyt6gzH6STDKaF1z/wckfh9h80ZNG1uqga6k02qgHSPGTXUj41OJLSy0359 a/hgZEW85BYtBv3XHKjvnilEcFaUJ0UnQhOCMCYAiYblhZ6T+w40KIiiq64cEd+77Hxt j1AaEcqEXY4nnhUdyAqIf9JJN/0U2ktx4231T37SNS7szIDM8OZO9x7TABV1Scw+xpGA PTQTwe2As5gRSZpCGFRdkrCY4EvhJx3+noRHfm5Y52ntbkzFzMbwf+BtCB41dIhCZvcG NSOA== X-Gm-Message-State: ABy/qLZmFzU/En9Jm6XLjwJoz54SPf7w1U5MycccwF9jbdEXiZFfbKVx 00POZOc4vp4p63di/K7HBUXIq2L/zw45NaY7ShYzRZss X-Google-Smtp-Source: APBJJlH+7sqLGE9pzV723LSbLp79MxZ1W5SgCdFDRaujJmlyRRZ+nJzzx2R2Gj5mnWyKLSZG/Xr6eg== X-Received: by 2002:a05:600c:2143:b0:3fb:e58c:7758 with SMTP id v3-20020a05600c214300b003fbe58c7758mr17587183wml.3.1689177806872; Wed, 12 Jul 2023 09:03:26 -0700 (PDT) Received: from vdi08.nix.tessares.net (static.219.156.76.144.clients.your-server.de. [144.76.156.219]) by smtp.gmail.com with ESMTPSA id o6-20020a05600c378600b003fbb9339b29sm15972581wmr.42.2023.07.12.09.03.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 09:03:26 -0700 (PDT) From: Matthieu Baerts Subject: [PATCH net-next 0/4] selftests: mptcp: join: pass args in new env vars Date: Wed, 12 Jul 2023 18:03:15 +0200 Message-Id: <20230712-upstream-net-next-20230712-selftests-mptcp-use-local-env-v1-0-f1c8b62fbf95@tessares.net> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAMPOrmQC/z2NQQqDMBBFryKz7oBOpaW9Sukixm8b0Bgyowji3 RsK7eIvHh/e20mRA5Tu1U4Za9AwxwLNqSL/dvEFDn1hklrO9bURXpJahps4wso24/+lGAeDmvK UzCdeFDzO3o2MuLLrb5dWpO28OCr6lDGE7Zt+0E9Gz+P4AGK7QEWUAAAA To: mptcp@lists.linux.dev, Mat Martineau , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Cc: Geliang Tang , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Matthieu Baerts X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1121; i=matthieu.baerts@tessares.net; h=from:subject:message-id; bh=GEejwFVT2b0O7wgcdRObluk8euMcTBWV4USRAcrr84Y=; b=owEBbQKS/ZANAwAIAfa3gk9CaaBzAcsmYgBkrs7N4/wB882a7Isr163i7YP4jUtzCkPe/7B09 zxNDemgW/uJAjMEAAEIAB0WIQToy4X3aHcFem4n93r2t4JPQmmgcwUCZK7OzQAKCRD2t4JPQmmg c9gLEAC2GPRKf9dmO0GS2t2aLk7wIMT6WFXf5FXrd15UvwlhYeuXMbrFTmY/DhM+SMG/mz24IlA xiHdS0np4QbZv+sbo8Y9yZ+q/ZD8Bf4DTZ+lZFV/39qSDiDGKZ5kaGH68mVNf6h3LR2GWZ3idq1 mPjBD5cVaChh/7iZroHm1frwI83NT6P2pQzSEOo07ejgj6CtjpZa8nSQ0k87BJwBroD2yL4gig+ 2NY6FnQ6Oz8xhJbsw8dVnNxq5unB3IO03gImLC6e6yxikfrCBMqI5Xiil8ncuzFE3mdqvGSxDUI dl5m6eG1fdcs4MEwDPjxo8d7P+tsjrRdy5Jft/e2bhyxVlXylPubul7YCzM5mmcPf2TGcsYiuTj AkMJbFVzYCfl4wkj8mDd63tvJHQiSJIcglCVST+nQSCkmkPKnqobeG3Vraq83nBWEd67Lu8x//D EcPeVYeRCRWMAeOyS7KqZ0DZ66i6SG4A7eFjPoEj1V9EPq5yLMmts++AbngcvSkjzlGdtH2iyif gPZqO6nofmvyW5qyQqCqOIlbWLDxCyzrH7eI2ZS8IirCftSLmLjh03qQZ90+xcZgKmyg1BMwaqF yFZWn+JHmQEo7dmkFiAQNBZlp6Ongh3uD+0EHTxmOMemVt3ZeZHYU+mtLADvQIcCxi0A5BBsW0J 88fNNmj2hE36/Yw== X-Developer-Key: i=matthieu.baerts@tessares.net; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In this series, Geliang did some refactoring in the mptcp_join.sh file. Patch 1 reduces the scope of some global env vars, only used by some tests: easier to deal with. Patch 2 uses a dedicated env var for fastclose case instead of re-using addr_nr_ns2 with embedded info, clearer. Patch 3 is similar but for the fullmesh case. Patch 4 moves a positional but optional argument of run_tests() to an env var like it has already been done with the other args, cleaner. Signed-off-by: Matthieu Baerts --- Geliang Tang (4): selftests: mptcp: set all env vars as local ones selftests: mptcp: add fastclose env var selftests: mptcp: add fullmesh env var selftests: mptcp: add speed env var tools/testing/selftests/net/mptcp/mptcp_join.sh | 271 +++++++++++++----------- 1 file changed, 151 insertions(+), 120 deletions(-) --- base-commit: e0f0a5db5f8c413cbbf48607f711c2a21023ee66 change-id: 20230712-upstream-net-next-20230712-selftests-mptcp-use-local-env-ad964224bc2a Best regards,