| Tim Windelschmidt | 6d33a43 | 2025-02-04 14:34:25 +0100 | [diff] [blame] | 1 | // Copyright The Monogon Project Authors. |
| 2 | // SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| Lorenz Brun | ad5b47d | 2021-11-09 13:52:56 +0100 | [diff] [blame] | 4 | // 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. |
| 7 | package main |
| 8 | |
| 9 | import ( |
| 10 | "fmt" |
| 11 | |
| 12 | "golang.org/x/sys/unix" |
| 13 | ) |
| 14 | |
| 15 | func main() { |
| 16 | fmt.Println("TestOS launched successfully! _TESTOS_LAUNCH_SUCCESS_") |
| 17 | unix.Reboot(unix.LINUX_REBOOT_CMD_POWER_OFF) |
| 18 | } |