File: 07.argv.t

package info (click to toggle)
perlbrew 0.86-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 704 kB
  • sloc: perl: 8,459; makefile: 7; sh: 1
file content (24 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use App::perlbrew;

{
    my $app = App::perlbrew->new("-Dcc=ccache gcc");
    is $app->{D}[0], 'cc=ccache gcc';
}

{
    my $app = App::perlbrew->new("-Dcc=ccache gcc", "-Dld=gcc");
    is $app->{D}[0], 'cc=ccache gcc';
    is $app->{D}[1], 'ld=gcc';
}

{
    my $app = App::perlbrew->new("install", "-v", "perl-5.14.0", "-Dcc=ccache gcc", "-Dld=gcc");
    is $app->{D}[0], 'cc=ccache gcc';
    is $app->{D}[1], 'ld=gcc';
}

done_testing;