| 1 | # SPDX-FileCopyrightText: Copyright The Lima Authors |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | load "../helpers/load" |
| 5 | |
| 6 | local_setup_file() { |
| 7 | limactl start --tty=false template:freebsd |
| 8 | } |
| 9 | |
| 10 | local_teardown_file() { |
| 11 | # <DEBUG> |
| 12 | set -x |
| 13 | tail -n 100 "${LIMA_HOME}"/freebsd/*.log |
| 14 | limactl shell freebsd -- cat /var/log/messages |
| 15 | # </DEBUG> |
| 16 | limactl stop freebsd |
| 17 | limactl rm freebsd |
| 18 | } |
| 19 | |
| 20 | @test 'Smoke test' { |
| 21 | run -0 limactl shell freebsd -- uname |
| 22 | # FIXME: the shell always shows freebsd-tips (specified in ~/.login) |
| 23 | assert_output --partial "FreeBSD" |
| 24 | } |