1#!/bin/sh 2 3. "${TEST_INIT:-./test-init.sh}" 4 5if [ ! -x "$(command -v faketime)" ]; then 6 echo "libfaketime not found - skipping $0..." 7 exit 0 8fi 9 10if [ "$1" = 'actual' ]; then 11 faketime -f '2011-02-25 00:00:00' "$CALCURSE" --read-only -D "$DATA_DIR"/ -r 12elif [ "$1" = 'expected' ]; then 13 cat <<EOD 1402/25/11: 15 * Socket ghastlier 16 - ..:.. -> ..:.. 17 Covenants useful smoker's 18EOD 19else 20 ./run-test "$0" 21fi 22