diff options
author | Kjeld Schouten <[email protected]> | 2019-12-04 22:10:12 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-12-04 13:10:12 -0800 |
commit | 618b6adfbf136b3b61c6366719650ccfbad189a4 (patch) | |
tree | 0f99c197c3485d71613ceb384d0b9c61eab4089f /tests/zfs-tests/include/properties.shlib | |
parent | 5a089773742b0c48a7baea32194566ac2987be7d (diff) |
Refactor compression algorithm selection for tests
- Moves compression algorithms for tests to properties.shlib
- Removes all compression algorithms levels from general tests
- Replaces on with lz4 for compression tests
- Removes random algorithm selection, if not needed
- Cleans copyright header formatting
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: John Kennedy <[email protected]>
Reviewed-by: Michael Niewöhner <[email protected]>
Signed-off-by: Kjeld Schouten-Lebbing <[email protected]>
Closes #9645
Diffstat (limited to 'tests/zfs-tests/include/properties.shlib')
-rw-r--r-- | tests/zfs-tests/include/properties.shlib | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/tests/zfs-tests/include/properties.shlib b/tests/zfs-tests/include/properties.shlib index 25a9846dd..f049f5193 100644 --- a/tests/zfs-tests/include/properties.shlib +++ b/tests/zfs-tests/include/properties.shlib @@ -10,11 +10,10 @@ # # -# Copyright (c) 2012, 2016 by Delphix. All rights reserved. +# Copyright (c) 2012, 2016, Delphix. All rights reserved. # -typeset -a compress_prop_vals=('on' 'off' 'lzjb' 'gzip' 'gzip-1' 'gzip-2' - 'gzip-3' 'gzip-4' 'gzip-5' 'gzip-6' 'gzip-7' 'gzip-8' 'gzip-9' 'zle' 'lz4') +typeset -a compress_prop_vals=('off' 'lzjb' 'lz4' 'gzip' 'zle') typeset -a checksum_prop_vals=('on' 'off' 'fletcher2' 'fletcher4' 'sha256' 'noparity' 'sha512' 'skein' 'edonr') typeset -a recsize_prop_vals=('512' '1024' '2048' '4096' '8192' '16384' @@ -58,16 +57,6 @@ function get_rand_prop echo $retstr } -function get_rand_compress -{ - get_rand_prop compress_prop_vals $1 2 -} - -function get_rand_compress_any -{ - get_rand_prop compress_prop_vals $1 0 -} - function get_rand_checksum { get_rand_prop checksum_prop_vals $1 2 |