blob: f0a6e80a49f00aaa3902e59a899bf957b4bb1b9b [file] [log] [blame]
Lorenz Brunad5b47d2021-11-09 13:52:56 +01001// TestOS is a tiny "operating system" which is packaged the exact same way as
2// an actual Metropolis node but only outputs a single flag before exiting.
3// It's used for decoupling the installer tests from the Metropolis Node code.
4package main
5
6import (
7 "fmt"
8
9 "golang.org/x/sys/unix"
10)
11
12func main() {
13 fmt.Println("TestOS launched successfully! _TESTOS_LAUNCH_SUCCESS_")
14 unix.Reboot(unix.LINUX_REBOOT_CMD_POWER_OFF)
15}