X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex;h=fcbf5406fb2b4a2cc4eb5fcb3726d033db5da233;hp=85c17b4d6219470d530e29ef00e01c2f8f8da8c1;hb=a3c53f0d3e2ea2267ca89caf100cd41adfabd556;hpb=63a5804943519281f206ca0fefacfe2b99fc9958 diff --git a/tests/test-imagex b/tests/test-imagex index 85c17b4d..fcbf5406 100755 --- a/tests/test-imagex +++ b/tests/test-imagex @@ -1,12 +1,12 @@ -#!/bin/sh +#!/bin/bash # This script does some sanity testing of the 'imagex' program. It by no means # tests every aspect of wimlib comprehensively. set -e -srcdir=${srcdir:-.} -srcdir=`realpath $srcdir` cd tests +srcdir="${srcdir:-.}/.." +srcdir="$(cd $srcdir; pwd)" imagex() { echo "imagex $@" @@ -19,7 +19,6 @@ imagex_info() { } cleanup() { - fusermount -u tmp &> /dev/null || true rm -rf dir* tmp* *.wim *.swm } cleanup @@ -77,7 +76,7 @@ for comp_type in None LZX XPRESS; do if ! test "`readlink tmp/subdir/rel_symlink`" = "hello"; then error "Symlink target not correct" fi - + rm -rf dir.wim tmp done @@ -488,7 +487,7 @@ fi # We try with 5 different combinations of compression types to make sure we go # through all paths in the resource-handling code. for i in `seq 1 3`; do - case $i in + case $i in 1) cflag1="--compress=none"; cflag2="--compress=none";