X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex;h=a0b88a9658e948c7f452d972622aae07ed15621a;hp=33c58dbf3048f7837fd0ae922dc1814478d8ba27;hb=a05f5ab4d86d5c66896525186fd7482921d5ea9e;hpb=40de13bf883e1cc67612a6d36a02fd76ee2853d0 diff --git a/tests/test-imagex b/tests/test-imagex index 33c58dbf..a0b88a96 100755 --- a/tests/test-imagex +++ b/tests/test-imagex @@ -3,13 +3,13 @@ # This script does some sanity testing of the 'imagex' program. It by no means # tests every aspect of wimlib comprehensively. -# Assume an in-tree build. set -e +srcdir=`realpath $srcdir` cd tests imagex() { echo "imagex $@" - ../imagex $@ + ../imagex $@ } cleanup() { @@ -24,7 +24,7 @@ rm -rf tmp || true # Make test directory mkdir dir -cp ../src/*.c ../src/*.h dir +cp $srcdir/src/*.c $srcdir/src/*.h dir mkdir dir/subdir echo 'hello' > dir/subdir/hello echo 'hello' > dir/subdir/hello2