Skip to content
  • Terje Rosten's avatar
    3a42933c
    Bug#26226798 MAIN.MYSQLPUMP_BASIC FAILS ON UBUNTU 16.04 · 3a42933c
    Terje Rosten authored
    Background
     When -DWITH_ZLIB=system / -DWITH_LZ4=system is used
     zlib_decompress/lz4_decompress are not built. The tools "openssl zlib" /
     "lz4" are then required for test to pass.
    
     The test did not check if lz4 executable was available and also assumed
     the zlib subcommand of the openssl executable was always present.
    
     On Debian and Ubuntu the openssl command is known to lack this
     feature.
    
    Fix
     Introduce helper linux_distro.inc which uses /etc/os-release to find
     current Linux distribution.
    
     Add not_debian.inc/not_ubuntu.inc which use linux_distro.inc and will
     skip the test if current platform is Debian or Ubuntu.
    
     Modify the test case by splitting test in 3 parts, without
     compression and with zlib or lz4 compression. The test case without
     compression will always run. The lz4 case is modified to chech
     availability of "lz4" executable and fail early if not found. In the
     zlib case, a check is added for the "zlib" feature of the "openssl"
     command. If not available the test fails immediately, however on
     Ubuntu and Debian, where the "openssl" command is known to be shipped
     without "zlib" support, the test is skipped.
    3a42933c
    Bug#26226798 MAIN.MYSQLPUMP_BASIC FAILS ON UBUNTU 16.04
    Terje Rosten authored
    Background
     When -DWITH_ZLIB=system / -DWITH_LZ4=system is used
     zlib_decompress/lz4_decompress are not built. The tools "openssl zlib" /
     "lz4" are then required for test to pass.
    
     The test did not check if lz4 executable was available and also assumed
     the zlib subcommand of the openssl executable was always present.
    
     On Debian and Ubuntu the openssl command is known to lack this
     feature.
    
    Fix
     Introduce helper linux_distro.inc which uses /etc/os-release to find
     current Linux distribution.
    
     Add not_debian.inc/not_ubuntu.inc which use linux_distro.inc and will
     skip the test if current platform is Debian or Ubuntu.
    
     Modify the test case by splitting test in 3 parts, without
     compression and with zlib or lz4 compression. The test case without
     compression will always run. The lz4 case is modified to chech
     availability of "lz4" executable and fail early if not found. In the
     zlib case, a check is added for the "zlib" feature of the "openssl"
     command. If not available the test fails immediately, however on
     Ubuntu and Debian, where the "openssl" command is known to be shipped
     without "zlib" support, the test is skipped.
Loading