Commit | Line | Data |
8d063cd8 |
1 | #!./perl |
2 | |
79072805 |
3 | # $RCSfile: script.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:23 $ |
8d063cd8 |
4 | |
5 | print "1..3\n"; |
6 | |
95e8664e |
7 | $PERL = ($^O eq 'MSWin32') ? '.\perl' |
2986a63f |
8 | : (($^O eq 'NetWare') ? 'perl' |
9 | : ($^O eq 'MacOS') ? $^X : './perl'); |
68dc0745 |
10 | $x = `$PERL -le "print 'ok';"`; |
8d063cd8 |
11 | |
12 | if ($x eq "ok\n") {print "ok 1\n";} else {print "not ok 1\n";} |
13 | |
14 | open(try,">Comp.script") || (die "Can't open temp file."); |
15 | print try 'print "ok\n";'; print try "\n"; |
16 | close try; |
17 | |
68dc0745 |
18 | $x = `$PERL Comp.script`; |
8d063cd8 |
19 | |
20 | if ($x eq "ok\n") {print "ok 2\n";} else {print "not ok 2\n";} |
21 | |
68dc0745 |
22 | $x = `$PERL <Comp.script`; |
8d063cd8 |
23 | |
24 | if ($x eq "ok\n") {print "ok 3\n";} else {print "not ok 3\n";} |
25 | |
a0d0e21e |
26 | unlink 'Comp.script' || `/bin/rm -f Comp.script`; |