# HG changeset patch # User Olaf Wintermann # Date 1688289064 -7200 # Node ID ffa493657381a9583f821eecf5f6e250ec347f6e # Parent fcb243cb99501110ece8d2b191950cb75c16af31 replace direct xattrtool path with $XATTR in metadata3 test script diff -r fcb243cb9950 -r ffa493657381 test/bin-test/test-dav-sync-metadata3.sh --- a/test/bin-test/test-dav-sync-metadata3.sh Sun Jul 02 11:08:08 2023 +0200 +++ b/test/bin-test/test-dav-sync-metadata3.sh Sun Jul 02 11:11:04 2023 +0200 @@ -109,7 +109,7 @@ $DAV_SYNC_BIN add-tag -s test4a tmp-sync/test4a/file1 test1 # add xattr -../../build/xattrtool set tmp-sync/test4a/file1 attr1 testvalue +$XATTR set tmp-sync/test4a/file1 attr1 testvalue # set mtime touch -t 01011200 tmp-sync/test4a/file1 @@ -142,7 +142,7 @@ exit 2 fi -OUT=`../../build/xattrtool get tmp-sync/test4b/file1 attr1 2> /dev/null` +OUT=`$XATTR get tmp-sync/test4b/file1 attr1 2> /dev/null` if [ "$OUT" != "testvalue" ]; then echo "test 1: xattr not synced" exit 2 @@ -275,7 +275,7 @@ check_tmpout "mytag" "test 5: tag mytag missing" check_tmpout "test1" "test 5: tag test1 missing" -OUT=`../../build/xattrtool get tmp-sync/test4b/move1 attr1 2> /dev/null` +OUT=`$XATTR get tmp-sync/test4b/move1 attr1 2> /dev/null` if [ "$OUT" != "testvalue" ]; then echo "test 5: xattr not synced" exit 2 @@ -314,7 +314,7 @@ exit 2 fi -OUT=`../../build/xattrtool get tmp-sync/test4b/move1 attr1 2> /dev/null` +OUT=`$XATTR get tmp-sync/test4b/move1 attr1 2> /dev/null` if [ "$OUT" = "testvalue" ]; then echo "test 6: xattr not synced" exit 2 @@ -348,12 +348,12 @@ check_tmpout "0 errors" "test 7: wrong error counter (pull)" # check metadata -OUT=`../../build/xattrtool get tmp-sync/test4b/newdir1 dirattribute1 2> /dev/null` +OUT=`$XATTR get tmp-sync/test4b/newdir1 dirattribute1 2> /dev/null` if [ "$OUT" != "test7attribute" ]; then echo "test 7: xattr 1 not synced" exit 2 fi -OUT=`../../build/xattrtool get tmp-sync/test4b/newdir1 dirattribute2 2> /dev/null` +OUT=`$XATTR get tmp-sync/test4b/newdir1 dirattribute2 2> /dev/null` if [ "$OUT" != "directory" ]; then echo "test 7: xattr 1 not synced" exit 2 @@ -410,17 +410,17 @@ check_tmpout "update" "test 9: no mkcol (oull)" # check metadata -OUT=`../../build/xattrtool get tmp-sync/test4b/newdir1 dirattribute1 2> /dev/null` +OUT=`$XATTR get tmp-sync/test4b/newdir1 dirattribute1 2> /dev/null` if [ "$OUT" != "test9attribute" ]; then echo "test 9: xattr 1 not synced" exit 2 fi -OUT=`../../build/xattrtool get tmp-sync/test4b/newdir1 dirattribute2 2> /dev/null` +OUT=`$XATTR get tmp-sync/test4b/newdir1 dirattribute2 2> /dev/null` if [ "$OUT" != "directory" ]; then echo "test 9: xattr 2 not synced" exit 2 fi -OUT=`../../build/xattrtool get tmp-sync/test4b/newdir1 new 2> /dev/null` +OUT=`$XATTR get tmp-sync/test4b/newdir1 new 2> /dev/null` if [ "$OUT" != "hello" ]; then echo "test 9: xattr 3 not synced" exit 2