[
https://issues.apache.org/jira/browse/COUCHDB-3261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16992424#comment-16992424
]
ASF subversion and git services commented on COUCHDB-3261:
----------------------------------------------------------
Commit 4dbd7c17e6e7e7894b64595b2b7fdde7ead823f6 in couchdb's branch
refs/heads/master from Will Holley
[ https://gitbox.apache.org/repos/asf?p=couchdb.git;h=4dbd7c1 ]
Big endian support for couch_compress tests
This refactors the couch_compress tests to allow them to run on
platforms (e.g. s390x) where the compression output might be
different to the fixed values defined in the tests. Namely:
* Assert that compressed output is smaller than the input
* Assert bigendian output is portable
* Assert that compressed output can be recompressed
Background and discussion of this is in
https://issues.apache.org/jira/browse/COUCHDB-3261.
> Test case couch_compress_tests failed
> -------------------------------------
>
> Key: COUCHDB-3261
> URL: https://issues.apache.org/jira/browse/COUCHDB-3261
> Project: CouchDB
> Issue Type: Bug
> Components: Test Suite
> Reporter: salamani
> Priority: Major
> Labels: test
> Attachments: couch_compress_tests.patch
>
>
> CouchDB : 2.0.0
> I have built the CouchDB source for version 2.0.0.
> Test case log of couch_compress_tests:
> module 'couch_compress_tests'
> couch_compress_tests:33: compress_test_...ok
> couch_compress_tests:34: compress_test_...ok
> couch_compress_tests:35: compress_test_...*failed*
> in function couch_compress_tests:'-compress_test_/0-fun-4-'/0
> (test/couch_compress_tests.erl, line 35)
> **error:{assertEqual,[{module,couch_compress_tests},
> {line,35},
> {expression,"couch_compress : compress ( ? TERM , snappy )"},
> {expected,<<1,49,64,131,104,1,108,0,0,0,5,...>>},
> {value,<<1,49,60,131,104,1,108,0,0,0,...>>}]}
> output:<<"">>
> couch_compress_tests:40: decompress_test_...ok
> couch_compress_tests:41: decompress_test_...ok
> couch_compress_tests:42: decompress_test_...ok
> couch_compress_tests:43: decompress_test_...ok
> couch_compress_tests:48: recompress_test_...ok
> couch_compress_tests:49: recompress_test_...*failed*
> in function couch_compress_tests:'-recompress_test_/0-fun-2-'/0
> (test/couch_compress_tests.erl, line 49)
> **error:{assertEqual,[{module,couch_compress_tests},
> {line,49},
> {expression,"couch_compress : compress ( ? NONE , snappy )"},
> {expected,<<1,49,64,131,104,1,108,0,0,0,5,...>>},
> {value,<<1,49,60,131,104,1,108,0,0,0,...>>}]}
> output:<<"">>
> couch_compress_tests:50: recompress_test_...ok
> couch_compress_tests:51: recompress_test_...*failed*
> in function couch_compress_tests:'-recompress_test_/0-fun-6-'/0
> (test/couch_compress_tests.erl, line 51)
> **error:{assertEqual,[{module,couch_compress_tests},
> {line,51},
> {expression,"couch_compress : compress ( ? DEFLATE , snappy )"},
> {expected,<<1,49,64,131,104,1,108,0,0,0,5,...>>},
> {value,<<1,49,60,131,104,1,108,0,0,0,...>>}]}
> output:<<"">>
> couch_compress_tests:52: recompress_test_...ok
> couch_compress_tests:53: recompress_test_...ok
> couch_compress_tests:58: is_compressed_test_...ok
> couch_compress_tests:59: is_compressed_test_...ok
> couch_compress_tests:60: is_compressed_test_...ok
> couch_compress_tests:61: is_compressed_test_...ok
> couch_compress_tests:62: is_compressed_test_...ok
> couch_compress_tests:63: is_compressed_test_...ok
> couch_compress_tests:64: is_compressed_test_...ok
> couch_compress_tests:65: is_compressed_test_...ok
> couch_compress_tests:66: is_compressed_test_...ok
> couch_compress_tests:67: is_compressed_test_...ok
> couch_compress_tests:68: is_compressed_test_...ok
> couch_compress_tests:70: is_compressed_test_...ok
> couch_compress_tests:72: is_compressed_test_...ok
> [done in 0.078 s]
> [done in 0.078 s]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)