Skip to content

Commit

Permalink
...and now make it work with shcomp (re: aed5c6d)
Browse files Browse the repository at this point in the history
  • Loading branch information
McDutchie committed Mar 13, 2021
1 parent aed5c6d commit 844e6b2
Show file tree
Hide file tree
Showing 52 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/alias.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

alias foo='print hello'
if [[ $(foo) != hello ]]
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/append.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

{
x=abc
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/arith.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

trap '' FPE # NOTE: osf.alpha requires this (no ieee math)

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/arrays.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

function fun
{
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/arrays2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

for ((i=0; i < 4; i++ ))
do for ((j=0; j < 5; j++ ))
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/attributes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

# ======
# as of 93u+, typeset -xu/-xl failed to change case in a value (rhbz#1188377)
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

bincat=$(whence -p cat)
binecho=$(whence -p echo)
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/bracket.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

null=''
if [[ ! -z $null ]]
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/builtins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

bincat=$(whence -p cat)

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/case.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

bar=foo2
bam=foo[3]
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/comvar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

#test for compound variables
Command=${0##*/}
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/comvario.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

# "nounset" disabled for now
#set -o nounset
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/coprocess.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
########################################################################
# test the behavior of co-processes

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

if [[ -d /cygdrive ]]
then err_exit cygwin detected - coprocess tests disabled - enable at the risk of wedging your system
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/cubetype.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

integer n=2

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/enum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

enum Color_t=(red green blue orange yellow)
enum -i Sex_t=(Male Female)
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/exit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

function abspath
{
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/expand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

# {...} expansion tests -- ignore if not supported

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

compiled=''
read -n4 c < $0 2> /dev/null
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/glob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

function test_glob
{
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/grep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

function grep
{
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/heredoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

bincat=$(whence -p cat)

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/io.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

unset HISTFILE

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/jobs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

# All the tests here should run with job control on
set -o monitor
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/leaks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

# Determine method for running tests.
# The 'vmstate' builtin can be used if ksh was compiled with vmalloc.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/locale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

unset LANG LANGUAGE "${!LC_@}"

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/math.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

set -o nounset

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/nameref.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

function checkref
{
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/namespace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

if((!SHOPT_NAMESPACE))
then warning 'shell compiled without SHOPT_NAMESPACE; skipping tests'
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/options.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

unset HISTFILE
export LC_ALL=C ENV=/./dev/null
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

# to avoid spurious test failures with 'whence -a' tests, we need
# to remove any duplicate paths to the same directory from $PATH.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/pointtype.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

typeset -T Pt_t=(
float x=1
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/pty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

# These are tests for the interactive shell, run in a pseudoterminal utility
# called 'pty', which allows for scripting interactive sessions and which is
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/quoting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

binecho=$(whence -p echo)

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/quoting2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

set -o noglob
if [[ 'hi there' != "hi there" ]]
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/readcsv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

tmp1=$tmp/tmp1.csv
tmp2=$tmp/tmp2.csv
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/recttype.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

typeset -T Pt_t=(
float x=1
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/restricted.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

binecho=$(whence -p echo)

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/return.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
########################################################################
# test the behavior of return and exit with functions

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

unset HISTFILE

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/select.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

PS3='ABC '

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/shtests
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function valxml

command set +o posix 2>/dev/null
unset DISPLAY FIGNORE HISTFILE POSIXLY_CORRECT _AST_FEATURES
export ENV=/./dev/null
export ENV=/./dev/null SHTESTS_COMMON=$PWD/_common
trap + PIPE # unadvertized -- set SIGPIPE to SIG_DFL #

integer compile=-1 posix=-1 utf8=-1
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/sigchld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

float DELAY=${1:-0.02}
integer FOREGROUND=10 BACKGROUND=2
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/signal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

unset n s t
typeset -A SIG
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/statics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Written by Roland Mainz <roland.mainz@nrubsig.org>
#

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

set -o nounset

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/subshell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# #
########################################################################

. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"

typeset -F SECONDS # for fractional seconds in PS4

Expand Down

0 comments on commit 844e6b2

Please sign in to comment.