summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-12-22 00:48:01 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-12-22 01:06:20 +0100
commitc054182890b5a2145d457d8ecade200d851e95fd (patch)
tree8db4e71e46c06cb04b462b6bfe2910c6590bfd5f
parent0cda64a2347bce5f07167e1085792e067e495374 (diff)
downloadcalcurse-c054182890b5a2145d457d8ecade200d851e95fd.zip
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 <calcurse@cryptocrack.de>
-rwxr-xr-xtest/appointment-001.sh2
-rwxr-xr-xtest/day-002.sh2
-rwxr-xr-xtest/day-003.sh2
-rwxr-xr-xtest/next-001.sh2
-rwxr-xr-xtest/range-001.sh2
-rwxr-xr-xtest/range-002.sh2
-rwxr-xr-xtest/range-003.sh2
-rwxr-xr-xtest/search-001.sh2
8 files changed, 8 insertions, 8 deletions
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