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>
This commit is contained in:
Lukas Fleischer 2012-12-22 00:48:01 +01:00
parent 0cda64a234
commit c054182890
8 changed files with 8 additions and 8 deletions

View File

@ -2,7 +2,7 @@
if [ ! -x "$(command -v faketime)" ]; then if [ ! -x "$(command -v faketime)" ]; then
echo "libfaketime not found - skipping $0..." echo "libfaketime not found - skipping $0..."
exit 1 exit 0
fi fi
if [ "$1" = 'actual' ]; then if [ "$1" = 'actual' ]; then

View File

@ -2,7 +2,7 @@
if [ ! -x "$(command -v faketime)" ]; then if [ ! -x "$(command -v faketime)" ]; then
echo "libfaketime not found - skipping $0..." echo "libfaketime not found - skipping $0..."
exit 1 exit 0
fi fi
if [ "$1" = 'actual' ]; then if [ "$1" = 'actual' ]; then

View File

@ -2,7 +2,7 @@
if [ ! -x "$(command -v faketime)" ]; then if [ ! -x "$(command -v faketime)" ]; then
echo "libfaketime not found - skipping $0..." echo "libfaketime not found - skipping $0..."
exit 1 exit 0
fi fi
if [ "$1" = 'actual' ]; then if [ "$1" = 'actual' ]; then

View File

@ -2,7 +2,7 @@
if [ ! -x "$(command -v faketime)" ]; then if [ ! -x "$(command -v faketime)" ]; then
echo "libfaketime not found - skipping $0..." echo "libfaketime not found - skipping $0..."
exit 1 exit 0
fi fi
if [ "$1" = 'actual' ]; then if [ "$1" = 'actual' ]; then

View File

@ -2,7 +2,7 @@
if [ ! -x "$(command -v faketime)" ]; then if [ ! -x "$(command -v faketime)" ]; then
echo "libfaketime not found - skipping $0..." echo "libfaketime not found - skipping $0..."
exit 1 exit 0
fi fi
if [ "$1" = 'actual' ]; then if [ "$1" = 'actual' ]; then

View File

@ -2,7 +2,7 @@
if [ ! -x "$(command -v faketime)" ]; then if [ ! -x "$(command -v faketime)" ]; then
echo "libfaketime not found - skipping $0..." echo "libfaketime not found - skipping $0..."
exit 1 exit 0
fi fi
if [ "$1" = 'actual' ]; then if [ "$1" = 'actual' ]; then

View File

@ -2,7 +2,7 @@
if [ ! -x "$(command -v faketime)" ]; then if [ ! -x "$(command -v faketime)" ]; then
echo "libfaketime not found - skipping $0..." echo "libfaketime not found - skipping $0..."
exit 1 exit 0
fi fi
if [ "$1" = 'actual' ]; then if [ "$1" = 'actual' ]; then

View File

@ -2,7 +2,7 @@
if [ ! -x "$(command -v faketime)" ]; then if [ ! -x "$(command -v faketime)" ]; then
echo "libfaketime not found - skipping $0..." echo "libfaketime not found - skipping $0..."
exit 1 exit 0
fi fi
if [ "$1" = 'actual' ]; then if [ "$1" = 'actual' ]; then