X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Ftest-imagex;fp=tests%2Ftest-imagex;h=9c92715b1fca95a100939f7066088a632e535bf4;hb=8c8340effb447f9058f8227550ac368a4b442d23;hp=d36bf82f343fd15d5261b7db913d2c5f02c8bfb9;hpb=075e14ac8b227141bc68fec5486b0644dcab8013;p=wimlib diff --git a/tests/test-imagex b/tests/test-imagex index d36bf82f..9c92715b 100755 --- a/tests/test-imagex +++ b/tests/test-imagex @@ -65,6 +65,21 @@ for comp_type in None LZX XPRESS; do rm -rf dir.wim tmp done +# Test wimappend --create +rm -f dir.wim +if wimappend dir dir.wim; then + error "wimappend to nonexisting file unexpectedly succeeded" +fi +if ! wimappend dir dir.wim --create; then + error "wimappend --create to nonexisting file failed" +fi +if ! wimappend dir dir.wim --create; then + error "wimappend --create to existing file failed" +fi +if ! test "`wiminfo dir.wim | grep 'Image Count' | awk '{print $3}'`" = 2; then + error "Incorrect WIM image count after wimappend --create" +fi + # Capturing and modifying name, description, and bootable flag echo "Testing capture of WIM with default name and description"