X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Ftest-imagex;h=070aca365f5933e2983df2da42d55ed8ae341e66;hb=7d7e51b225eb2a74d26c089929aadffb1f0549c6;hp=77ae0872c62e4a08d9fbb980fc54aebb61e7d8eb;hpb=4464b1da1a79029a88bac8c1490b0be23c2451f0;p=wimlib diff --git a/tests/test-imagex b/tests/test-imagex index 77ae0872..070aca36 100755 --- a/tests/test-imagex +++ b/tests/test-imagex @@ -282,23 +282,6 @@ if test "`get_inode_number tmp/myname/write.c`" = "`get_inode_number tmp/dir/wri error "Incorrect inode number" fi rm -rf tmp -echo "Testing application of multiple images with hardlinks" -if ! imagex apply dir.wim all tmp --hardlink; then - error "Failed to apply multiple images with cross-image hardlinks" -fi -if ! diff -q -r tmp/dir tmp/myname || ! diff -q -r dir tmp/dir; then - error "Recursive diff of applied WIM with original directory failed" -fi -if test "`get_link_count tmp/dir/write.c`" != 2; then - error "Incorrect link count on extracted file" -fi -if test "`get_link_count tmp/myname/write.c`" != 2; then - error "Incorrect link count on extracted file" -fi -if test "`get_inode_number tmp/myname/write.c`" != "`get_inode_number tmp/dir/write.c`"; then - error "Incorrect inode number" -fi -rm -rf tmp echo "Testing application of single image containing identical files" if ! imagex apply dir.wim 1 tmp; then @@ -318,43 +301,6 @@ if test "`get_inode_number tmp/subdir/hello`" != "`get_inode_number tmp/subdir/h fi rm -rf tmp -echo "Testing application of single image containing identical files with hardlinks" -if ! imagex apply dir.wim 1 tmp --hardlink; then - error "Failed to apply WIM" -fi -if test "`get_link_count tmp/subdir/hello`" != 3; then - error "Incorrect link count on extracted file" -fi -if test "`get_link_count tmp/subdir/hello2`" != 3; then - error "Incorrect link count on extracted file" -fi -if test "`get_inode_number tmp/subdir/hello`" != "`get_inode_number tmp/subdir/hello2`"; then - error "Hard link set does not share inode number" -fi -if test "`get_inode_number tmp/subdir/hello`" != "`get_inode_number tmp/subdir/hellolink`"; then - error "Hard link set does not share inode number" -fi -rm -rf tmp - -echo "Testing application of single image containing identical files with symlinks" -if ! imagex apply dir.wim 1 tmp --symlink; then - error "Failed to apply WIM" -fi -if test "`get_link_count tmp/subdir/hello`" != 1; then - error "Incorrect link count on extracted file" -fi -if test "`get_link_count tmp/subdir/hello2`" != 1; then - error "Incorrect link count on extracted file" -fi -if test "`get_inode_number tmp/subdir/hello`" = "`get_inode_number tmp/subdir/hello2`"; then - error "Incorrect inode number" -fi -if ! test -L tmp/subdir/hello -o -L tmp/subdir/hello2 -o -L tmp/subdir/hellolink; then - error "Expected symlinks, but found non-symlinks" -fi -rm -rf dir.wim tmp - - # imagex split, imagex join echo "Creating random files to test WIM splitting on"