File: static-lab.t

package info (click to toggle)
lintian 2.5.10.4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 12,608 kB
  • sloc: perl: 12,430; sh: 5,787; makefile: 2,834; xml: 1,125; ansic: 347; python: 28; java: 9; tcl: 4; sed: 3
file content (14 lines) | stat: -rwxr-xr-x 488 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl

use strict;
use warnings;
use File::Temp qw(tempdir);
use Test::Simple tests => 4;

my $lintian_path = "$ENV{LINTIAN_ROOT}/frontend/lintian";
my $labdir = tempdir(CLEANUP => 1);

ok(system("$lintian_path --allow-root --lab $labdir --setup-lab") == 0, "Create");
ok(system("$lintian_path --allow-root --lab $labdir --setup-lab") == 0, "Renew");
ok(system("$lintian_path --allow-root --lab $labdir --remove-lab") == 0, "Remove");
ok(system("rmdir $labdir") == 0, "Rmdir");