### ----------------------------------------------------
### -- Archive::Libarchive::Raw
### -- Licenses: Artistic-2.0
### -- Authors: Fernando Santagata
### -- File: t/01-version.rakutest
### ----------------------------------------------------
#!/usr/bin/env raku

use Test;
use lib 'lib';
use Archive::Libarchive::Raw;

constant AUTHOR = ?%*ENV<TEST_AUTHOR>;

if AUTHOR {
  is archive_version_number, 3007004, 'version number';
  is archive_version_string, 'libarchive 3.7.4', 'version string';
  is archive_version_details,
    'libarchive 3.7.4 zlib/1.3.1 liblzma/5.8.1 bz2lib/1.0.8 liblz4/1.10.0 libzstd/1.5.7',
    'version details';
  is archive_zlib_version, '1.3.1', 'linked zlib version';
  is archive_liblzma_version, '5.8.1', 'linked liblzma version';
  is archive_bzlib_version, '1.0.8, 13-Jul-2019', 'linked bzlib version';
  is archive_liblz4_version, '1.10.0', 'linked liblz4 version';
  is archive_libzstd_version, '1.5.7', 'linked libzstd version';
}else{
  skip 'version number', 1;
  skip 'version string', 1;
  skip 'version details', 1;
  skip 'linked zlib version', 1;
  skip 'linked liblzma version', 1;
  skip 'linked bzlib version', 1;
  skip 'linked liblz4 version', 1;
}

done-testing;


