vinix-ports / tests / userland / btop.sh
12 lines · 11 sloc · 371 bytes · 1a282c5c2dbd5f786d720d50ea542b90b78c9bf6
Raw
1#!/bin/sh
2set -eu
3export PATH=/bin:/usr/bin:/sbin:/usr/sbin HOME=/root LC_ALL=C.UTF-8
4trap '/sbin/poweroff -f' EXIT
5
6test "$(uname -o)" = Vinix
7test "$(btop --version)" = 'btop version: 1.4.0'
8btop --help >/tmp/btop-help
9grep -Fq -- '--version' /tmp/btop-help
10test -s /usr/share/btop/themes/dracula.theme
11test -s /usr/share/man/man1/btop.1
12echo 'VPAC FIXTURE GUEST PASS'
13