#!/bin/sh

if [ -d "$AUTOPKGTEST_TMP" ] ; then
    cd "$AUTOPKGTEST_TMP"
fi

esorex --recipes
if [ $? != 0 ] ; then
    echo "Recipe listing failure"
    exit 1
fi

RECIPE=amber_SciCal

esorex --man-page ${RECIPE}
if [ $? != 0 ] ; then
    echo "Recipe doc printing failure"
    exit 1
fi
esorex --param ${RECIPE}
if [ $? != 0 ] ; then
    echo "Recipe parameter listing failure"
    exit 1
fi
cat esorex.log
rm -f esorex.log
