X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Ftest-imagex-ntfs;h=f22198fb71e4f1c49cc8407f61fb5b1f00132cd5;hb=7a3c99e3ea8add3fe2eaca37cb53ba4c61500d28;hp=4fd1baa1145926328e98f1e4f186d3419729faf6;hpb=ccaeb7b1b39754f82a084ff7d9307962d8142339;p=wimlib diff --git a/tests/test-imagex-ntfs b/tests/test-imagex-ntfs index 4fd1baa1..f22198fb 100755 --- a/tests/test-imagex-ntfs +++ b/tests/test-imagex-ntfs @@ -12,7 +12,7 @@ set -e cd tests srcdir="${srcdir:-.}/.." srcdir="$(cd $srcdir; pwd)" -. "$srcdir/tests/tests-common.sh" +. "$srcdir/tests/test_utils.sh" TEST_SUBDIR=tmpdir_test-imagex-ntfs @@ -195,15 +195,15 @@ do_test 'echo -n > file; msg "file with empty named data stream and non-empty unnamed data stream" do_test 'echo 1 > file; - setfattr -n user.ads -v "" file;' + setfattr -n user.ads -v 0x file;' msg "file with empty named data stream and empty unnamed data stream" do_test 'echo -n > file; - setfattr -n user.ads -v "" file;' + setfattr -n user.ads -v 0x file;' msg "file with named data stream with hardlink" do_test 'echo 999 > file; - setfattr -n user.ads -v "888" file; + setfattr -n user.ads -v 0x123456 file; ln file link;' msg "C source code of wimlib" @@ -213,6 +213,12 @@ msg "file with security descriptor" do_test 'touch file; setfattr -n system.ntfs_acl -v 0s`cat $srcdir/tests/security_descriptor_1.base64` file' +msg "file with object ID" +do_test 'touch file; + touch file2; + setfattr -n system.ntfs_object_id -v 0x15ac83a36dc6cf8ec459b8017dd8626f file + setfattr -n system.ntfs_object_id -v 0xf67394c12b17608e1d050d181ba8ffd27df80cbdf620f4c82c79b9e6799147b697621aff72915ade05abb96b15dea1a3e0bda4caa9e33cfd461c92c16be9713d file2' + msg "files with different security descriptors" do_test 'touch file; touch file2;