| 1 |
#!perl |
| 2 |
use strict; |
| 3 |
use warnings; |
| 4 |
use Data::Dumper; |
| 5 |
use File::Spec; |
| 6 |
|
| 7 |
use lib File::Spec->catdir(qw(t lib)); |
| 8 |
|
| 9 |
BEGIN { |
| 10 |
lib->import('lib') |
| 11 |
if !-d 't'; |
| 12 |
} |
| 13 |
|
| 14 |
use Sereal::TestSet qw(:all); |
| 15 |
use Test::More; |
| 16 |
|
| 17 |
my $ok = have_encoder_and_decoder(); |
| 18 |
if ( not $ok ) { |
| 19 |
plan skip_all => 'Did not find right version of encoder'; |
| 20 |
} |
| 21 |
else { |
| 22 |
run_roundtrip_tests( |
| 23 |
'zstd_force', |
| 24 |
{ |
| 25 |
compress => Sereal::Encoder::SRL_ZSTD(), |
| 26 |
compress_threshold => 0, |
| 27 |
} ); |
| 28 |
} |
| 29 |
|
| 30 |
pass(); |
| 31 |
done_testing(); |
| 32 |
|