replace direct xattrtool path with $XATTR in metadata3 test script

Sun, 02 Jul 2023 11:11:04 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 02 Jul 2023 11:11:04 +0200
changeset 771
ffa493657381
parent 770
fcb243cb9950
child 772
ab26daccfb8d

replace direct xattrtool path with $XATTR in metadata3 test script

test/bin-test/test-dav-sync-metadata3.sh file | annotate | diff | comparison | revisions
--- 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

mercurial