NAME

SYNOPSIS

t/wrap.pl -c # for create

t/wrap.pl -x # for extract

OPTIONS

-c

Wrap the test files into wrapper file

-f

Path to the wrapper file. Defaults to t/wrapped-tests.bin.

-help|h!

This help

-x

Unwrap the test files from the wrapper file

DESCRIPTION

The t/ directory contains tests for different line endings. To distribute these tests we wrap them into a Data::Dumper file to avoid problems on distribution verification.

Called with -c we create the wrapping file. Called with -x we unwrap the files and install them into place.

The test t/3-verify.t calls us with -x.

When anything changes that breaks 3-verify.t, then the procedure to create new test files is something like the following:

(1) call wrap.pl -x

(2) edit files in t/test*; take care that the files in test-datlf* have Unix line endings and the files in test-datcrlf* have DOS line endings. Apart from that keep the files identical

(3) sign in t/test-datlf-sigold/ with an old version of Module::Signature

(4) copy the signature over to t/test-datcrlf-sigold/

(5) sign in t/test-datlf-signew/ with the upcoming version of Module::Signature

(6) copy the signature over to t/test-datcrlf-signew/

(7) call wrap.pl -c