Add test cases to verify f2fs's support for different versions of the
"test_dummy_encryption" mount option.

To ensure test robustness, the MKFS_OPTIONS and MOUNT_OPTIONS are
cleared. This prevents additional options from interfereing with the
test results.

Signed-off-by: Joanne Chang <[email protected]>
---
 tests/f2fs/016     | 6 ++++++
 tests/f2fs/016.out | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/tests/f2fs/016 b/tests/f2fs/016
index 800f75fc..a6df827d 100755
--- a/tests/f2fs/016
+++ b/tests/f2fs/016
@@ -35,8 +35,14 @@ options=(
        "compress_mode=fs"              "extra_attr,compression"        \
        "compress_mode=user"            "extra_attr,compression"        \
        "compress_cache"                "extra_attr,compression"        \
+       "test_dummy_encryption"         "encrypt"                               
        \
+       "test_dummy_encryption=v1"      "encrypt"                               
        \
+       "test_dummy_encryption=v2"      "encrypt"                               
        \
 )
 
+# remove all mkfs/mount options to avoid affecting results
+export MKFS_OPTIONS=""
+export MOUNT_OPTIONS=""
 for ((i=0;i<${#options[@]};i=i+2))
 do
        echo "Option#$i: ${options[$i]} : ${options[$((i+1))]}"
diff --git a/tests/f2fs/016.out b/tests/f2fs/016.out
index a8c96972..5ff116a7 100644
--- a/tests/f2fs/016.out
+++ b/tests/f2fs/016.out
@@ -31,3 +31,9 @@ Option#28: compress_mode=user : extra_attr,compression
 0
 Option#30: compress_cache : extra_attr,compression
 0
+Option#32: test_dummy_encryption : encrypt
+0
+Option#34: test_dummy_encryption=v1 : encrypt
+0
+Option#36: test_dummy_encryption=v2 : encrypt
+0
-- 
2.51.2.1041.gc1ab5b90ca-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to