summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKarel Zak2012-08-01 19:00:30 +0200
committerKarel Zak2012-08-01 19:00:30 +0200
commitb1c7f6de74d774a7acf3427f653ad645bcbf9716 (patch)
treed523dbbe1509648c4a848b3e1516db76f469088b /tests
parentlibmount: deduplicate SELinux mount options (diff)
downloadkernel-qcow2-util-linux-b1c7f6de74d774a7acf3427f653ad645bcbf9716.tar.gz
kernel-qcow2-util-linux-b1c7f6de74d774a7acf3427f653ad645bcbf9716.tar.xz
kernel-qcow2-util-linux-b1c7f6de74d774a7acf3427f653ad645bcbf9716.zip
tests: add libmount optstr deduplicate
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/expected/libmount/optstr-deduplicate1
-rwxr-xr-xtests/ts/libmount/optstr4
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/expected/libmount/optstr-deduplicate b/tests/expected/libmount/optstr-deduplicate
new file mode 100644
index 000000000..e2b669a4d
--- /dev/null
+++ b/tests/expected/libmount/optstr-deduplicate
@@ -0,0 +1 @@
+result: >bbb,ccc,xxx,ddd,AAA=ccc,fff=eee<
diff --git a/tests/ts/libmount/optstr b/tests/ts/libmount/optstr
index 41692167e..f6a5c0530 100755
--- a/tests/ts/libmount/optstr
+++ b/tests/ts/libmount/optstr
@@ -88,4 +88,8 @@ ts_init_subtest "fix"
ts_valgrind $TESTPROG --fix "uid=root,gid=root" &> $TS_OUTPUT
ts_finalize_subtest
+ts_init_subtest "deduplicate"
+ts_valgrind $TESTPROG --dedup bbb,ccc,AAA,xxx,AAA=a,AAA=bbb,ddd,AAA=ccc,fff=eee AAA &> $TS_OUTPUT
+ts_finalize_subtest
+
ts_finalize