[inseparable changes from patch from perl5.003_19 to perl5.003_20]
[p5sagit/p5-mst-13.2.git] / t / comp / script.t
1 #!./perl
2
3 # $RCSfile: script.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:23 $
4
5 print "1..3\n";
6
7 $x = `./perl -e 'print "ok\n";'`;
8 if ($x =~ /DCL-W-NOCOMD/) { $x = `\$ mcr sys\$disk:[]perl. -e "print ""ok\n""";`; }
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
16 $x = `./perl Comp.script`;
17 if ($x =~ /DCL-W-NOCOMD/) { $x = `\$ mcr sys\$disk:[]perl. Comp.script`; }
18
19 if ($x eq "ok\n") {print "ok 2\n";} else {print "not ok 2\n";}
20
21 $x = `./perl <Comp.script`;
22 if ($x =~ /DCL-W-NOCOMD/) { $x = `\$ mcr sys\$disk:[]perl. <Comp.script`; }
23
24 if ($x eq "ok\n") {print "ok 3\n";} else {print "not ok 3\n";}
25
26 unlink 'Comp.script' || `/bin/rm -f Comp.script`;