]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: (tests) split helper tests
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 25 May 2023 05:19:03 +0000 (07:19 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 25 May 2023 10:44:19 +0000 (12:44 +0200)
This splits the test introduced in
commit 06e05eb0f785 ("libmount: don't pass option "defaults" to helper")
into its own subtest.

We will have more subtests.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/expected/mount/special-basic [new file with mode: 0644]
tests/expected/mount/special-options [moved from tests/expected/mount/special with 100% similarity]
tests/ts/mount/special

diff --git a/tests/expected/mount/special-basic b/tests/expected/mount/special-basic
new file mode 100644 (file)
index 0000000..99997d3
--- /dev/null
@@ -0,0 +1 @@
+/sbin/mount.mytest called with "/foo /bar -o rw"
index 87ebbf60f9d6f547835d460a2028ac86ae7bbb0f..ddb417aa16f68f3d545de13de1f84a97279a717c 100755 (executable)
@@ -35,7 +35,14 @@ echo "$0 called with \"$*\""
 EOF
 chmod +x $MOUNTER
 
+ts_init_subtest "basic"
+$TS_CMD_MOUNT -t mytest /foo /bar &> $TS_OUTPUT
+ts_finalize_subtest
+
+ts_init_subtest "options"
 $TS_CMD_MOUNT -t mytest -o foo,defaults /foo /bar &> $TS_OUTPUT
+ts_finalize_subtest
+
 rm -f $MOUNTER
 
 ts_finalize