| 1 |
# vim: set ft=perl ts=8 sts=2 sw=2 tw=100 et : |
| 2 |
use strictures 2; |
| 3 |
use stable 0.031 'postderef'; |
| 4 |
use experimental 'signatures'; |
| 5 |
no autovivification warn => qw(fetch store exists delete); |
| 6 |
use if "$]" >= 5.022, experimental => 're_strict'; |
| 7 |
no if "$]" >= 5.031009, feature => 'indirect'; |
| 8 |
no if "$]" >= 5.033001, feature => 'multidimensional'; |
| 9 |
no if "$]" >= 5.033006, feature => 'bareword_filehandles'; |
| 10 |
no if "$]" >= 5.041009, feature => 'smartmatch'; |
| 11 |
no feature 'switch'; |
| 12 |
use open ':std', ':encoding(UTF-8)'; # force stdin, stdout, stderr into utf8 |
| 13 |
|
| 14 |
use Test2::V0 -no_pragmas => 1; |
| 15 |
use if $ENV{AUTHOR_TESTING}, 'Test2::Warnings'; |
| 16 |
use Digest::MD5 'md5_hex'; |
| 17 |
use Mojo::File 'path'; |
| 18 |
|
| 19 |
foreach my $line (<DATA>) { |
| 20 |
chomp $line; |
| 21 |
my ($filename, $checksum) = split / /, $line, 2; |
| 22 |
|
| 23 |
is(md5_hex(path($filename)->slurp), $checksum, 'checksum for '.$filename.' is correct') |
| 24 |
or diag $filename.' is not what was shipped in the distribution!'; |
| 25 |
} |
| 26 |
|
| 27 |
done_testing; |
| 28 |
|
| 29 |
__DATA__ |
| 30 |
share/LICENSE 82b044426b4e3998d7eb085d98a5f916 |
| 31 |
share/draft2019-09/meta/applicator.json fd08fc5b4c3bd23ae19c919c62b86551 |
| 32 |
share/draft2019-09/meta/content.json 50fe3f49e909fb38f2bf35022139d174 |
| 33 |
share/draft2019-09/meta/core.json b4c0e7eac5bd74641d464ebb6377e8cf |
| 34 |
share/draft2019-09/meta/format.json 067f8aa16b1e4b8f6b3c352e42ce7a04 |
| 35 |
share/draft2019-09/meta/meta-data.json f1d30b664cc43acf7d14cce61629cec8 |
| 36 |
share/draft2019-09/meta/validation.json 9d955e385dbc9cd1d2cb609725c22836 |
| 37 |
share/draft2019-09/output/schema.json bf63c8c7e3b4aa8786c6f7c27c28121f |
| 38 |
share/draft2019-09/schema.json 235e1fd47201b751194d9e8e90969ce4 |
| 39 |
share/draft2020-12/meta/applicator.json 835180064e52815df939c2118814d80d |
| 40 |
share/draft2020-12/meta/content.json 43fd532b134825d343a9be5aa5610234 |
| 41 |
share/draft2020-12/meta/core.json 8e6829848b79f6d6952e888b4291a639 |
| 42 |
share/draft2020-12/meta/format-annotation.json 12e1bd6b2af5bdd67240bcb5efc473ae |
| 43 |
share/draft2020-12/meta/format-assertion.json c78476a32441e52b48f13027a37fcfa6 |
| 44 |
share/draft2020-12/meta/meta-data.json c416e310b2648f291e51992b7dc012ab |
| 45 |
share/draft2020-12/meta/unevaluated.json 9e4dddcbb0581b939b686048713a1b8e |
| 46 |
share/draft2020-12/meta/validation.json a5a6bc93fa352985fc455e6325237f9c |
| 47 |
share/draft2020-12/output/schema.json 3dbe61924d5510b8ed796573b152a03b |
| 48 |
share/draft2020-12/schema.json e32920982620b2b43803dc82d4640b50 |
| 49 |
share/draft4/schema.json c6be0c4792c7455a526f0e0cc9eb7d25 |
| 50 |
share/draft6/schema.json 0376a64fd48e524336d37410c50f7b74 |
| 51 |
share/draft7/schema.json d6f6ffd262250e16b20f687b94a08bdc |