UUID=$(uuidgen)
MOUNTPOINT="$TS_MOUNTPOINT"
+[ -x $TESTPROG ] || ts_skip "test not compiled"
+
modprobe --dry-run --quiet scsi_debug
[ "$?" == 0 ] || ts_skip "missing scsi_debug module"
UUID=$(uuidgen)
MOUNTPOINT="$TS_MOUNTPOINT"
+[ -x $TESTPROG ] || ts_skip "test not compiled"
+
modprobe --dry-run --quiet scsi_debug
[ "$?" == 0 ] || ts_skip "missing scsi_debug module"
TESTPROG="$TS_HELPER_LIBMOUNT_LOCK"
+[ -x $TESTPROG ] || ts_skip "test not compiled"
+
#
# Be careful with number of processes. Don't forget that there is time limit
# when the mount waits on the mtab lock. If you define too much processes some
TESTPROG="$TS_HELPER_LIBMOUNT_OPTSTR"
+[ -x $TESTPROG ] || ts_skip "test not compiled"
+
ts_init_subtest "append"
$TESTPROG --append "aaa,bbb=BBB,context=\"foo,bar,gogo\",ccc" "ddd" &> $TS_OUTPUT
ts_finalize_subtest
TESTPROG="$TS_HELPER_LIBMOUNT_TAB"
+[ -x $TESTPROG ] || ts_skip "test not compiled"
+
ts_init_subtest "parse-fstab"
$TESTPROG --parse "$TS_SELF/files/fstab" &> $TS_OUTPUT
sed -i -e 's/fs: 0x.*/fs:/g' $TS_OUTPUT
TESTPROG="$TS_HELPER_LIBMOUNT_TAB"
+[ -x $TESTPROG ] || ts_skip "test not compiled"
+
#
# Init device
#
TESTPROG="$TS_HELPER_LIBMOUNT_UPDATE"
+[ -x $TESTPROG ] || ts_skip "test not compiled"
+
# IMPORTANT notes:
#
# - the $TS_OUTPUT variable is between ts_init_subtest and ts_finalize_subtest
TESTPROG="$TS_HELPER_LIBMOUNT_UTILS"
+[ -x $TESTPROG ] || ts_skip "test not compiled"
+
ts_init_subtest "match-fstype"
$TESTPROG --match-fstype ext3 "ext2,ext3,cifs" &> $TS_OUTPUT
ts_finalize_subtest