mkdir $tmp || framework_failure=1
cd $tmp || framework_failure=1
mkdir foo bar || framework_failure=1
+mkdir -p a/b/c d || framework_failure=1
if test $framework_failure = 1; then
echo 'failure in testing framework'
# with the failed assertion from dirname.c.
cp -R --parents foo/ bar || fail=1
+# Exercise the make_path and re_protect code in cp.c.
+# FIXME: compare verbose output with expected output.
+cp --verbose -a --parents a/b/c d > /dev/null 2>&1 || fail=1
+test -d d/a/b/c || fail=1
+
+# FIXME: add tests to check that re_protect works
+
(exit $fail); exit