1#!/bin/sh 2 3. "${TEST_INIT:-./test-init.sh}" 4 5if [ "$1" = 'actual' ]; then 6 tmpdir=$(mktemp -d) 7 cp "$DATA_DIR/conf" "$tmpdir" || exit 1 8 "$CALCURSE" -D "$tmpdir" -i "$DATA_DIR/ical-008.ical" 9 "$CALCURSE" -D "$tmpdir" -s01/01/1980 -r2 10 "$CALCURSE" -D "$tmpdir" -t 11 rm -rf "$tmpdir" || exit 1 12elif [ "$1" = 'expected' ]; then 13 cat <<EOD 14Import process report: 0012 lines read 151 app / 0 events / 1 todo / 0 skipped 1601/01/80: 17 - 00:01 -> ..:.. 18 Calibrator's 19 2001/02/80: 21 - ..:.. -> 09:18 22 Calibrator's 23to do: 241. Nary parabled Louvre's fleetest mered 25EOD 26else 27 ./run-test "$0" 28fi 29