Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Add test if lzo2 is enabled to sparse-lzo-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Sep 28, 2013
1 parent 364a506 commit cb6d027
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/sparse-lzo-test
Expand Up @@ -7,6 +7,15 @@ TestName="sparse-lzo-test"
JobName=Sparse-lzo
. scripts/functions

#
# See if library is linked against liblzo2
#
cnt=`ldd ${bin}/libbareos.so 2>/dev/null | grep -c liblzo2`
if test ${cnt} -lt 1; then
echo "$TestName skipped: not linked for lzo2 compression"
exit 0
fi

cwd=`pwd`
scripts/cleanup
scripts/copy-test-confs
Expand Down

0 comments on commit cb6d027

Please sign in to comment.