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

pkg="dssp"
testfile="/usr/share/doc/libcifpp-dev/examples/1cbs.cif.gz"

if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi

cd $AUTOPKGTEST_TMP

# simply run mkdssp on 1cbs, should produce an output file
mkdssp ${testfile} 1cbs-dssp.cif
[ -s 1cbs-dssp.cif ]

mkdssp ${testfile} 1cbs-dssp.dssp
[ -s 1cbs-dssp.dssp ]
