public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
530c6909412adbdef49f0d8bb798f44be35473ee blob 1408 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
47
48
49
50
51
52
53
54
55
56
57
58
 
#!/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>

EXETOOL="$BASEPATH/exeter/exetool/exetool"

# is_exeter() - Determine if a test file is an exeter program
# $@:	Command line to invoke test program
is_exeter() {
	$EXETOOL probe -- "$@"
}

# exeter() - Run each test in an exeter program, logging each test separately
# $@:	Command line to invoke exeter test program
exeter() {
	STATESETUP="${STATEBASE}/$1"
	mkdir -p "${STATESETUP}"

	context_setup_host host
	layout_host

	cd test

	__ntests=$($EXETOOL 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)" ${__ntests}
	[ ${CI} -eq 1 ] && video_link "${1}"

	for __testid in $($EXETOOL list -- "$@"); do
		__desc="$($EXETOOL desc -- "$@" -- "${__testid}")"
		status_test_start "${__desc}"
		context_run host "$* '${__testid}'" && status_test_ok || status_test_fail
	done

	cd ..

	teardown_context_watch ${PANE_HOST} host
}
debug log:

solving 530c6909 ...
found 530c6909 in https://archives.passt.top/passt-dev/20251002075708.461931-3-david@gibson.dropbear.id.au/
found 3b19beaa in https://passt.top/passt
preparing index
index prepared:
100644 3b19beaaccfe83b3c619079897a3334d13a4993e	test/lib/exeter

applying [1/1] https://archives.passt.top/passt-dev/20251002075708.461931-3-david@gibson.dropbear.id.au/
diff --git a/test/lib/exeter b/test/lib/exeter
index 3b19beaa..530c6909 100644

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

index at:
100644 530c6909412adbdef49f0d8bb798f44be35473ee	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).