[PATCH net-next v10] selftests/vsock: add initial vmtest.sh for vsock

2025-06-09 Thread Bobby Eshleman
a kselftest itself. This is different than other systems that have a "vmtest.sh", where it is used as a utility script to spin up a VM to run the selftests as a guest (but isn't hooked into kselftest). Signed-off-by: Bobby Eshleman --- Changes in v10: - remove dupes in tools/te

[PATCH net-next v9] selftests/vsock: add initial vmtest.sh for vsock

2025-05-27 Thread Bobby Eshleman
a kselftest itself. This is different than other systems that have a "vmtest.sh", where it is used as a utility script to spin up a VM to run the selftests as a guest (but isn't hooked into kselftest). Signed-off-by: Bobby Eshleman --- Changes in v9: - make kselftest build target

Re: [PATCH net-next v8] selftests/vsock: add initial vmtest.sh for vsock

2025-05-27 Thread Bobby Eshleman
On Tue, May 27, 2025 at 05:55:13PM +0200, Stefano Garzarella wrote: > On Tue, May 27, 2025 at 07:30:29AM -0700, Bobby Eshleman wrote: > > On Mon, May 26, 2025 at 01:18:18PM +0200, Stefano Garzarella wrote: > > > On Thu, May 22, 2025 at 09:59:07PM -0700, Bobby Eshleman wrote: &g

Re: [PATCH net-next v8] selftests/vsock: add initial vmtest.sh for vsock

2025-05-27 Thread Bobby Eshleman
On Mon, May 26, 2025 at 01:18:18PM +0200, Stefano Garzarella wrote: > On Thu, May 22, 2025 at 09:59:07PM -0700, Bobby Eshleman wrote: > > This commit introduces a new vmtest.sh runner for vsock. > > > > It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H,

[PATCH net-next v8] selftests/vsock: add initial vmtest.sh for vsock

2025-05-22 Thread Bobby Eshleman
a kselftest itself. This is different than other systems that have a "vmtest.sh", where it is used as a utility script to spin up a VM to run the selftests as a guest (but isn't hooked into kselftest). Signed-off-by: Bobby Eshleman --- Changes in v8: - remove NIPA comment from comm

Re: [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock

2025-05-20 Thread Bobby Eshleman
On Tue, May 20, 2025 at 01:09:25PM +0200, Stefano Garzarella wrote: > On Tue, May 20, 2025 at 12:58:18PM +0200, Paolo Abeni wrote: > > On 5/20/25 10:24 AM, Stefano Garzarella wrote: > > > > Still it could be worthy to re-introduce (behind a command line option) > > the ability to build the kernel

Re: [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock

2025-05-20 Thread Bobby Eshleman
On Tue, May 20, 2025 at 12:58:18PM +0200, Paolo Abeni wrote: > On 5/20/25 10:24 AM, Stefano Garzarella wrote: > > https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style > > @Bobby: AFAICS this now has all the ingredients to fit NIPA integration > am I correct? the last com

Re: [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock

2025-05-20 Thread Bobby Eshleman
On Tue, May 20, 2025 at 01:24:43PM +0200, Paolo Abeni wrote: > On 5/16/25 12:00 AM, Bobby Eshleman wrote: > > +tap_prefix() { > > + sed -e "s/^/${TAP_PREFIX}/" > > +} > > I think there is no need to the tap prefix to the output you intend to > 'com

[PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock

2025-05-15 Thread Bobby Eshleman
as a kselftest itself. This is different than other systems that have a "vmtest.sh", where it is used as a utility script to spin up a VM to run the selftests as a guest (but isn't hooked into kselftest). Testing in NIPA is still WIP. Signed-off-by: Bobby Eshleman --- Changes in v7: - fi

Re: [PATCH net-next v5] selftests/vsock: add initial vmtest.sh for vsock

2025-05-15 Thread Bobby Eshleman
On Thu, May 15, 2025 at 11:02:00AM +0200, Stefano Garzarella wrote: > On Tue, May 13, 2025 at 11:31:13PM -0700, Bobby Eshleman wrote: > > This commit introduces a new vmtest.sh runner for vsock. > > > > It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H,

[PATCH net-next v6] selftests/vsock: add initial vmtest.sh for vsock

2025-05-15 Thread Bobby Eshleman
WIP. Signed-off-by: Bobby Eshleman --- Changes in v6: - add make cmd in commit message in vmtest.sh example (Stefano) - check nonzero size of QEMU_PIDFILE using -s conditional (Stefano) - display log file path after tests so it is easier to find amongst other random names - cleanup qemu pidfile

[PATCH net-next v5] selftests/vsock: add initial vmtest.sh for vsock

2025-05-13 Thread Bobby Eshleman
st.sh as a kselftest itself. This is different than other systems that have a "vmtest.sh", where it is used as a utility script to spin up a VM to run the selftests as a guest (but isn't hooked into kselftest). Testing in NIPA is still WIP. Signed-off-by: Bobby Eshleman --- Chang

Re: [PATCH net-next v4] selftests/vsock: add initial vmtest.sh for vsock

2025-05-13 Thread Bobby Eshleman
On Tue, May 13, 2025 at 12:08:48PM +0200, Paolo Abeni wrote: > On 5/8/25 3:23 AM, Bobby Eshleman wrote: > > This commit introduces a new vmtest.sh runner for vsock. > > > > It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H, > > H2G, and loopback. T

[PATCH net-next v4] selftests/vsock: add initial vmtest.sh for vsock

2025-05-07 Thread Bobby Eshleman
p_output +echo "1..${#ARGS[@]}" | tap_output + +rm -f "${LOG}" +log_setup "Booting up VM" +vm_setup +vm_wait_for_ssh +log_setup "VM booted up" + +cnt_pass=0 +cnt_fail=0 +cnt_skip=0 +cnt_total=0 +exitcode=0 +for arg in "${ARGS[@]}"; do + run_test "${arg}" + rc=$? + if [[ ${rc} == $KSFT_PASS ]]; then + cnt_pass=$(( cnt_pass + 1 )) + echo "[PASS]" | tap_prefix + echo "ok ${cnt_total} ${arg}" | tap_output + elif [[ ${rc} == $KSFT_SKIP ]]; then + cnt_skip=$(( cnt_skip + 1 )) + echo "[SKIP]" | tap_prefix + echo "ok ${cnt_total} ${arg} # SKIP" | tap_output + exitcode=$KSFT_SKIP + elif [[ ${rc} == $KSFT_FAIL ]]; then + cnt_fail=$(( cnt_fail + 1 )) + echo "[FAIL]" | tap_prefix + echo "not ok ${cnt_fail} ${arg} # exit=$rc" | tap_output + exitcode=$KSFT_FAIL + fi + cnt_total=$(( cnt_total + 1 )) +done + +echo "SUMMARY: PASS=${cnt_pass} SKIP=${cnt_skip} FAIL=${cnt_fail}" | tap_prefix +echo "1..${cnt_total}" | tap_output + +exit ${rc} --- base-commit: 8066e388be48f1ad62b0449dc1d31a25489fa12a change-id: 20250325-vsock-vmtest-b3a21d2102c2 Best regards, -- Bobby Eshleman

Re: [PATCH net-next v3] selftests/vsock: add initial vmtest.sh for vsock

2025-05-06 Thread Bobby Eshleman
On Fri, May 02, 2025 at 12:22:46PM +0200, Paolo Abeni wrote: > On 4/29/25 1:48 AM, Bobby Eshleman wrote: > > This commit introduces a new vmtest.sh runner for vsock. > > > > It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H, > > H2G, and loopback. T

Re: [PATCH net-next v3] selftests/vsock: add initial vmtest.sh for vsock

2025-04-30 Thread Bobby Eshleman
PS. sorry for weird formatting, writing from the gmail web UI instead of mutt. Tried to limit line lengths manually. Looks weird after hitting "send"... lol. Best, Bobby On Wed, Apr 30, 2025 at 7:37 PM Bobby Eshleman wrote: > > On Wed, Apr 30, 2025 at 6:06 AM Stefano Garz

Re: [PATCH net-next v3] selftests/vsock: add initial vmtest.sh for vsock

2025-04-30 Thread Bobby Eshleman
On Wed, Apr 30, 2025 at 6:06 AM Stefano Garzarella wrote: > > On Mon, Apr 28, 2025 at 04:48:11PM -0700, Bobby Eshleman wrote: > >This commit introduces a new vmtest.sh runner for vsock. > > > >It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H, > >

[PATCH net-next v3] selftests/vsock: add initial vmtest.sh for vsock

2025-04-28 Thread Bobby Eshleman
(but isn't hooked into kselftest). This aspect is worth review, as I'm not aware of all of the enviroments where this would run. Signed-off-by: Bobby Eshleman --- Changes in v3: - use common conditional syntax for checking variables - use return value instead of global rc - fix typo TES

[PATCH net-next v2] selftests/vsock: add initial vmtest.sh for vsock

2025-04-17 Thread Bobby Eshleman
used. Only tested on x86. To run: $ tools/testing/selftests/vsock/vmtest.sh Future work can include vsock_diag_test. Signed-off-by: Bobby Eshleman --- Changes in v2: - add kernel oops and warnings checker - change testname variable to use FUNCNAME - fix spacing in test_vm_server_host_client

Re: [PATCH net-next] selftests/vsock: add initial vmtest.sh for vsock

2025-04-14 Thread Bobby Eshleman
On Fri, Apr 11, 2025 at 10:32:45AM +0200, Stefano Garzarella wrote: > On Thu, Apr 10, 2025 at 06:07:59PM -0700, Bobby Eshleman wrote: > > This commit introduces a new vmtest.sh runner for vsock. > > > > It uses virtme-ng/qemu to run tests in a VM. The tests are designed to

[PATCH net-next] selftests/vsock: add initial vmtest.sh for vsock

2025-04-10 Thread Bobby Eshleman
: $ tools/testing/selftests/vsock/vmtest.sh Signed-off-by: Bobby Eshleman --- MAINTAINERS| 1 + tools/testing/selftests/vsock/.gitignore | 1 + tools/testing/selftests/vsock/config.vsock | 6 + tools/testing/selftests/vsock/vmtest.sh| 247