From: Janpieter Sollie <[email protected]>

Since xxhash is a hidden feature,
considered broken, but working nonetherless,
it should be tested as well.

Signed-off-by: jpsollie <[email protected]>
---
 tests/bcachefs/single_device.ktest | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/bcachefs/single_device.ktest 
b/tests/bcachefs/single_device.ktest
index 7cc6c5b..b4ac875 100755
--- a/tests/bcachefs/single_device.ktest
+++ b/tests/bcachefs/single_device.ktest
@@ -679,6 +679,15 @@ test_crc64()
        ${ktest_scratch_dev[0]}
 }
 
+test_xxhash()
+{
+    run_basic_fio_test                         \
+       --metadata_checksum=xxhash              \
+       --data_checksum=xxhash                  \
+       ${ktest_scratch_dev[0]}
+}
+
+
 test_crypto_locked_mnt()
 {
     echo foo|bcachefs format --encrypted ${ktest_scratch_dev[0]}
-- 
2.42.0

Reply via email to