Sync with 5.4.0
[deliverable/titan.core.git] / function_test / Semantic_Analyser / harness.pl
CommitLineData
970ed795 1###############################################################################
3abe9331 2# Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
3# All rights reserved. This program and the accompanying materials
4# are made available under the terms of the Eclipse Public License v1.0
5# which accompanies this distribution, and is available at
6# http://www.eclipse.org/legal/epl-v10.html
7###############################################################################
8#!/usr/bin/perl -w
9
10use strict;
11
12if ($] < 5.006) {
13 # ancient perl, we must be on Solaris :(
14 my @perlloc = qw( /proj/TTCN/Tools/perl-5.10.1/bin/perl /mnt/TTCN/Tools/perl-5.10.1/bin/perl );
15 foreach (@perlloc) {
16 if (-x $_) {
17 #warn "Let's try with $_ instead";
18 exec( $_, '-w', $0, @ARGV ) or die "That didn't work either: $!";
19 }
20 }
21}
22
23use vars qw($v);
24use Test::Harness; #
25
26if (0 == scalar @ARGV) {
27 @ARGV = glob('../../playground/sema/TTCN3_*/ ../../playground/sema/SA_6_TD/ ../../playground/sema/ASN_*/ ver/ xer/ import_of*/ HQ46602/');
28 # options/ does not run through harness
29}
30
31# Run the file named "t" in each directory.
32# Note that the current directory is still Semantic_Analyser, not the subdir.
33# The "t" script should change dirs if wanted.
34runtests( map { s!/$!!; $_ . '/t' } @ARGV );
35
36__END__
37
38my %args = (
39 exec => [ 'make', 'check', '--no-print-directory', '-s', '-C' ],
40 verbosity => ($v || 0),
41# show_count => 1,
42 color => 1
43);
44my $harness = TAP::Harness->new( \%args );
45
46# If no argument, collect all sub-directories
47
48$harness->runtests(@ARGV);
49
50__END__
51
52Common runner of all tests.
This page took 0.025343 seconds and 5 git commands to generate.