"Fossies" - the Fresh Open Source Software Archive

Member "calcurse-4.5.1/test/recur-001.sh" (5 Jan 2019, 1176 Bytes) of package /linux/privat/calcurse-4.5.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 
    3 . "${TEST_INIT:-./test-init.sh}"
    4 
    5 if [ "$1" = 'actual' ]; then
    6   "$CALCURSE" --read-only -D "$DATA_DIR"/ -c "$DATA_DIR/apts-recur" \
    7     -s01/01/2000 -r8 --format-recur-apt=''
    8 elif [ "$1" = 'expected' ]; then
    9   cat <<EOD
   10 01/01/00:
   11  * Each Saturday since 2000-01-01
   12  * Each day since 2000-01-01
   13  * Each first day of the month since 2000-01-01
   14  * Every 28 days since 2000-01-01
   15  * Every second day since 2000-01-01
   16  * Every three days in year 2000
   17  * Every three days, but not on 2000-01-04
   18  * Every year on January, 1st since year 2000
   19  * Same as "01/01/2000 [1] {1W}"
   20 
   21 01/02/00:
   22  * Each day since 2000-01-01
   23 
   24 01/03/00:
   25  * Each day since 2000-01-01
   26  * Every second day since 2000-01-01
   27 
   28 01/04/00:
   29  * Each day since 2000-01-01
   30  * Every three days in year 2000
   31 
   32 01/05/00:
   33  * Each day since 2000-01-01
   34  * Every second day since 2000-01-01
   35 
   36 01/06/00:
   37  * Each day since 2000-01-01
   38 
   39 01/07/00:
   40  * Each day since 2000-01-01
   41  * Every second day since 2000-01-01
   42  * Every three days in year 2000
   43  * Every three days, but not on 2000-01-04
   44 
   45 01/08/00:
   46  * Each Saturday since 2000-01-01
   47  * Each day since 2000-01-01
   48  * Same as "01/01/2000 [1] {1W}"
   49 EOD
   50 else
   51   ./run-test "$0"
   52 fi