# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-TS_COMPONENT="mount"
-TS_DESC="devname"
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by devname"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="fstab"
-TS_DESC="devname"
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by devname (fstab)"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="fstab"
-TS_DESC="devname2label"
-
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by devname (fstab label)"
LABEL="testMountD2L"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="fstab"
-TS_DESC="devname2uuid"
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by devname (fstab uuid)"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="fstab"
-TS_DESC="label"
-
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by label (fstab)"
LABEL="testFstabLabel"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="fstab"
-TS_DESC="label2devname"
-
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by label (fstab devname)"
LABEL="testMountL2D"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="fstab"
-TS_DESC="label2uuid"
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by label (fstab uuid)"
LABEL="testMountL2U"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-TS_COMPONENT="fstab"
-TS_DESC="symlink"
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by devname (fstab symlink)"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
set -o pipefail
-LINKNAME="$(pwd)/$TS_OUTDIR/${TS_NS}_lnk"
+LINKNAME="$TS_OUTDIR/${TS_TESTNAME}_lnk"
DEVICE=$(ts_device_init)
[ "$?" == 0 ] || ts_die "Cannot init device"
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="fstab"
-TS_DESC="uuid"
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by uuid (fstab)"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="fstab"
-TS_DESC="uuid2devname"
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by uuid (fstab devname)"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="fstab"
-TS_DESC="uuid2label"
-
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by uuid (fstab label)"
LABEL="testMountU2L"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="mount"
-TS_DESC="label"
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by label"
LABEL="testMountLabel"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="mount"
-TS_DESC="move "
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="move"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
-PWD=$(pwd)
-
-DIR_SRC="$PWD/$TS_OUTDIR/mnt-move-src"
-DIR_A="$PWD/$TS_OUTDIR/mnt-move-A"
-DIR_B="$PWD/$TS_OUTDIR/mnt-move-B"
+DIR_SRC="$TS_OUTDIR/mnt-move-src"
+DIR_A="$TS_OUTDIR/mnt-move-A"
+DIR_B="$TS_OUTDIR/mnt-move-B"
[ -d $DIR_SRC ] || mkdir $DIR_SRC
[ -d $DIR_A ] || mkdir $DIR_A
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="mount"
-TS_DESC="mtablock"
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="mtab lock"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="mount"
+TS_TOPDIR="$(dirname $0)/../.."
TS_DESC="non canonical path"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
-if [ ! -e "/etc" ]; then
- ts_skip "/etc not such file of directory"
-fi
+[ ! -e "/etc" ] && ts_skip "/etc not such file of directory"
# Don't canonicalize SPEC for cifs, nfs, smbfs, ...
$TS_CMD_MOUNT -v -v -v -f -i -n -t cifs //etc /foo | grep "spec:" >> $TS_OUTPUT 2>&1
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
-. ./commands.sh
-. ./functions.sh
-TS_COMPONENT="mount"
+TS_TOPDIR="$(dirname $0)/../.."
TS_DESC="basic paths"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
$TS_CMD_MOUNT -n -f -v -v -v /dev/dummy /mnt &> $TS_OUTPUT
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="mount"
+TS_TOPDIR="$(dirname $0)/../.."
TS_DESC="remount"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="mount"
-TS_DESC="special program"
-
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="call mount.<type>"
MOUNTER="/sbin/mount.mytest"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="mount"
-TS_DESC="uuid"
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="by uuid"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
ts_skip_nonroot