#!/bin/bash -e

. ./debian/tests/functions

balsa_setup
printf 'working directory: %s\n' "$workdir"

verstring="$(LC_ALL=C NO_AT_BRIDGE=1 xvfb-run balsa --version)"
instvers="$(dpkg-query -f '${Version}' --show balsa | cut -f1 -d-)"
expected="Balsa email client $instvers"
if [ "$verstring" != "$expected" ]; then
   printf >&2 "did not match:\n %s\n %s\n" "$verstring" "$expected"
   exit 1
fi

balsa_teardown
