Lorenz Brun | ad5b47d | 2021-11-09 13:52:56 +0100 | [diff] [blame^] | 1 | // 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. | ||||
4 | package main | ||||
5 | |||||
6 | import ( | ||||
7 | "fmt" | ||||
8 | |||||
9 | "golang.org/x/sys/unix" | ||||
10 | ) | ||||
11 | |||||
12 | func main() { | ||||
13 | fmt.Println("TestOS launched successfully! _TESTOS_LAUNCH_SUCCESS_") | ||||
14 | unix.Reboot(unix.LINUX_REBOOT_CMD_POWER_OFF) | ||||
15 | } |