cat <<FILES
d $LOWER_DIR0/d1
d $LOWER_DIR0/d1/d2
-f $LOWER_DIR0/d1/.wh.x
-f $LOWER_DIR0/d1/d2/.wh.d3
+w $LOWER_DIR0 d1/x
+w $LOWER_DIR0 d1/d2/d3
FILES
}
function afterfiles_rw {
cat <<FILES
-f $LOWER_DIR0/.wh.d1
-f $LOWER_DIR0/.wh.y
+w $LOWER_DIR0 d1
+w $LOWER_DIR0 y
FILES
}
function afterfiles_ro {
cat <<FILES
-f $LOWER_DIR0/.wh.d1
-f $LOWER_DIR0/.wh.y
+w $LOWER_DIR0 d1
+w $LOWER_DIR0 y
FILES
}
##### simple tests
+init_odf $LOWER_DIR0 $LOWER_DIR1 $LOWER_DIR2
( directories ; beforefiles) | create_hierarchy
mount_union "" $LOWER_DIR0 $LOWER_DIR1 $LOWER_DIR2
rm -fr $MOUNTPOINT/y
unmount_union
-( directories ; afterfiles_rw ) | check_hierarchy $TOP_LOWER_DIR
+( directories ; afterfiles_rw ) | check_hierarchy
+discard_odf
echo -n "[rw] "
#### simple tests
+init_odf $LOWER_DIR0 $LOWER_DIR1=ro $LOWER_DIR2=ro
( directories ; beforefiles) | create_hierarchy
mount_union "" $LOWER_DIR0 $LOWER_DIR1=ro $LOWER_DIR2=ro
rm -fr $MOUNTPOINT/y
unmount_union
-( directories ; afterfiles_ro ) | check_hierarchy $TOP_LOWER_DIR
+( directories ; afterfiles_ro ) | check_hierarchy
+discard_odf
echo -n "[ro] "
complete_test