From edeb6223fed8f5e5b4088d34007c3860c928906a Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 15 Apr 2016 14:10:23 +0200 Subject: tests: make tests more portable due to mtab Signed-off-by: Karel Zak --- tests/functions.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/functions.sh') diff --git a/tests/functions.sh b/tests/functions.sh index fe7ce6d7b..19e8a46b8 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -719,3 +719,13 @@ function ts_init_socket_to_file { ts_skip "socat socket stopped listening" fi } + +function ts_has_mtab_support { + grep -q '#define USE_LIBMOUNT_SUPPORT_MTAB' ${top_builddir}/config.h + if [ $? == 0 ]; then + echo "yes" + else + echo "no" + fi +} + -- cgit v1.2.3-55-g7522