X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-imagex-update_and_extract;h=6c8771669c8c57c3b8fde78f74c1c19aec5240b0;hb=HEAD;hp=202371b1027de6d14121b293997b16f2d4e1dddf;hpb=e8db2c80ad428c536de564c9c29e1dc2893cafcb;p=wimlib diff --git a/tests/test-imagex-update_and_extract b/tests/test-imagex-update_and_extract index 202371b1..721954df 100755 --- a/tests/test-imagex-update_and_extract +++ b/tests/test-imagex-update_and_extract @@ -119,6 +119,26 @@ do_apply ../tree-cmp file out.dir/newname [ ! -e out.dir/file ] +prepare_empty_wim +msg "Testing UTF-16LE-NOBOM command update file" +echo -ne 'a\0d\0d\0 \0f\0i\0l\0e\0 \0/\0f\0i\0l\0e\0\n\0' \ + | wimupdate test.wim +do_apply +../tree-cmp file out.dir/file + +prepare_empty_wim +msg "Testing UTF-16LE-BOM command update file" +echo -ne '\xff\xfea\0d\0d\0 \0f\0i\0l\0e\0 \0/\0f\0i\0l\0e\0\n\0' \ + | wimupdate test.wim +do_apply +../tree-cmp file out.dir/file + +prepare_empty_wim +msg "Testing UTF-8-BOM command update file" +echo -ne '\xef\xbb\xbfadd file /file' | wimupdate test.wim +do_apply +../tree-cmp file out.dir/file + prepare_empty_wim msg "Testing adding, then renaming file in WIM image in one command" wimupdate test.wim << EOF @@ -225,6 +245,16 @@ wimextract test.wim 1 @pathlist --dest-dir=out.dir ../tree-cmp hello2 out.dir/hello2 [ ! -e out.dir/otherfile ] +msg "Testing path list extract (stdin)" +rm -rf out.dir +wimextract test.wim 1 @- --dest-dir=out.dir << EOF +hello1 +hello2 +EOF +../tree-cmp hello1 out.dir/hello1 +../tree-cmp hello2 out.dir/hello2 +[ ! -e out.dir/otherfile ] + msg "Testing path list extract (w/ wildcard)" cat > pathlist << EOF hello*