#!/bin/sh
# Check that qiv starts and reports its version and usage without a display.
set -e

unset DISPLAY WAYLAND_DISPLAY

qiv --version | grep -E '^qiv \(Quick Image Viewer\) v[0-9]'
qiv --help | grep -q '^Usage: qiv \[options\] files'
echo "PASS: qiv --version and --help"
