aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/qtest/qutil.test
blob: 3487236c0dd83f0afc481f2a4afc64bbf5cbc5d9 (plain) (blame)
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
#!/usr/bin/env perl
require 5.008;
BEGIN { $^W = 1; }
use strict;

chdir("qutil") or die "chdir testdir failed: $!\n";

require TestDriver;

my $td = new TestDriver('qutil');

$td->runtest("QUtil",
	     {$td->COMMAND => "qutil"},
	     {$td->FILE => "qutil.out",
	      $td->EXIT_STATUS => 0},
	     $td->NORMALIZE_NEWLINES | $td->RM_WS_ONLY_LINES);

my $mfw = `main_from_wmain`;
if ($mfw eq '')
{
    $td->runtest("skipping main_from_wmain",
                 {$td->STRING => ""},
                 {$td->STRING => ""})
}
else
{
    $td->runtest("main_from_wmain",
                 {$td->COMMAND => "main_from_wmain"},
                 {$td->FILE => "wmain.out",
                      $td->EXIT_STATUS => 0},
                 $td->NORMALIZE_NEWLINES | $td->RM_WS_ONLY_LINES);
}

$td->report(2);