public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
blob 4f7bcff96b65fb7af89e7ccf6ca08854f91a06c6 1135 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
#!/bin/sh
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# PASST - Plug A Simple Socket Transport
#  for qemu/UNIX domain socket mode
#
# PASTA - Pack A Subtle Tap Abstraction
#  for network namespace/tap device mode
#
# test/lib/exeter - Run exeter tests within the rest of passt's tests
#
# Copyright Red Hat
# Author: David Gibson <david@gibson.dropbear.id.au>

exeter() {
	STATESETUP="${STATEBASE}/$1"
	mkdir -p "${STATESETUP}"

	context_setup_host host
        layout_host

        cd test

        __ntests=$("$@" --list | wc -l)
        if [ $? != 0 ]; then
                info "Failed to get exeter manifest for $@"
	        pause_continue \
		        "Press any key to pause test session"		\
		        "Resuming in "					\
		        "Paused, press any key to continue"		\
		        5
                return
        fi

        status_file_start "Exeter tests: $*" ${__ntests}

        for __testid in $("$@" --list); do
	        status_test_start "${__testid}"
                context_run host "$@" "${__testid}" && status_test_ok || status_test_fail
        done

        cd ..

	teardown_context_watch ${PANE_HOST} host
}

debug log:

solving 4f7bcff9 ...
found 4f7bcff9 in https://archives.passt.top/passt-dev/20250807113237.548294-2-david@gibson.dropbear.id.au/

applying [1/1] https://archives.passt.top/passt-dev/20250807113237.548294-2-david@gibson.dropbear.id.au/
diff --git a/test/lib/exeter b/test/lib/exeter
new file mode 100644
index 00000000..4f7bcff9

Checking patch test/lib/exeter...
Applied patch test/lib/exeter cleanly.

index at:
100644 4f7bcff96b65fb7af89e7ccf6ca08854f91a06c6	test/lib/exeter

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).