#!/bin/sh

set -e
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM

# Just a random non-sfark file (/bin/ls):
echo ""
echo "Testing with an invalid sfArk. Check that it is detected to be invalid:"
sfarkxtc /bin/ls $WORKDIR/output | grep -q "This does not appear to be a sfArk file"
echo "run: OK"
