X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Ftest-imagex;h=466976737ce8d693a3ec020e815ddca418a259d5;hb=4f0d1a0407a25ecae2ad7b73597075bea810baf7;hp=94b697fdce5d40c68d94cd6ceb7103858193a398;hpb=0ce54d08c0b1c56f37ea2998acd6847da7ced8a2;p=wimlib diff --git a/tests/test-imagex b/tests/test-imagex index 94b697fd..46697673 100755 --- a/tests/test-imagex +++ b/tests/test-imagex @@ -5,7 +5,9 @@ set -e cd tests -. tests-common.sh +srcdir="${srcdir:-.}/.." +srcdir="$(cd $srcdir; pwd)" +. "$srcdir/tests/tests-common.sh" imagex() { echo "imagex $@" @@ -287,13 +289,13 @@ 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/lz.c`" != 1; then +if test "`get_link_count tmp/dir/lz77.c`" != 1; then error "Incorrect link count on extracted file" fi -if test "`get_link_count tmp/myname/lz.c`" != 1; then +if test "`get_link_count tmp/myname/lz77.c`" != 1; then error "Incorrect link count on extracted file" fi -if test "`get_inode_number tmp/myname/lz.c`" = "`get_inode_number tmp/dir/lz.c`"; then +if test "`get_inode_number tmp/myname/lz77.c`" = "`get_inode_number tmp/dir/lz77.c`"; then error "Incorrect inode number" fi rm -rf tmp @@ -304,13 +306,13 @@ 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/lz.c`" != 2; then +if test "`get_link_count tmp/dir/lz77.c`" != 2; then error "Incorrect link count on extracted file" fi -if test "`get_link_count tmp/myname/lz.c`" != 2; then +if test "`get_link_count tmp/myname/lz77.c`" != 2; then error "Incorrect link count on extracted file" fi -if test "`get_inode_number tmp/myname/lz.c`" != "`get_inode_number tmp/dir/lz.c`"; then +if test "`get_inode_number tmp/myname/lz77.c`" != "`get_inode_number tmp/dir/lz77.c`"; then error "Incorrect inode number" fi rm -rf tmp