#!/bin/sh . "${TEST_INIT:-./test-init.sh}" if [ "$1" = 'actual' ]; then tmpdir=$(mktemp -d) cp "$DATA_DIR/conf" "$tmpdir" || exit 1 "$CALCURSE" -D "$tmpdir" -i "$DATA_DIR/ical-005.ical" "$CALCURSE" -D "$tmpdir" -s10/03/2013 -r3 cat "$tmpdir/notes"/* rm -rf "$tmpdir" || exit 1 elif [ "$1" = 'expected' ]; then cat <