#!/bin/sh
testdir=../perl5.002/t
cwd=`pwd`
if [ -f bperl ]; then
    perl=./bperl
else
    perl="perl -Iblib/arch"
fi
for pl in ${1+"$@"}
do
    echo "*****	$pl *****"
    $perl -MO=C,-obtest.tc $pl			\
	&& mv btest.tc btest.c			\
	&& $perl cc_harness -o btest btest.c	\
	&& (cd $testdir; $cwd/btest)
done
