mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Add some tests for INCLUDE functionality.
This commit is contained in:
1
tests/include_dir/01.rem
Normal file
1
tests/include_dir/01.rem
Normal file
@@ -0,0 +1 @@
|
||||
REM 15 MSG 01
|
||||
1
tests/include_dir/02.rem
Normal file
1
tests/include_dir/02.rem
Normal file
@@ -0,0 +1 @@
|
||||
REM 15 MSG 02
|
||||
1
tests/include_dir/03.notrem
Normal file
1
tests/include_dir/03.notrem
Normal file
@@ -0,0 +1 @@
|
||||
REM MSG IGNORE
|
||||
1
tests/include_dir_no_rems/03.notrem
Normal file
1
tests/include_dir_no_rems/03.notrem
Normal file
@@ -0,0 +1 @@
|
||||
REM MSG IGNORE
|
||||
5
tests/include_test.rem
Normal file
5
tests/include_test.rem
Normal file
@@ -0,0 +1,5 @@
|
||||
INCLUDE include_dir
|
||||
INCLUDE include_dir_no_rems
|
||||
INCLUDE nonexistent_include_dir
|
||||
|
||||
REM 15 MSG Whee!!!!
|
||||
@@ -11,6 +11,13 @@
|
||||
# Copyright (C) 1999-2000 Roaring Penguin Software Inc.
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
DIR=`dirname $0`
|
||||
cd $DIR
|
||||
if test $? != 0 ; then
|
||||
echo "Unable to cd $DIR" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TEST_GETENV="foo bar baz" ; export TEST_GETENV
|
||||
echo "Test 1" > ../tests/test.out
|
||||
echo "" >> ../tests/test.out
|
||||
@@ -37,6 +44,16 @@ echo "Test 7" >> ../tests/test.out
|
||||
echo "" >> ../tests/test.out
|
||||
../src/remind -p -b2 ../tests/test3.rem 1 aug 2007 >> ../tests/test.out
|
||||
|
||||
echo "Test 8" >> ../tests/test.out
|
||||
echo "" >> ../tests/test.out
|
||||
../src/remind -p -b2 ../tests/include_dir 1 aug 2007 >> ../tests/test.out
|
||||
|
||||
echo "Test 9" >> ../tests/test.out
|
||||
echo "" >> ../tests/test.out
|
||||
../src/remind -p -b2 ../tests/nonexistent_include_dir 1 aug 2007 >> ../tests/test.out 2>&1
|
||||
../src/remind -p -b2 ../tests/include_dir_no_rems 1 aug 2007 >> ../tests/test.out 2>&1
|
||||
../src/remind -p -b2 ../tests/include_test.rem 1 aug 2007 >> ../tests/test.out 2>&1
|
||||
|
||||
cmp -s ../tests/test.out ../tests/test.cmp
|
||||
if [ "$?" = "0" ]; then
|
||||
echo "Remind: Acceptance test PASSED"
|
||||
|
||||
@@ -1184,3 +1184,100 @@ September 30
|
||||
2007/08/01 * * 2205 780 Brown
|
||||
2007/08/01 * * 2925 780 Strange
|
||||
# rem2ps end
|
||||
Test 8
|
||||
|
||||
# rem2ps begin
|
||||
August 2007 31 3 0
|
||||
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
|
||||
July 31
|
||||
September 30
|
||||
2007/08/15 * * * * 01
|
||||
2007/08/15 * * * * 02
|
||||
# rem2ps end
|
||||
Test 9
|
||||
|
||||
Can't open file: ../tests/nonexistent_include_dir
|
||||
Error reading ../tests/nonexistent_include_dir: Can't open file
|
||||
# rem2ps begin
|
||||
August 2007 31 3 0
|
||||
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
|
||||
July 31
|
||||
September 30
|
||||
../tests/include_dir_no_rems: No files matching *.rem
|
||||
Error reading ../tests/include_dir_no_rems: No files matching *.rem
|
||||
# rem2ps begin
|
||||
August 2007 31 3 0
|
||||
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
|
||||
July 31
|
||||
September 30
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
../tests/include_test.rem(2): include_dir_no_rems: No files matching *.rem
|
||||
../tests/include_test.rem(3): Can't open file: nonexistent_include_dir
|
||||
# rem2ps begin
|
||||
August 2007 31 3 0
|
||||
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
|
||||
July 31
|
||||
September 30
|
||||
2007/08/15 * * * * 01
|
||||
2007/08/15 * * * * 02
|
||||
2007/08/15 * * * * Whee!!!!
|
||||
# rem2ps end
|
||||
|
||||
Reference in New Issue
Block a user