From c054182890b5a2145d457d8ecade200d851e95fd Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 22 Dec 2012 00:48:01 +0100 Subject: test/: Do not error out if libfaketime is missing If the faketime library is missing, show a warning and skip the test. However, do not error out to make sure the test suite is able to terminate successfully on systems without libfaketime. Signed-off-by: Lukas Fleischer --- test/appointment-001.sh | 2 +- test/day-002.sh | 2 +- test/day-003.sh | 2 +- test/next-001.sh | 2 +- test/range-001.sh | 2 +- test/range-002.sh | 2 +- test/range-003.sh | 2 +- test/search-001.sh | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'test') diff --git a/test/appointment-001.sh b/test/appointment-001.sh index 27813b3..ad811a3 100755 --- a/test/appointment-001.sh +++ b/test/appointment-001.sh @@ -2,7 +2,7 @@ if [ ! -x "$(command -v faketime)" ]; then echo "libfaketime not found - skipping $0..." - exit 1 + exit 0 fi if [ "$1" = 'actual' ]; then diff --git a/test/day-002.sh b/test/day-002.sh index 66ebabd..3f984c6 100755 --- a/test/day-002.sh +++ b/test/day-002.sh @@ -2,7 +2,7 @@ if [ ! -x "$(command -v faketime)" ]; then echo "libfaketime not found - skipping $0..." - exit 1 + exit 0 fi if [ "$1" = 'actual' ]; then diff --git a/test/day-003.sh b/test/day-003.sh index 7534cd8..baccc93 100755 --- a/test/day-003.sh +++ b/test/day-003.sh @@ -2,7 +2,7 @@ if [ ! -x "$(command -v faketime)" ]; then echo "libfaketime not found - skipping $0..." - exit 1 + exit 0 fi if [ "$1" = 'actual' ]; then diff --git a/test/next-001.sh b/test/next-001.sh index 85ebd63..04b0bf2 100755 --- a/test/next-001.sh +++ b/test/next-001.sh @@ -2,7 +2,7 @@ if [ ! -x "$(command -v faketime)" ]; then echo "libfaketime not found - skipping $0..." - exit 1 + exit 0 fi if [ "$1" = 'actual' ]; then diff --git a/test/range-001.sh b/test/range-001.sh index 8f23876..fa093d8 100755 --- a/test/range-001.sh +++ b/test/range-001.sh @@ -2,7 +2,7 @@ if [ ! -x "$(command -v faketime)" ]; then echo "libfaketime not found - skipping $0..." - exit 1 + exit 0 fi if [ "$1" = 'actual' ]; then diff --git a/test/range-002.sh b/test/range-002.sh index 0610017..5c28eaf 100755 --- a/test/range-002.sh +++ b/test/range-002.sh @@ -2,7 +2,7 @@ if [ ! -x "$(command -v faketime)" ]; then echo "libfaketime not found - skipping $0..." - exit 1 + exit 0 fi if [ "$1" = 'actual' ]; then diff --git a/test/range-003.sh b/test/range-003.sh index a291208..cec7a43 100755 --- a/test/range-003.sh +++ b/test/range-003.sh @@ -2,7 +2,7 @@ if [ ! -x "$(command -v faketime)" ]; then echo "libfaketime not found - skipping $0..." - exit 1 + exit 0 fi if [ "$1" = 'actual' ]; then diff --git a/test/search-001.sh b/test/search-001.sh index 2d8f7e8..cd0a7ff 100755 --- a/test/search-001.sh +++ b/test/search-001.sh @@ -2,7 +2,7 @@ if [ ! -x "$(command -v faketime)" ]; then echo "libfaketime not found - skipping $0..." - exit 1 + exit 0 fi if [ "$1" = 'actual' ]; then -- cgit v1.2.3-54-g00ecf