Re: [PATCH nft 1/1] tests: prettify JSON in test output and add helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 22, 2023 at 01:55:57PM +0100, Thomas Haller wrote:
[...]
> As always, you will find some result files in /tmp/nft-
> test.latest.$USER/, which I usually read with
> 
>   $ grep --color=always ^ -aR /tmp/nft-test.latest.*/ | less -R
> 
> there will be a new file there, named "ruleset-diff.json.pretty".
> 
> It contains the content of "./tests/shell/helpers/json-diff-pretty.sh"
> output.
> 
> 
> For example:
> 
>   $ cp tests/shell/testcases/bitwise/dumps/0040mark_binop_2.json-nft tests/shell/testcases/bitwise/dumps/0040mark_binop_3.json-nft
>   $ ./tests/shell/run-tests.sh tests/shell/testcases/bitwise/0040mark_binop_3
> 
> 
> leaves a file
> 
>      /tmp/nft-test.latest.*/test-tests-shell-testcases-bitwise-0040mark_binop_3.1/ruleset-diff.json.pretty

Thanks for explaining, this is now applied.

And please, add copy and paste this info to the README file (unless I
am overlooking anything, it is not yet there).



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux