# Also, test if the capture configuration file works correctly.
set -e
-srcdir=${srcdir:-.}
-srcdir=`realpath $srcdir`
cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
imagex() {
echo "imagex $@"
# Can we split the WIM, apply the split WIM, join the split WIM,
# and apply the joined WIM, and get the same results every time?
- if ! imagex split test.wim test.swm 0.01M; then
+ if ! imagex split test.wim test.swm 0.01; then
error "Failed to split WIM"
fi
if ! imagex apply test.swm 1 out.dir --ref "test*.swm" ; then
done
}
-msg() {
+__msg() {
echo "--------------------------------------------------------------------"
- echo "Testing image capture and application of directory containing $1"
+ echo $1
echo "--------------------------------------------------------------------"
}
+msg() {
+ __msg "Testing image capture and application of directory containing $1"
+}
+
cleanup
init
-. common_tests.sh
+. $srcdir/tests/common_tests.sh
# Make sure exclusion list works
-msg "Testing default capture configuration file"
+__msg "Testing default capture configuration file"
touch in.dir/hiberfil.sys
mkdir -p "in.dir/System Volume Information/subdir"
imagex capture in.dir test.wim