File: uscan-config.t

package info (click to toggle)
devscripts 2.25.15
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 8,528 kB
  • sloc: perl: 26,530; sh: 11,698; python: 4,428; makefile: 363
file content (20 lines) | stat: -rw-r--r-- 651 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
use Test::More tests => 8;

BEGIN {
    use_ok('Devscripts::Uscan::Config');
    use_ok('Devscripts::Uscan::Output');
}

@Devscripts::Config::config_files = ('t/config1');
@ARGV = ( '--download-version', '1.0', '-dd', '--no-verbose' );

ok(
    $conf = Devscripts::Uscan::Config->new->parse,
    'USCAN_SYMLINK=rename + --download-version'
);

ok($conf->symlink eq 'rename', ' symlink=rename');
ok($conf->download_version eq '1.0',' download_version=1.0');
ok($conf->user_agent =~ /^Debian uscan/, qq' user agent starts with "Debian uscan" ($conf->{user_agent})');
ok($conf->download == 2, 'Force download');
ok($verbose == 0, 'Verbose is disabled');