File: TESTS-junit.pl

package info (click to toggle)
globus-gsi-proxy-ssl 5.7-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,496 kB
  • ctags: 252
  • sloc: sh: 11,124; ansic: 866; makefile: 169; perl: 107
file content (43 lines) | stat: -rwxr-xr-x 813 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /usr/bin/perl

require 5.005;

use warnings;
use strict;

use vars qw(@tests);

my $harness;
BEGIN {
    my $xmlfile = 'globus-proxy-ssl-test.xml';

    eval "use TAP::Harness::JUnit";
    if ($@)
    {
        eval "use TAP::Harness;";

        if ($@)
        {
            die "Unable to find JUnit TAP formatter";
        }
        else
        {
            $harness = TAP::Harness->new( {
                formatter_class => 'TAP::Formatter::JUnit',
                merge => 1
            } );
        }
        open(STDOUT, ">$xmlfile");
    }
    else
    {
        $harness = TAP::Harness::JUnit->new({
                                xmlfile => $xmlfile,
                                merge => 1});
    }
    $ENV{PATH} = ".:" . $ENV{PATH};
}

@tests = qw(test_pci.pl);

$harness->runtests(@tests);