| 1 |
#! /usr/bin/perl -w |
| 2 |
use strict; |
| 3 |
|
| 4 |
# Don't change the current directory. This test doesn't play well with |
| 5 |
# harness.pl and Cwd of perl 5.005_03 has a broken abs_path. |
| 6 |
|
| 7 |
my $fail = 0; |
| 8 |
|
| 9 |
# Run all tests but remember if any of them failed. |
| 10 |
|
| 11 |
$fail |= system qw'../cw.pl -s quitter3.ttcn'; |
| 12 |
$fail |= system qw'../cw.pl -s -Q1 quitter3Q1.ttcn'; |
| 13 |
$fail |= system qw'../cw.pl -s -Q2 quitter3Q2.ttcn'; |
| 14 |
|
| 15 |
$fail |= system qw'../cw.pl -s -S quitter3S.ttcn'; |
| 16 |
$fail |= system qw'../cw.pl -s -S -Q1 quitter3Q1S.ttcn'; |
| 17 |
$fail |= system qw'../cw.pl -s -S -Q2 quitter3Q2S.ttcn'; |
| 18 |
|
| 19 |
do { |
| 20 |
system('echo "makeitfail" >options_TD.script_error'); |
| 21 |
$! = 42; # errno (exit code used by die) |
| 22 |
die "some tests failed"; |
| 23 |
} if $fail; |