X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Ftest-imagex;h=c523b12d24f2e26f3b390d52e5e1efd4df17bd3c;hb=297e0855665e45708b114048e42befc4654cdbee;hp=234683e6a0d4e851f6f6ec8821857b89e0a3f30b;hpb=e485f32e610f77f15a298f62647d0cfb3cf8d11b;p=wimlib diff --git a/tests/test-imagex b/tests/test-imagex index 234683e6..c523b12d 100755 --- a/tests/test-imagex +++ b/tests/test-imagex @@ -18,7 +18,7 @@ cd $TEST_SUBDIR # Make test directory mkdir dir -cp $srcdir/src/*.c $srcdir/src/*.h dir +cp $srcdir/src/*.c dir mkdir dir/subdir echo 'hello' > dir/subdir/hello echo 'hello' > dir/subdir/hello2 @@ -175,7 +175,7 @@ if ! test "`imagex info dir.wim | grep 'Image Count' | awk '{print $3}'`" = 2; t fi echo "Testing appending WIM image with existing name (this should generate errors)" -if imagex append dir2 dir.wim; then +if imagex append dir2 dir.wim "dir"; then error "Adding duplicate image name didn't fail" fi echo "Testing appending WIM image with new name" @@ -190,7 +190,7 @@ if ! test "`imagex info dir.wim | grep Integrity | awk '{print $3}'`" = "yes"; t error "Integrity table not set correctly on image append" fi echo "Testing appending WIM image with no integrity check" -if ! imagex append dir2 dir.wim "newname3"; then +if ! imagex append dir2 dir.wim "newname3" --nocheck; then error "Appending WIM image failed" fi if ! test "`imagex info dir.wim | grep Integrity | awk '{print $3}'`" = "no"; then @@ -386,7 +386,7 @@ for flag in "--compress=none" "--compress=maximum" "--compress=fast"; do fi # Unsupported, should fail - if imagex info tmp.swm --boot 0; then + if imagex info tmp.swm --boot 1; then error "Should not have been able to change boot index of split WIM" fi echo "Joining the split WIMs and applying the result"