Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17B6DC35247 for ; Thu, 6 Feb 2020 00:59:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E915820658 for ; Thu, 6 Feb 2020 00:59:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727587AbgBFA7N (ORCPT ); Wed, 5 Feb 2020 19:59:13 -0500 Received: from orbyte.nwl.cc ([151.80.46.58]:47710 "EHLO orbyte.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbgBFA7N (ORCPT ); Wed, 5 Feb 2020 19:59:13 -0500 Received: from localhost ([::1]:60800 helo=tatos) by orbyte.nwl.cc with esmtp (Exim 4.91) (envelope-from ) id 1izVVg-0000me-G4; Thu, 06 Feb 2020 01:59:12 +0100 From: Phil Sutter To: Pablo Neira Ayuso Cc: netfilter-devel@vger.kernel.org Subject: [nft PATCH 3/4] tests: monitor: Support testing host's nft binary Date: Thu, 6 Feb 2020 01:58:50 +0100 Message-Id: <20200206005851.28962-4-phil@nwl.cc> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200206005851.28962-1-phil@nwl.cc> References: <20200206005851.28962-1-phil@nwl.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Add support for -H/--host flag to use 'nft' tool from $PATH instead of the local one. Signed-off-by: Phil Sutter --- tests/monitor/run-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/monitor/run-tests.sh b/tests/monitor/run-tests.sh index efacdaaab952b..ffb833a7f86f0 100755 --- a/tests/monitor/run-tests.sh +++ b/tests/monitor/run-tests.sh @@ -119,6 +119,10 @@ while [ -n "$1" ]; do test_json=true shift ;; + -H|--host) + nft=nft + shift + ;; testcases/*.t) testcases+=" $1" shift -- 2.24.1