From: Karel Zak Date: Thu, 26 Jan 2012 14:00:42 +0000 (+0100) Subject: tests: add valgrind to libmount context tests X-Git-Tag: v2.21-rc2~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=801d457ee4bbeb6a6ec3591788820647ad008245;p=thirdparty%2Futil-linux.git tests: add valgrind to libmount context tests Signed-off-by: Karel Zak --- diff --git a/tests/ts/libmount/context b/tests/ts/libmount/context index 5a01caebc1..c8f2850a85 100755 --- a/tests/ts/libmount/context +++ b/tests/ts/libmount/context @@ -60,14 +60,14 @@ export LIBMOUNT_MTAB=$TS_OUTPUT.mtab ts_init_subtest "mount-by-devname" mkdir -p $MOUNTPOINT &> /dev/null -$TESTPROG --mount $DEVICE $MOUNTPOINT >> $TS_OUTPUT 2>&1 +ts_valgrind $TESTPROG --mount $DEVICE $MOUNTPOINT >> $TS_OUTPUT 2>&1 grep -q $DEVICE $LIBMOUNT_MTAB || \ echo "(by device) cannot find $DEVICE in $LIBMOUNT_MTAB" >> $TS_OUTPUT 2>&1 ts_finalize_subtest ts_init_subtest "umount-by-devname" -$TESTPROG --umount $DEVICE >> $TS_OUTPUT 2>&1 +ts_valgrind $TESTPROG --umount $DEVICE >> $TS_OUTPUT 2>&1 grep -q $DEVICE $LIBMOUNT_MTAB && echo "umount (device) failed: found $DEVICE in $LIBMOUNT_MTAB" >> $TS_OUTPUT 2>&1 ts_finalize_subtest @@ -76,14 +76,14 @@ ts_finalize_subtest ts_init_subtest "mount-by-label" mkdir -p $MOUNTPOINT &> /dev/null -$TESTPROG --mount LABEL="$LABEL" $MOUNTPOINT >> $TS_OUTPUT 2>&1 +ts_valgrind $TESTPROG --mount LABEL="$LABEL" $MOUNTPOINT >> $TS_OUTPUT 2>&1 grep -q $DEVICE $LIBMOUNT_MTAB || \ echo "(by label) cannot find $DEVICE in $LIBMOUNT_MTAB" >> $TS_OUTPUT 2>&1 ts_finalize_subtest ts_init_subtest "umount-by-mountpoint" -$TESTPROG --umount $MOUNTPOINT >> $TS_OUTPUT 2>&1 +ts_valgrind $TESTPROG --umount $MOUNTPOINT >> $TS_OUTPUT 2>&1 grep -q $DEVICE $LIBMOUNT_MTAB && \ echo "umount (mountpoint) failed: found $DEVICE in $LIBMOUNT_MTAB" >> $TS_OUTPUT 2>&1 ts_finalize_subtest @@ -91,10 +91,10 @@ ts_finalize_subtest ts_init_subtest "mount-by-uuid" mkdir -p $MOUNTPOINT &> /dev/null -$TESTPROG --mount UUID="$UUID" $MOUNTPOINT >> $TS_OUTPUT 2>&1 +ts_valgrind $TESTPROG --mount UUID="$UUID" $MOUNTPOINT >> $TS_OUTPUT 2>&1 grep -q $DEVICE $LIBMOUNT_MTAB || \ echo "(by uuid) cannot find $DEVICE in $LIBMOUNT_MTAB" >> $TS_OUTPUT 2>&1 -$TESTPROG --umount $MOUNTPOINT >> $TS_OUTPUT 2>&1 +ts_valgrind $TESTPROG --umount $MOUNTPOINT >> $TS_OUTPUT 2>&1 grep -q $DEVICE $LIBMOUNT_MTAB && echo "umount failed: found $DEVICE in $LIBMOUNT_MTAB" >> $TS_OUTPUT 2>&1 ts_finalize_subtest @@ -102,15 +102,15 @@ ts_finalize_subtest ts_init_subtest "mount-flags" mkdir -p $MOUNTPOINT &> /dev/null -$TESTPROG --mount -o ro,noexec,nosuid,strictatime $DEVICE $MOUNTPOINT >> $TS_OUTPUT 2>&1 +ts_valgrind $TESTPROG --mount -o ro,noexec,nosuid,strictatime $DEVICE $MOUNTPOINT >> $TS_OUTPUT 2>&1 $TS_CMD_FINDMNT --kernel $MOUNTPOINT -o VFS-OPTIONS -n >> $TS_OUTPUT 2>&1 grep -q $DEVICE $LIBMOUNT_MTAB || \ echo "cannot find $DEVICE in $LIBMOUNT_MTAB" >> $TS_OUTPUT 2>&1 -$TESTPROG --mount -o remount,rw $MOUNTPOINT >> $TS_OUTPUT 2>&1 +ts_valgrind $TESTPROG --mount -o remount,rw $MOUNTPOINT >> $TS_OUTPUT 2>&1 $TS_CMD_FINDMNT --kernel $MOUNTPOINT -o VFS-OPTIONS -n >> $TS_OUTPUT 2>&1 -$TESTPROG --umount $MOUNTPOINT >> $TS_OUTPUT 2>&1 +ts_valgrind $TESTPROG --umount $MOUNTPOINT >> $TS_OUTPUT 2>&1 grep -q $DEVICE $LIBMOUNT_MTAB && echo "umount failed: found $DEVICE in $LIBMOUNT_MTAB" >> $TS_OUTPUT 2>&1 ts_finalize_subtest @@ -120,10 +120,10 @@ ts_init_subtest "mount-loopdev" mkdir -p $MOUNTPOINT &> /dev/null img=$(ts_image_init) mkfs.ext3 -F $img &> /dev/null -$TESTPROG --mount -o loop $img $MOUNTPOINT >> $TS_OUTPUT 2>&1 +ts_valgrind $TESTPROG --mount -o loop $img $MOUNTPOINT >> $TS_OUTPUT 2>&1 grep -q $MOUNTPOINT $LIBMOUNT_MTAB || \ echo "(loopdev) cannot find $MOUNTPOINT in $LIBMOUNT_MTAB" >> $TS_OUTPUT 2>&1 -$TESTPROG --umount $MOUNTPOINT >> $TS_OUTPUT 2>&1 +ts_valgrind $TESTPROG --umount $MOUNTPOINT >> $TS_OUTPUT 2>&1 grep -q $MOUNTPOINT $LIBMOUNT_MTAB && echo "umount failed: found $MOUNTPOINT in $LIBMOUNT_MTAB" >> $TS_OUTPUT 2>&1 ts_finalize_subtest