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 ..."
39 if (true </dev/tty) >/dev/null 2>&1; then
46 echo "ttyflag should be one of tty, no-tty or choose"
51 if test X"\$TESTFILE" = X; then
55 if test X"\$PERL" = X; then
62 # The second branch is for testing without a tty or controlling terminal,
64 if test \$tty = Y; then
65 \$PERL \$TESTFILE \$TEST_ARGS \$TEST_FILES </dev/tty
67 PERL_SKIP_TTY_TEST=1 \$PERL \$TESTFILE \$TEST_ARGS \$TEST_FILES
70 echo "Ran tests" > rantests