xref: /illumos-gate/usr/src/cmd/ast/libshell/Makefile.tests (revision dd72704bd9e794056c558153663c739e2012d721)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
24# Copyright 2021 OmniOS Community Edition (OmniOSce) Association.
25#
26
27#
28# These are tests that come from usr/src/contrib/ast, and the test driver
29# itself.
30#
31DF_TESTS= \
32	shtests \
33	tests/alias.sh \
34	tests/append.sh \
35	tests/arith.sh \
36	tests/arrays.sh \
37	tests/arrays2.sh \
38	tests/attributes.sh \
39	tests/basic.sh \
40	tests/bracket.sh \
41	tests/builtins.sh \
42	tests/case.sh \
43	tests/comvar.sh \
44	tests/comvario.sh \
45	tests/coprocess.sh \
46	tests/cubetype.sh \
47	tests/enum.sh \
48	tests/exit.sh \
49	tests/expand.sh \
50	tests/functions.sh \
51	tests/glob.sh \
52	tests/grep.sh \
53	tests/heredoc.sh \
54	tests/io.sh \
55	tests/leaks.sh \
56	tests/locale.sh \
57	tests/math.sh \
58	tests/nameref.sh \
59	tests/namespace.sh \
60	tests/options.sh \
61	tests/path.sh \
62	tests/pointtype.sh \
63	tests/pty.sh \
64	tests/quoting.sh \
65	tests/quoting2.sh \
66	tests/readcsv.sh \
67	tests/recttype.sh \
68	tests/restricted.sh \
69	tests/return.sh \
70	tests/select.sh \
71	tests/sigchld.sh \
72	tests/signal.sh \
73	tests/statics.sh \
74	tests/subshell.sh \
75	tests/substring.sh \
76	tests/tilde.sh \
77	tests/timetype.sh \
78	tests/treemove.sh \
79	tests/types.sh \
80	tests/variables.sh \
81	tests/vartree1.sh \
82	tests/vartree2.sh
83
84#
85# These are additional illumos tests and the README
86#
87
88DF_XTESTS= \
89	README.tests \
90	tests/illumos_13434_chunked_heredoc.sh \
91	tests/illumos_4149_builtin_head.sh \
92	tests/sun_solaris_array_default_datatype.sh \
93	tests/sun_solaris_builtin_poll.sh \
94	tests/sun_solaris_builtin_sum.sh \
95	tests/sun_solaris_builtin_tail.sh \
96	tests/sun_solaris_command_substitution.sh \
97	tests/sun_solaris_compound_misc.sh \
98	tests/sun_solaris_compound_nameref.sh \
99	tests/sun_solaris_compoundvario.sh \
100	tests/sun_solaris_cr_xxxxxxxx_template.sh \
101	tests/sun_solaris_cr_6687139_command_substitution_exec_redirection_allocation_loop.sh \
102	tests/sun_solaris_cr_6713682_compound_var_bleeds_through_subshell.sh \
103	tests/sun_solaris_cr_6722134_background_CHLD_trap.sh \
104	tests/sun_solaris_cr_6753538_subshell_leaks_umask.sh \
105	tests/sun_solaris_cr_6754020_weird_square_bracket_expansion.sh \
106	tests/sun_solaris_cr_6763594_command_failure_execs_twice.sh \
107	tests/sun_solaris_cr_6766246_pattern_matching_bug.sh \
108	tests/sun_solaris_cr_6769332_substitutions_terminate_shell_after_257_iterations.sh \
109	tests/sun_solaris_cr_6777491_lacks_arithmetric_function_iszero.sh \
110	tests/sun_solaris_cr_6778077_sigthaw_trap.sh \
111	tests/sun_solaris_cr_6789247_printf_hexfloat_rounding.sh \
112	tests/sun_solaris_cr_6800929_large_command_substitution_hang.sh \
113	tests/sun_solaris_cr_6805792_varmovetest1.sh \
114	tests/sun_solaris_cr_6805794_character_to_wchar_not_working.sh \
115	tests/sun_solaris_cr_6805795_negative_zero.sh \
116	tests/sun_solaris_cr_6807179_shellpattern_uses_getpwnam.sh \
117	tests/sun_solaris_cr_6835835_builtin_cat_n_broken.sh \
118	tests/sun_solaris_cr_6848486_echo_test_with_test_undefined_executes_test_builtin.sh \
119	tests/sun_solaris_cr_6855875_typeset_hexfloat_has_too_few_digits.sh \
120	tests/sun_solaris_cr_6862121_shbinexec_kernel_module_defunct.sh \
121	tests/sun_solaris_cr_6881017_background_process_in_subshell_hangs_caller.sh \
122	tests/sun_solaris_cr_6887363_shell_sometimes_mishandles_return_value_of_its_child_process.sh \
123	tests/sun_solaris_cr_6904557_wc_no_longer_counts_number_of_bytes_correctly.sh \
124	tests/sun_solaris_cr_6904575_cut_-d_with_multibyte_character_no_longer_works.sh \
125	tests/sun_solaris_cr_6904878_join_-t_no_longer_works_with_multibyte_char_separator.sh \
126	tests/sun_solaris_cr_6907460_EXIT_trap_handlers_are_sometimes_executed_twice.sh \
127	tests/sun_solaris_getconf.sh \
128	tests/sun_solaris_locale_misc.sh \
129	tests/sun_solaris_local_compound_nameref001.sh \
130	tests/sun_solaris_staticvariables.sh \
131	tests/sun_solaris_vartree001.sh \
132	tests/sun_solaris_vartree002.sh \
133	tests/sun_solaris_vartree003.sh
134
135TESTFILES= $(DF_TESTS) $(DF_XTESTS)
136
137TESTFILESRCDIR=		$(ASTSRC)
138ROOTTESTDIRBASE=	$(ROOT)/opt/ksh93-tests
139
140# Rules for executables
141$(ROOTTESTDIRBASE)/shtests := FILEMODE= 755
142
143$(ROOTTESTDIRBASE)/% $(ROOTTESTDIRBASE)/tests/%: common/tests/%
144	$(INS.file)
145
146$(ROOTTESTDIRBASE)/%: $(TESTFILESRCDIR)/%
147	$(INS.file)
148
149$(ROOTTESTDIRBASE)/%: $(TESTFILESRCDIR)/tests/%
150	$(INS.file)
151
152$(ROOTTESTDIRBASE) $(ROOTTESTDIRBASE)/tests:
153	$(INS.dir)
154
155ROOTTESTDIRS= $(ROOTTESTDIRBASE) .WAIT $(ROOTTESTDIRBASE)/tests
156ROOTTESTFILES= $(TESTFILES:%=$(ROOTTESTDIRBASE)/%)
157
158_testinstall: $(ROOTTESTDIRS) .WAIT $(ROOTTESTFILES)
159install: _testinstall
160