| 1 | #!/bin/sh |
| 2 | set -eu |
| 3 | export PATH=/bin:/usr/bin:/sbin:/usr/sbin HOME=/root LC_ALL=C |
| 4 | phase=identity |
| 5 | finish() { |
| 6 | status=$? |
| 7 | if [ "$status" -ne 0 ]; then echo "btop fixture failed at $phase with status $status"; fi |
| 8 | /sbin/poweroff -f |
| 9 | } |
| 10 | trap finish EXIT |
| 11 | |
| 12 | test "$(uname -o)" = Vinix |
| 13 | phase=version |
| 14 | version=$(btop --version) |
| 15 | printf '%s\n' "$version" |
| 16 | printf '%s\n' "$version" | grep -Fxq 'btop version: 1.4.0' |
| 17 | phase=help |
| 18 | btop --help >/tmp/btop-help |
| 19 | grep -Fq -- '--version' /tmp/btop-help |
| 20 | phase=package-data |
| 21 | test -s /usr/share/btop/themes/dracula.theme |
| 22 | test -s /usr/share/man/man1/btop.1 |
| 23 | echo 'VPAC FIXTURE GUEST PASS' |
| 24 | |