diff options
author | Keith Bostic <keith@wiredtiger.com> | 2012-10-26 08:42:25 +0000 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2012-10-26 08:42:25 +0000 |
commit | 466e7ade5c5c996802b5eb5d1624d9357afbcb5c (patch) | |
tree | 1b4be107037f68ef23d84f77a217c4b2393584f5 | |
parent | 82a6530951fd9af92820356d2e5de8b6be6b3778 (diff) | |
download | mongo-466e7ade5c5c996802b5eb5d1624d9357afbcb5c.tar.gz |
Replace test/format's bzip configuration string with compression, which
can take one of four arguments (none, bzip, ext, snappy), change format
to run snappy compression if the library is available.
-rwxr-xr-x | test/format/s_dumpcmp.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/format/s_dumpcmp.sh b/test/format/s_dumpcmp.sh index e345170e37f..e96f009fda0 100755 --- a/test/format/s_dumpcmp.sh +++ b/test/format/s_dumpcmp.sh @@ -33,12 +33,16 @@ if test $# -ne 0; then fi revext="$top/ext/collators/reverse/.libs/reverse_collator.so" -bzext="$top/ext/compressors/bzip2_compress/.libs/bzip2_compress.so" +ext="\"$revext\"" +bzext="$top/ext/compressors/bzip2/.libs/bzip2_compress.so" if test -e $bzext ; then - ext="\"$revext\",\"$bzext\"" -else - ext="\"$revext\"" + ext="$ext,\"$bzext\"" +fi +snext="$top/ext/compressors/snappy/.libs/snappy_compress.so" +if test -e $snext ; then + ext="$ext,\"$snext\"" fi + config='extensions=['$ext']' $top/wt -h RUNDIR -C "$config" dump $wt_name | |