]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ovpn: add prefix to helpers and shared variables
authorRalf Lici <ralf@mandelbit.com>
Fri, 20 Mar 2026 16:29:38 +0000 (17:29 +0100)
committerAntonio Quartulli <antonio@openvpn.net>
Fri, 17 Apr 2026 08:54:03 +0000 (10:54 +0200)
commit7c29665a3a3cce1b0e9d6b96054eef64bfc4cebd
tree8be1e1da1c1c2e74c9be17ddc934ff3d6b7b84a0
parent222e7f8d1ca3aaebe7588a79bf64d9820813785c
selftests: ovpn: add prefix to helpers and shared variables

Current naming for shared variables, helpers and netnamespaces is
a bit unfortunate as it doesn't come with a clean prefix.
This showed to be problematic in case of name clashes with external
scripts or in case of abrupt test termination (hanging netns' weren't
easily reconducible to ovpn).

Rename common helper entry points and all shared globals in the ovpn
selftests to ovpn_ or OVPN_ names so test scripts and wrappers use a
single explicit prefix. Also rename the temporary network namespaces
created by the tests from peerN to ovpn_peerN. This makes leaked
namespaces easier to identify.

This is a mechanical refactor only, behavior is unchanged.

Fixes: 959bc330a439 ("testing/selftests: add test tool and scripts for ovpn module")
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
tools/testing/selftests/net/ovpn/common.sh
tools/testing/selftests/net/ovpn/test-chachapoly.sh
tools/testing/selftests/net/ovpn/test-close-socket-tcp.sh
tools/testing/selftests/net/ovpn/test-close-socket.sh
tools/testing/selftests/net/ovpn/test-float.sh
tools/testing/selftests/net/ovpn/test-mark.sh
tools/testing/selftests/net/ovpn/test-symmetric-id-float.sh
tools/testing/selftests/net/ovpn/test-symmetric-id-tcp.sh
tools/testing/selftests/net/ovpn/test-symmetric-id.sh
tools/testing/selftests/net/ovpn/test-tcp.sh
tools/testing/selftests/net/ovpn/test.sh