patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 4b874c0a7e9b48324497450fb5488e04576fd43b 574 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
 
// SPDX-License-Identifier: EUPL-1.2+
// SPDX-FileCopyrightText: 2025 Alyssa Ross <hi@alyssa.is>

#include "lib.h"

#include <stdlib.h>
#include <string.h>

void test(struct config c)
{
	struct vm *vm;

	c.drives.img = getenv_or_die("COMBINED_PATH");

	vm = start_qemu(c);

	start_console_thread(vm, "GNU GRUB ");
	wait_for_prompt(vm);

	start_console_thread(vm, "~ # ");

	// Assume that Try Spectrum is the first menu entry.
	if (fputc('\n', vm_console_writer(vm)) == EOF) {
		fputs("error writing to console\n", stderr);
		exit(EXIT_FAILURE);
	}

	wait_for_prompt(vm);
}

debug log:

solving 4b874c0a7e9b48324497450fb5488e04576fd43b ...
found 4b874c0a7e9b48324497450fb5488e04576fd43b in https://spectrum-os.org/git/spectrum

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

	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock

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 NNTP newsgroup(s).