[PATCH t/base/lex.t, term.t] Purging echo from base tests
[p5sagit/p5-mst-13.2.git] / t / comp / script.t
1 #!./perl
2
3 print "1..3\n";
4
5 $x = `$^X -le "print 'ok';"`;
6
7 if ($x eq "ok\n") {print "ok 1\n";} else {print "not ok 1\n";}
8
9 open(try,">Comp.script") || (die "Can't open temp file.");
10 print try 'print "ok\n";'; print try "\n";
11 close try;
12
13 $x = `$^X Comp.script`;
14
15 if ($x eq "ok\n") {print "ok 2\n";} else {print "not ok 2\n";}
16
17 $x = `$^X <Comp.script`;
18
19 if ($x eq "ok\n") {print "ok 3\n";} else {print "not ok 3\n";}
20
21 unlink 'Comp.script' || `/bin/rm -f Comp.script`;