Signed-off-by: Karel Zak <kzak@redhat.com>
ts-cramfs-mkfs \
ts-look-separator \
ts-login-checktty \
- ts-hwclock-systohc
+ ts-hwclock-systohc \
+ ts-mount-special
distclean-local:
rm -rf output diff
--- /dev/null
+DEBUG: fstab path: "/etc/fstab"
+DEBUG: lock path: "/etc/mtab~"
+DEBUG: temp path: "/etc/mtab.tmp"
+DEBUG: spec: "/foo"
+DEBUG: node: "/bar"
+DEBUG: types: "mytest"
+DEBUG: opts: "(null)"
+DEBUG: external mount: argv[0] = "/sbin/mount.mytest"
+DEBUG: external mount: argv[1] = "/foo"
+DEBUG: external mount: argv[2] = "/bar"
+DEBUG: external mount: argv[3] = "-o"
+DEBUG: external mount: argv[4] = "rw"
+/sbin/mount.mytest called with "/foo /bar -o rw"
--- /dev/null
+#!/bin/bash
+
+#
+# test for /sbin/mount.<type> suuport
+#
+
+. commands.sh
+. functions.sh
+
+TS_COMPONENT="mount"
+TS_DESC="special program"
+
+MOUNTER="/sbin/mount.mytest"
+
+ts_init
+
+touch $TS_OUTPUT
+
+if [ $UID != 0 ]; then
+ ts_skip "not root permissions"
+fi
+
+cat > $MOUNTER << EOF
+#!/bin/bash
+# This util-linux-ng regression test component
+# It's safe to remove me...
+#
+echo "\$0 called with \"\$*\""
+EOF
+chmod +x $MOUNTER
+
+$TS_CMD_MOUNT --debug=2 -t mytest /foo /bar &> $TS_OUTPUT
+
+rm -f $MOUNTER
+
+ts_finalize
+