#!/bin/sh
set -e
set -x

out=samples/morphing/sample1/cave1.pdf

# Remove existing version to make sure we regenerate it.
rm -f "$out"

therion samples/morphing/sample1/thconfig.1

# For now, just check the output is present and a non-zero size.
case `wc -c "$out"` in
  "")
    echo "Expected output file '$out' not created"
    exit 1 ;;
  0*)
    echo "Expected output file '$out' is empty"
    exit 1 ;;
esac
