#!/bin/bash

verstring="$(LC_ALL=C 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
