B-C
view release on metacpan or search on metacpan
t/testplc.sh view on Meta::CPAN
fi
tests[2050]='use utf8;package í
Å£::á´¼; sub á´¼_or_Ḡ{ "ok" } print á´¼_or_á¸;'
result[2050]='ok'
tests[2051]='use utf8;package ÆÆÆÆ; sub ÆK { "ok" } package ƦƦƦƦ; use base "ÆÆÆÆ"; my $x = bless {}, "ƦƦƦƦ"; print $x->ÆK();'
result[2051]='ok'
tests[404]='use FCGI;sub test {my $s=" ";$s =~ s/ //g;print "ok $s\n";}test();'
result[404]='ok '
init
while getopts "qsScohv" opt
do
if [ "$opt" = "q" ]; then
Q=1
OCMD="$QOCMD"
qq="-qq,"
if [ "$VERS" = "5.6.2" ]; then QOCMD=$OCMD; qq=""; fi
fi
if [ "$opt" = "v" ]; then
Q=
QOCMD="$OCMD"
qq=""
fi
if [ "$opt" = "s" ]; then SKIP=1; fi
if [ "$opt" = "o" ]; then Mblib=" "; SKIP=1; SKI=1; init; fi
if [ "$opt" = "S" ]; then SKIP=1; SKI=1; fi
if [ "$opt" = "c" ]; then CONT=1; shift; fi
if [ "$opt" = "h" ]; then help; exit; fi
done
if [ -z "$Q" ]; then
make
else
make -s >/dev/null
fi
# need to shift the options
while [ -n "$1" -a "${1:0:1}" = "-" ]; do shift; done
if [ -n "$1" ]; then
while [ -n "$1" ]; do
btest $1
shift
done
else
for b in $(seq $ntests); do
btest $b
done
fi
# 5.8: all PASS
# 5.10: FAIL: 2-5, 7, 11, 15. With -D 9-12 fail also.
# 5.11: FAIL: 2-5, 7, 11, 15-16 (all segfaulting in REGEX). With -D 9-12 fail also.
# 5.11d: WRONG 4, FAIL: 9-11, 15-16
# 5.11d linux: WRONG 4, FAIL: 11, 16
#only if ByteLoader installed in @INC
if false; then
echo ${OCMD}-H,-obytecode2.plc bytecode2.pl
${OCMD}-H,-obytecode2.plc bytecode2.pl
chmod +x bytecode2.plc
echo ./bytecode2.plc
./bytecode2.plc
fi
# package pmc
if false; then
echo "package MY::Test;" > bytecode1.pm
echo "print 'hi'" >> bytecode1.pm
echo ${OCMD}-m,-obytecode1.pmc bytecode1.pm
${OCMD}-obytecode1.pmc bytecode1.pm
fi
( run in 1.093 second using v1.01-cache-2.11-cpan-5837b0d9d2c )