X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Ftest-imagex-mount;h=49585e8a7ec4d999ea078e5a2451ec2ed52162f0;hb=1c893605029270ae2b75ad1d90517aebdb78eb14;hp=d5bfbcadb6912fbff212ec0887b60a3e0e675c9b;hpb=4fa6320c11881c0999e046e073be2a6ff37a282c;p=wimlib diff --git a/tests/test-imagex-mount b/tests/test-imagex-mount index d5bfbcad..49585e8a 100755 --- a/tests/test-imagex-mount +++ b/tests/test-imagex-mount @@ -75,24 +75,24 @@ for flag in "--compress=none" "--compress=maximum" "--compress=fast"; do "loaded, or you aren't a member of the FUSE group?" fi echo "Testing extracting file from mounted read-only WIM" - if ! cp tmp/lz77.c lz77.c; then + if ! cp tmp/write.c write.c; then error "Failed to extract file from read-only mounted WIM" fi - if ! diff -q dir/lz77.c lz77.c; then + if ! diff -q dir/write.c write.c; then error "Extracted file does not match copy in mounted WIM" fi - if ! diff -q tmp/lz77.c dir/lz77.c; then + if ! diff -q tmp/write.c dir/write.c; then error "Extractef file does not match original" fi - rm -f lz77.c + rm -f write.c echo "Testing modifying mounted read-only WIM (should fail)" - if rm tmp/lz77.c; then + if rm tmp/write.c; then error "Removing file from read-only mounted WIM didn't fail" fi if touch tmp/newfile; then error "Creating file on read-only mounted WIM didn't fail" fi - if echo 3 > tmp/lz77.c; then + if echo 3 > tmp/write.c; then error "Writing to file on read-only mounted WIM didn't fail" fi echo "Testing diff of mounted read-only WIM with original directory" @@ -137,10 +137,10 @@ echo "Testing removing file from mounted WIM" if ! imagex mountrw dir.wim dir tmp; then error "Failed to re-mount test WIM read-write" fi -if ! rm tmp/lz77.c; then +if ! rm tmp/write.c; then error "Failed to remove file from read-write mounted WIM" fi -if test -f tmp/lz77.c; then +if test -f tmp/write.c; then error "Removing file from read-write mounted WIM failed" fi echo "Testing making directory in mounted WIM"