t/700_roundtrip/v5/snappy.t
raw| 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( 'snappy', { snappy => 1 } ); |
| 23 | } |
| 24 | |
| 25 | pass(); |
| 26 | done_testing(); |
| 27 |