lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e6a3845a7522e692fa3de69ec7f1f9c9a683223e.camel@mandelbit.com>
Date: Tue, 25 Nov 2025 11:21:41 +0100
From: Ralf Lici <ralf@...delbit.com>
To: Sabrina Dubroca <sd@...asysnail.net>, Antonio Quartulli
	 <antonio@...nvpn.net>
Cc: netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>, 
	linux-kselftest@...r.kernel.org, Shuah Khan <shuah@...nel.org>
Subject: Re: [RFC net-next 02/13] selftests: ovpn: add notification parsing
 and matching

On Mon, 2025-11-24 at 16:51 +0100, Sabrina Dubroca wrote:
> 2025-11-21, 01:20:33 +0100, Antonio Quartulli wrote:
> > diff --git a/tools/testing/selftests/net/ovpn/common.sh
> > b/tools/testing/selftests/net/ovpn/common.sh
> > index 88869c675d03..b91cf17ab01f 100644
> > --- a/tools/testing/selftests/net/ovpn/common.sh
> > +++ b/tools/testing/selftests/net/ovpn/common.sh
> [...]
> > @@ -82,6 +99,23 @@ add_peer() {
> >  	fi
> >  }
> >  
> > +compare_ntfs() {
> > +	if [ ${#tmp_jsons[@]} -gt 0 ]; then
> > +		[ "$FLOAT" == 1 ] && suffix="-float"
> > +		expexted="json/peer${1}${suffix}.json"
> 
> nit: expected?

Will fix, thanks.

> > +		received="${tmp_jsons[$1]}"
> > +
> > +		kill -TERM ${listener_pids[$1]} || true
> > +		wait ${listener_pids[$1]} || true
> > +		printf "Checking notifications for peer ${1}... "
> > +		diff <(jq -s "${JQ_FILTER}" ${expexted}) \
> > +			<(jq -s "${JQ_FILTER}" ${received})
> > +		echo "OK"
> 
> Should that OK be conditional on what diff returns?

We run selftests with set -e, so if the jsons don’t match, the script
will print the diff and exit. That said, I agree the current code isn’t
very clear, so I’ll make the "OK" conditional.

-- 
Ralf Lici
Mandelbit Srl

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ