Makefile.testshell revision 3e14f97f673e8a630f076077de35afdd43dc1587
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# CDDL HEADER START
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# The contents of this file are subject to the terms of the
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# Common Development and Distribution License (the "License").
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# You may not use this file except in compliance with the License.
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# See the License for the specific language governing permissions
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# and limitations under the License.
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# When distributing Covered Code, include this CDDL HEADER in each
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# If applicable, add the following below this CDDL HEADER, with the
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# fields enclosed by brackets "[]" replaced with your own identifying
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# information: Portions Copyright [yyyy] [name of copyright owner]
491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27Yanmin Sun# CDDL HEADER END
63d763c84bef3a708cb75b6de1f5f809681e788cLuping Quan# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
63d763c84bef3a708cb75b6de1f5f809681e788cLuping Quan# Run the ksh93 minimum set of tests
63d763c84bef3a708cb75b6de1f5f809681e788cLuping Quan# - "builtins.sh" may fail in some locales like this:
# builtins.sh[274]: printf "%T" now
# - "options.sh" may currently fail in some locales with:
# options.sh[145]: -G ** failed -- expected 'bam.c bar bar.c bar/bam.c bar/foo.c foo foo/bam.c', got 'bam.c bar bar/bam.c bar.c bar/foo.c foo foo/bam.c'
# options.sh[149]: -G **/*.c failed -- expected 'bam.c bar.c bar/bam.c bar/foo.c foo/bam.c', got 'bam.c bar/bam.c bar.c bar/foo.c foo/bam.c'
# glob.sh[157] glob -- expected '<d> <dd> <de> <Beware>', got '<Beware> <d> <dd> <de>'
# glob.sh[277] glob -- expected '<abc> <abe> <bdir> <ca> <de> <man> <Beware>', got '<abc> <abe> <bdir> <Beware> <ca> <de> <man>'
# being integrated into OS/Net and then change the test sequence to
# use ksh93's associative/compound variables (this may require a flag
TESTSRC= $(LIBSHELLBASE)/common/tests
# Boolean (true/false) flag to control whether we should make test
(supported_locales="$$(/usr/bin/locale -a)" ; \
[[ "$${test_item}" == "$(TESTSRC)/builtins.sh" || \
"$${test_item}" == "$(TESTSRC)/glob.sh" || \
"$${test_item}" == "$(TESTSRC)/options.sh" ]] || \
SHELL="$(SRC)/cmd/ksh/$(LIBSHELLMACH)/ksh" \
done | tee /dev/stderr)" ; \