-#!/bin/bash
+#!/usr/bin/env bash
# Test capturing and applying a WIM image in the normal (non-NTFS) capture mode
#
# Also, test if the capture configuration file works correctly.
set -e
-srcdir=${srcdir:-.}
-srcdir=`realpath $srcdir`
cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
+. "$srcdir/tests/tests-common.sh"
+
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