From: Alain Spineux Date: Wed, 31 May 2023 13:55:16 +0000 (+0200) Subject: regress: in acl-xattr-test check if client is linked with libacl X-Git-Tag: Beta-15.0.0~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40809227a9b9c0bf401cf4288895e9384375eed0;p=thirdparty%2Fbacula.git regress: in acl-xattr-test check if client is linked with libacl --- diff --git a/regress/tests/acl-xattr-test b/regress/tests/acl-xattr-test index 2d09add5c..88375ac1d 100755 --- a/regress/tests/acl-xattr-test +++ b/regress/tests/acl-xattr-test @@ -49,6 +49,13 @@ case `uname -s` in echo "$TestName skipped: getfattr not installed" exit 0 fi + + # Require bacula-fd to be linked with libacl else check the configure ouput + ldd ${bin}/bacula-fd | grep libacl 2>&1 >/dev/null + if test $? -ne 0; then + echo "$TestName skipped: client is not linked with libacl" + exit 0 + fi ;; Darwin) ;; @@ -93,8 +100,8 @@ scripts/copy-confs outf="tmp/sed_tmp" echo "s% Schedule =%# Schedule =%g" > $outf echo "s/Options {/Options { aclsupport=yes; xattrsupport = yes/" >> $outf -cp ${cwd}/bin/bacula-dir.conf $cwd/tmp/1 -sed -f ${outf} ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf +cp ${conf}/bacula-dir.conf $cwd/tmp/1 +sed -f ${outf} ${cwd}/tmp/1 >${conf}/bacula-dir.conf d=${cwd}/build/acl