diff options
author | Russ Allbery <rra@cpan.org> | 2020-01-05 12:30:52 -0800 |
---|---|---|
committer | Russ Allbery <rra@cpan.org> | 2020-01-05 12:30:52 -0800 |
commit | dc25eec96f5864a674729d3fb02322548fa2a70b (patch) | |
tree | cd20f8bb65821893ff41409653855e7544c34a26 /t | |
parent | fae11d8e7d0d82cb7e801a8a747e82e27a98550e (diff) |
Generate xz-compressed tarballs
If the native distribution generation commands create only a
gzip-compressed tarball, generate an xz-compressed tarball from the
gzip-compressed tarball during docknot dist.
Diffstat (limited to 't')
-rw-r--r-- | t/data/generate/docknot/output/thread | 1 | ||||
-rwxr-xr-x | t/dist/basic.t | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/t/data/generate/docknot/output/thread b/t/data/generate/docknot/output/thread index 044b7ed..e473b68 100644 --- a/t/data/generate/docknot/output/thread +++ b/t/data/generate/docknot/output/thread @@ -103,6 +103,7 @@ The following additional Perl modules are required to use it: \bullet(packed)[File::ShareDir] \bullet(packed)[IPC::Run] \bullet(packed)[IPC::System::Simple] +\bullet(packed)[List::MoreUtils] \bullet(packed)[JSON] \bullet(packed)[Perl6::Slurp] \bullet(packed)[Template (part of Template Toolkit)] diff --git a/t/dist/basic.t b/t/dist/basic.t index 4453007..3279ef1 100755 --- a/t/dist/basic.t +++ b/t/dist/basic.t @@ -2,7 +2,7 @@ # # Basic tests for App::DocKnot::Dist. # -# Copyright 2019 Russ Allbery <rra@cpan.org> +# Copyright 2019-2020 Russ Allbery <rra@cpan.org> # # SPDX-License-Identifier: MIT @@ -60,7 +60,7 @@ if ($@ || !$result) { chdir($cwd); plan skip_all => 'git and tar not available'; } else { - plan tests => 3; + plan tests => 5; } # Load the module. Change back to the starting directory for this so that @@ -85,5 +85,7 @@ eval { capture_stdout { $dist->make_distribution() }; }; ok(-f File::Spec->catfile($distdir, 'Empty-1.00.tar.gz'), 'dist exists'); +ok(-f File::Spec->catfile($distdir, 'Empty-1.00.tar.xz'), 'xz dist exists'); +ok(!-f File::Spec->catfile($distdir, 'Empty-1.00.tar'), 'tarball missing'); chdir($cwd); is($@, q{}, 'no errors'); |