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
59 # The second branch is for testing without a tty or controlling terminal,
61 if test \$tty = Y; then
62 ./perl$_exe \$TESTFILE \$TEST_ARGS \$TEST_FILES </dev/tty
64 PERL_SKIP_TTY_TEST=1 ./perl$_exe \$TESTFILE \$TEST_ARGS \$TEST_FILES
67 echo "Ran tests" > rantests