summaryrefslogtreecommitdiffstats
path: root/scripts/check.sh
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-02-25 15:48:18 -0800
committerBrian Behlendorf <[email protected]>2011-02-25 16:56:46 -0800
commit19c1eb829d014cc64a5742710dae042bdaef25ae (patch)
treefb2c8ba17e96a0f5e0ef89722503b784bc9fc31e /scripts/check.sh
parent5c1967ebe2ad28f3c3229cba85159ccbd4dfe93a (diff)
Add zlib regression test
A zlib regression test has been added to verify the correct behavior of z_compress_level() and z_uncompress. The test case simply takes a 128k buffer, it compresses the buffer, it them uncompresses the buffer, and finally it compares the buffers after the transform. If the buffers match then everything is fine and no data was lost. It performs this test for all 9 zlib compression levels.
Diffstat (limited to 'scripts/check.sh')
-rwxr-xr-xscripts/check.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/check.sh b/scripts/check.sh
index b44b31333..4e4940685 100755
--- a/scripts/check.sh
+++ b/scripts/check.sh
@@ -62,6 +62,8 @@ if [ ! -f ${spl_module} ] || [ ! -f ${splat_module} ]; then
die "Source tree must be built, run 'make'"
fi
+/sbin/modprobe zlib_deflate &>/dev/null
+
spl_module_params="spl_debug_mask=0xffffffff spl_debug_subsys=0xffffffff"
echo "Loading ${spl_module}"
/sbin/insmod ${spl_module} ${spl_module_params} || die "Failed to load ${spl_module}"