3 case $PERL_CONFIG_SH in
5 if test ! -f config.sh; then
7 ln ../../config.sh . || \
8 ln ../../../config.sh . || \
9 (echo "Can't find config.sh."; exit 1)
15 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
17 echo "Extracting runtests (with variable substitutions)"
19 $spitshell >runtests <<!GROK!THIS!
24 export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh \$0; kill \$\$)
28 echo "runtests tty_flag ..."
41 if (true </dev/tty) >/dev/null 2>&1; then
48 echo "ttyflag should be one of tty, no-tty or choose"
53 if test X"\$TESTFILE" = X; then
57 if test X"\$PERL" = X; then
64 # The second branch is for testing without a tty or controlling terminal,
66 if test \$tty = Y; then
67 \$PERL \$TESTFILE \$TEST_ARGS \$TEST_FILES </dev/tty
69 PERL_SKIP_TTY_TEST=1 \$PERL \$TESTFILE \$TEST_ARGS \$TEST_FILES
72 echo "Ran tests" > rantests