summaryrefslogtreecommitdiff
path: root/test_harness
blob: 1a294cee98d69560ffecca23a01ba4da875e171d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
cwd=`pwd`
if [ -f bperl ]; then
    perl=./bperl
else
    perl="perl -Mblib"
fi
if [ "X$PERL_SRC" != "X" ]; then
    testdir=$PERL_SRC/t
else
    testdir=t
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