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 | |
68dc0745 |
7 | $PERL = ($^O eq 'MSWin32') ? '.\perl' : './perl'; |
8 | $x = `$PERL -le "print 'ok';"`; |
8d063cd8 |
9 | |
10 | if ($x eq "ok\n") {print "ok 1\n";} else {print "not ok 1\n";} |
11 | |
12 | open(try,">Comp.script") || (die "Can't open temp file."); |
13 | print try 'print "ok\n";'; print try "\n"; |
14 | close try; |
15 | |
68dc0745 |
16 | $x = `$PERL Comp.script`; |
8d063cd8 |
17 | |
18 | if ($x eq "ok\n") {print "ok 2\n";} else {print "not ok 2\n";} |
19 | |
68dc0745 |
20 | $x = `$PERL <Comp.script`; |
8d063cd8 |
21 | |
22 | if ($x eq "ok\n") {print "ok 3\n";} else {print "not ok 3\n";} |
23 | |
a0d0e21e |
24 | unlink 'Comp.script' || `/bin/rm -f Comp.script`; |