File: features.t

package info (click to toggle)
cpanminus 1.7048-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,372 kB
  • sloc: perl: 14,713; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 648 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use strict;
use xt::Run;
use Test::More;

{
    my $out = run '--showdeps', './testdist/Spreadsheet-Read-0.48';
    like $out, qr/Test::NoWarnings/;
    unlike $out, qr/CSV_XS/;
}

{
    my $out = run '--showdeps', './testdist/Spreadsheet-Read-0.48', '--with-feature=opt_csv';
    like $out, qr/CSV_XS/;
}

{
    my $out = run '--showdeps', './testdist/Spreadsheet-Read-0.48', '--with-all-features';
    like $out, qr/CSV_XS/;
    like $out, qr/XLSX/;
}

{
    my $out = run '--showdeps', './testdist/Spreadsheet-Read-0.48', '--with-all-features', '--without-feature=opt_csv';
    unlike $out, qr/CSV_XS/;
    like $out, qr/XLSX/;
}

done_testing;