blob: f648a83f82d26e50dd0b7b8984a8b1b1b56bcddb [file] [log] [blame]
Tim Windelschmidt6d33a432025-02-04 14:34:25 +01001// Copyright The Monogon Project Authors.
2// SPDX-License-Identifier: Apache-2.0
3
Lorenz Brunad5b47d2021-11-09 13:52:56 +01004// TestOS is a tiny "operating system" which is packaged the exact same way as
5// an actual Metropolis node but only outputs a single flag before exiting.
6// It's used for decoupling the installer tests from the Metropolis Node code.
7package main
8
9import (
10 "fmt"
11
12 "golang.org/x/sys/unix"
13)
14
15func main() {
16 fmt.Println("TestOS launched successfully! _TESTOS_LAUNCH_SUCCESS_")
17 unix.Reboot(unix.LINUX_REBOOT_CMD_POWER_OFF)
18}