summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/t/run/switchx2.aux
blob: 6d54a2d202c8f23ca029c2a80589dd5f38d1e82e (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
From: foo@bar.xx
Date: Jan 1, 2037 12:34 PM
Subject: Ignore mail header
To: perl@perl.xx

#perl
Not perl

#!
Still not perl

#!/something/else
Still not perl

#!/usr/bin/bash
# Ignore shell commands
if [[ -z $FOO ]]; then echo 'not ok 1'; fi

#!/some/path/that/leads/to/perl -l

# These lines get executed
my $test = $ARGV[0];
if (-f 'switchx.t') {
    print("ok $test - perl -l option tested");
}
$test++;
print "ok $test - Second test file utilized";

__END__

# This is ignored
print "not ok $test";