All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Thomas Haller <thaller@redhat.com>
Cc: NetFilter <netfilter-devel@vger.kernel.org>
Subject: Re: [PATCH nft 0/7] add and check dump files for JSON in tests/shell
Date: Wed, 1 Nov 2023 09:28:14 +0100	[thread overview]
Message-ID: <ZUIMHmWxbhhTt/MM@calendula> (raw)
In-Reply-To: <f9955dba2dba9965ad2a540482cdd66ab674cd83.camel@redhat.com>

On Tue, Oct 31, 2023 at 08:17:24PM +0100, Thomas Haller wrote:
> On Tue, 2023-10-31 at 19:53 +0100, Thomas Haller wrote:
> > Like we have .nft dump files to compare the expected result, add
> > .json-nft files that compare the JSON output.
> > 
> > Thomas Haller (7):
> >   json: fix use after free in table_flags_json()
> >   json: drop messages "warning: stmt ops chain have no json callback"
> >   tests/shell: check and generate JSON dump files
> >   tests/shell: add JSON dump files
> >   tools: simplify error handling in "check-tree.sh" by adding
> >     msg_err()/msg_warn()
> >   tools: check more strictly for bash shebang in "check-tree.sh"
> >   tools: check for consistency of .json-nft dumps in "check-tree.sh"

If this is improving json support coverage without imposing any extra
restriction other than adding a .nft-json file, then this is very good
to have.

I believe I switfly read on a commit message that this is skipped if
nft is compiled without json support, correct?

> Hm. Patch 4/7 bounced (too large).
>
> Will see how to resend, after there is some feedback.

I suggest you Cc: me so I can apply this.

> The patch is also here:
> https://gitlab.freedesktop.org/thaller/nftables/-/commit/6545b31080036e8525be5c80c0103a1509e698e4

You said:

"Note that for some JSON dumps, `nft -f --check` fails (or prints
something). For those tests no *.json-nft file is added. The bugs needs
to be fixed first."

Do you have a list of tests that are failing? Or maybe include this
list in the commit description? To keep them in the radar, we can
incrementally fix them.

Thanks.

  reply	other threads:[~2023-11-01  8:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-31 18:53 [PATCH nft 0/7] add and check dump files for JSON in tests/shell Thomas Haller
2023-10-31 18:53 ` [PATCH nft 1/7] json: fix use after free in table_flags_json() Thomas Haller
2023-10-31 18:53 ` [PATCH nft 2/7] json: drop messages "warning: stmt ops chain have no json callback" Thomas Haller
2023-11-02  8:04   ` Florian Westphal
2023-11-02  8:39     ` Thomas Haller
2023-11-02 11:23       ` Thomas Haller
2023-10-31 18:53 ` [PATCH nft 3/7] tests/shell: check and generate JSON dump files Thomas Haller
2023-10-31 18:53 ` [PATCH nft 5/7] tools: simplify error handling in "check-tree.sh" by adding msg_err()/msg_warn() Thomas Haller
2023-10-31 18:53 ` [PATCH nft 6/7] tools: check more strictly for bash shebang in "check-tree.sh" Thomas Haller
2023-10-31 18:53 ` [PATCH nft 7/7] tools: check for consistency of .json-nft dumps " Thomas Haller
2023-10-31 19:17 ` [PATCH nft 0/7] add and check dump files for JSON in tests/shell Thomas Haller
2023-11-01  8:28   ` Pablo Neira Ayuso [this message]
2023-11-01  9:55     ` Thomas Haller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZUIMHmWxbhhTt/MM@calendula \
    --to=pablo@netfilter.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=thaller@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.