diff options
author | Karel Zak | 2010-10-19 11:44:30 +0200 |
---|---|---|
committer | Karel Zak | 2011-01-03 12:28:45 +0100 |
commit | f27feed36e589191622c444f7c19a2e4d6cbe51a (patch) | |
tree | 04185fb256adea13c65a4be3324f0f3fe8ae01d6 /tests/ts/libmount/utils | |
parent | tests: add libmount tags tests (diff) | |
download | kernel-qcow2-util-linux-f27feed36e589191622c444f7c19a2e4d6cbe51a.tar.gz kernel-qcow2-util-linux-f27feed36e589191622c444f7c19a2e4d6cbe51a.tar.xz kernel-qcow2-util-linux-f27feed36e589191622c444f7c19a2e4d6cbe51a.zip |
tests: add libmount utils.c tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/libmount/utils')
-rwxr-xr-x | tests/ts/libmount/utils | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/tests/ts/libmount/utils b/tests/ts/libmount/utils new file mode 100755 index 000000000..e06c9b9cd --- /dev/null +++ b/tests/ts/libmount/utils @@ -0,0 +1,77 @@ +#!/bin/bash + +# Copyright (C) 2010 Karel Zak <kzak@redhat.com> + +TS_TOPDIR="$(dirname $0)/../.." +TS_DESC="utils" + +. $TS_TOPDIR/functions.sh +ts_init "$*" + +TESTPROG="$TS_HELPER_LIBMOUNT_UTILS" + +ts_init_subtest "match-fstype" +$TESTPROG --match-fstype ext3 "ext2,ext3,cifs" &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "match-fstype-neg" +$TESTPROG --match-fstype cifs "ext2,ext3,nocifs" &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "match-fstype-neg2" +$TESTPROG --match-fstype cifs "noext2,ext3,cifs" &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "match-options" +$TESTPROG --match-options "aaa,bbb=BBB,ccc,ddd" "ccc" &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "match-options-list" +$TESTPROG --match-options "aaa,bbb=BBB,ccc,ddd" "ccc,aaa,ddd" &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "match-options-neg" +$TESTPROG --match-options "aaa,bbb=BBB,ccc,ddd" "noxxx" &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "match-options-neg-list" +$TESTPROG --match-options "aaa,bbb=BBB,ccc,ddd" "ddd,noaaa" &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "match-options-neg-list2" +$TESTPROG --match-options "aaa,bbb=BBB,ccc,ddd" "noxxx,ccc,aaa" &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "starts-with" +$TESTPROG --starts-with "AAAbbbCCC" "AAA" &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "ends-with" +$TESTPROG --ends-with "AAAbbbCCC" "CCC" &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "mountpoint" +$TESTPROG --mountpoint /proc &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "mountpoint-subdir" +$TESTPROG --mountpoint /proc/sys/kernel &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "mountpoint-root" +$TESTPROG --mountpoint / &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "fs-root" +$TESTPROG --fs-root /proc &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "fs-root-subdir" +$TESTPROG --fs-root /proc/sys/kernel &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "fs-root-subdir2" +$TESTPROG --fs-root /etc &> $TS_OUTPUT +ts_finalize_subtest + +ts_finalize |