mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Fix compression tests for s390x
The problem is that s390x is not using the default bzip library we use on other platforms, which causes compressed string lengths to be differnt than what mtr tests expects. Fixed by: - Added have_normal_bzip.inc, which checks if compress() returns the expected length. - Adjust the results to match the expected one - main.func_compress.test & archive.archive - Don't print lengths that depends on compression library - mysqlbinlog compress tests & connect.zip - Don't print DATA_LENGTH for SET column_compression_zlib_level=1 - main.column_compression
This commit is contained in:
@ -70,7 +70,8 @@ TRUNCATE TABLE t1;
|
||||
SET column_compression_zlib_level= 1;
|
||||
INSERT INTO t1 VALUES(REPEAT('ab', 1000));
|
||||
SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
|
||||
SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
|
||||
# This is is using < as DATA_LENGTH produces different results on s390x-ubuntu-2004
|
||||
SELECT DATA_LENGTH < 100 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
|
||||
TRUNCATE TABLE t1;
|
||||
|
||||
SET column_compression_zlib_level= 9;
|
||||
|
Reference in New Issue
Block a user