X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex;h=a0b88a9658e948c7f452d972622aae07ed15621a;hp=2c729cb4b468d4077e153d6f4bfc7542af3a30da;hb=a05f5ab4d86d5c66896525186fd7482921d5ea9e;hpb=5ab1d0645f63d09334d1b2573e36c033d078f4f2 diff --git a/tests/test-imagex b/tests/test-imagex index 2c729cb4..a0b88a96 100755 --- a/tests/test-imagex +++ b/tests/test-imagex @@ -3,8 +3,8 @@ # 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() { @@ -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