1 case $PERL_CONFIG_SH in
3 if test ! -f config.sh; then
5 ln ../../config.sh . || \
6 ln ../../../config.sh . || \
7 (echo "Can't find config.sh."; exit 1)
13 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
15 echo "Extracting runtests (with variable substitutions)"
17 $spitshell >runtests <<!GROK!THIS!
22 export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh \$0; kill \$\$)
26 echo "runtests tty_flag ..."
31 if test X"\$PERL" = X; then
32 echo "please supply PERL in the environment"
44 if (true </dev/tty) >/dev/null 2>&1; then
51 echo "ttyflag should be one of tty, no-tty or choose"
56 if test X"\$TESTFILE" = 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