/tags/rel-1-3-29/SWIG/Examples/test-suite/perl5/run-perl-test.pl
# · Perl · 15 lines · 8 code · 5 blank · 2 comment · 2 complexity · 818dffb17235ed250199d425151ccb70 MD5 · raw file
- #!/usr/bin/perl
- eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
- if $running_under_some_shell;
- #!/usr/bin/perl -w
- use strict;
- my $command = shift @ARGV;
- my $output = `perl $command 2>&1`;
- die "SWIG Perl test failed: \n\n$output\n"
- if $?;
- exit(0);