From patchwork Sun Jul 1 06:06:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arushi Singhal X-Patchwork-Id: 937506 X-Patchwork-Delegate: pablo@netfilter.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netfilter-devel-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="saXUPe+l"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41JKdk1trKz9s29 for ; Sun, 1 Jul 2018 16:06:33 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751844AbeGAGG3 (ORCPT ); Sun, 1 Jul 2018 02:06:29 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:43858 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751576AbeGAGG3 (ORCPT ); Sun, 1 Jul 2018 02:06:29 -0400 Received: by mail-pg0-f44.google.com with SMTP id v13-v6so88314pgr.10 for ; Sat, 30 Jun 2018 23:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=UPKG+wpXhmsskdqveSSb3oNtGH9sbV5MM9n5xBx4dBo=; b=saXUPe+ldjNzQCkjXeembov7dsyg9CLN+6nzkMySLKUF4+NtHYUQRv9Mb2CZJoHMpb Rh80f2LkBuKnoECyea6O6OmWRW74tmmQmUgHSMbOJQQTCZR7XfQ5ZSGP4oH191znvc/i O0zLKqQ+t3JfcUMTq57s1TiCx1wB/NWkHS6BTo+1t+R1bjp80+JD0eCXUSIdnJ12iAby 0C1m3FX27Tkqbae8UnodoDA2Eo53kGmzsJdREcWZGFaWFMQuMMliV4LvU0YSyhuhEvAo zu8emvmns8Nh2Cu1MCPMlx1kWcmraTMayYpLJu5tv6Dp0ztKdSdFpJ9TK808ZVBhQXxM BFcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=UPKG+wpXhmsskdqveSSb3oNtGH9sbV5MM9n5xBx4dBo=; b=Sh5bMlD0udNcCoVURGuL6iZV7yETsDPyj78CPK05SiIAZ1ZE3HjXx241Uq8jJMTlqA WP2xCSVtv6KZgyfRseOoFhsdGhXBLXAPyOpEShj6NRB9XW62EFuPl01Nh54vcVL8BYTC zMJQLKoPqmgNtI6DaeNu4KRDDOxcePjTsWasTrkz9xCL7i9XLOI4r9ktHUSXmf7JiIbY +EFodHbCdFxJVg7KJpGrECw9nZZl57bE6/bcP0yY5btwjwAiBp1UotPQZh/o0lXZttJN w9/95ZktKgkczP+KzX6ErLfUn0EfM+gcRjbM0vqw+NeK9EwWeStgqdoHs5jsgHhuxTDj T0Cw== X-Gm-Message-State: APt69E35EcYn/KOgzoL7j0zQsl0SlLHQCgdUGh/6uwtr7Bw7kPq/JNSl xEiq560WUupk6bMYLPDAeYBb4VFF X-Google-Smtp-Source: AAOMgpf6FG2i0eEcOWf4iaCh1cw4F2zF4fj2BMJTLYXHFhIzUd0lK6ULQv0Aho7lO7wNGG2gqkQwcA== X-Received: by 2002:a62:a104:: with SMTP id b4-v6mr20819038pff.159.1530425187984; Sat, 30 Jun 2018 23:06:27 -0700 (PDT) Received: from arushi-HP-Laptop-15-bs1xx ([117.224.51.135]) by smtp.gmail.com with ESMTPSA id b15-v6sm19135351pgu.54.2018.06.30.23.06.24 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 23:06:27 -0700 (PDT) Date: Sun, 1 Jul 2018 11:36:09 +0530 From: Arushi Singhal To: pablo@netfilter.org Cc: netfilter-devel@vger.kernel.org Subject: [PATCH] nftables: tests: shell: Replace "%" with "#" or "$" Message-ID: <20180701060608.GA6067@arushi-HP-Laptop-15-bs1xx> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Shell prompt ends with: "%", indicates a C shell. "$", indicates shell that's compatible with the Bash. "#", indicates shell is running as the system's root. So, "%" is replaced with "$" or "#". Signed-off-by: Arushi Singhal --- tests/shell/README | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/shell/README b/tests/shell/README index e6d83bc..e0279bb 100644 --- a/tests/shell/README +++ b/tests/shell/README @@ -5,24 +5,24 @@ It can run arbitrary executables which can perform any test apart of testing the nft syntax or netlink code (which is what the regression tests does). To run the test suite (as root): - % cd tests/shell - % ./run-tests.sh + $ cd tests/shell + # ./run-tests.sh Test files are executables files with the pattern <>, where N is the expected return code of the executable. Since they are located with `find', test-files can be spread in any sub-directories. You can turn on a verbose execution by calling: - % ./run-tests.sh -v + # ./run-tests.sh -v And generate missing dump files with: - % ./run-tests.sh -g + # ./run-tests.sh -g Before each call to the test-files, `nft flush ruleset' will be called. Also, test-files will receive the environment variable $NFT which contains the path to the nftables binary being tested. You can pass an arbitrary $NFT value as well: - % NFT=/usr/local/sbin/nft ./run-tests.sh + # NFT=/usr/local/sbin/nft ./run-tests.sh By default the tests are run with the nft binary at '../../src/nft'