libfreefare/test/run-test.sh
2010-01-11 20:14:30 +00:00

13 lines
248 B
Bash
Executable file

#!/bin/sh
export BASE_DIR="`dirname $0`"
if test -z "$NO_MAKE"; then
make -C "$BASE_DIR/../" > /dev/null || exit 1
fi
if test -z "$CUTTER"; then
CUTTER="`make -s -C "$BASE_DIR" echo-cutter`"
fi
"$CUTTER" -s "$BASE_DIR" "$@" "$BASE_DIR"