blob: 3aac2c7ecc9eac5fc27fa8181e00c8514df1b593 (
plain)
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
|
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
# $Id$
# -*- perl -*-
use lib "$ENV{ACE_ROOT}/bin";
use PerlACE::Run_Test;
# Set the library path for the client to be able to load the library
PerlACE::add_lib_path ('../lib');
sub test($)
{
(my $executable, my $arguments) = @_;
my $t1;
if (PerlACE::is_vxworks_test()) {
$t1 = new PerlACE::ProcessVX ($executable, ($arguments ? $arguments : ""));
}
else {
$t1 = new PerlACE::Process ($executable, ($arguments ? $arguments : ""));
}
my $status = $t1->SpawnWaitKill (600);
if ($status != 0) {
print STDERR "ERROR: test failed, status=$status\n";
}
return $status;
}
my $status = test("Test");
if ($status == 0) {
print STDERR "SUCCESS: All tests passed\n";
}
else {
print STDERR "ERROR: Some test failed, status=$status\n";
}
exit $status;
|