# # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright 2021 OmniOS Community Edition (OmniOSce) Association. # # # These are tests that come from usr/src/contrib/ast, and the test driver # itself. # DF_TESTS= \ shtests \ tests/alias.sh \ tests/append.sh \ tests/arith.sh \ tests/arrays.sh \ tests/arrays2.sh \ tests/attributes.sh \ tests/basic.sh \ tests/bracket.sh \ tests/builtins.sh \ tests/case.sh \ tests/comvar.sh \ tests/comvario.sh \ tests/coprocess.sh \ tests/cubetype.sh \ tests/enum.sh \ tests/exit.sh \ tests/expand.sh \ tests/functions.sh \ tests/glob.sh \ tests/grep.sh \ tests/heredoc.sh \ tests/io.sh \ tests/leaks.sh \ tests/locale.sh \ tests/math.sh \ tests/nameref.sh \ tests/namespace.sh \ tests/options.sh \ tests/path.sh \ tests/pointtype.sh \ tests/pty.sh \ tests/quoting.sh \ tests/quoting2.sh \ tests/readcsv.sh \ tests/recttype.sh \ tests/restricted.sh \ tests/return.sh \ tests/select.sh \ tests/sigchld.sh \ tests/signal.sh \ tests/statics.sh \ tests/subshell.sh \ tests/substring.sh \ tests/tilde.sh \ tests/timetype.sh \ tests/treemove.sh \ tests/types.sh \ tests/variables.sh \ tests/vartree1.sh \ tests/vartree2.sh # # These are additional illumos tests and the README # DF_XTESTS= \ README.tests \ tests/illumos_13434_chunked_heredoc.sh \ tests/illumos_4149_builtin_head.sh \ tests/sun_solaris_array_default_datatype.sh \ tests/sun_solaris_builtin_poll.sh \ tests/sun_solaris_builtin_sum.sh \ tests/sun_solaris_builtin_tail.sh \ tests/sun_solaris_command_substitution.sh \ tests/sun_solaris_compound_misc.sh \ tests/sun_solaris_compound_nameref.sh \ tests/sun_solaris_compoundvario.sh \ tests/sun_solaris_cr_xxxxxxxx_template.sh \ tests/sun_solaris_cr_6687139_command_substitution_exec_redirection_allocation_loop.sh \ tests/sun_solaris_cr_6713682_compound_var_bleeds_through_subshell.sh \ tests/sun_solaris_cr_6722134_background_CHLD_trap.sh \ tests/sun_solaris_cr_6753538_subshell_leaks_umask.sh \ tests/sun_solaris_cr_6754020_weird_square_bracket_expansion.sh \ tests/sun_solaris_cr_6763594_command_failure_execs_twice.sh \ tests/sun_solaris_cr_6766246_pattern_matching_bug.sh \ tests/sun_solaris_cr_6769332_substitutions_terminate_shell_after_257_iterations.sh \ tests/sun_solaris_cr_6777491_lacks_arithmetric_function_iszero.sh \ tests/sun_solaris_cr_6778077_sigthaw_trap.sh \ tests/sun_solaris_cr_6789247_printf_hexfloat_rounding.sh \ tests/sun_solaris_cr_6800929_large_command_substitution_hang.sh \ tests/sun_solaris_cr_6805792_varmovetest1.sh \ tests/sun_solaris_cr_6805794_character_to_wchar_not_working.sh \ tests/sun_solaris_cr_6805795_negative_zero.sh \ tests/sun_solaris_cr_6807179_shellpattern_uses_getpwnam.sh \ tests/sun_solaris_cr_6835835_builtin_cat_n_broken.sh \ tests/sun_solaris_cr_6848486_echo_test_with_test_undefined_executes_test_builtin.sh \ tests/sun_solaris_cr_6855875_typeset_hexfloat_has_too_few_digits.sh \ tests/sun_solaris_cr_6862121_shbinexec_kernel_module_defunct.sh \ tests/sun_solaris_cr_6881017_background_process_in_subshell_hangs_caller.sh \ tests/sun_solaris_cr_6887363_shell_sometimes_mishandles_return_value_of_its_child_process.sh \ tests/sun_solaris_cr_6904557_wc_no_longer_counts_number_of_bytes_correctly.sh \ tests/sun_solaris_cr_6904575_cut_-d_with_multibyte_character_no_longer_works.sh \ tests/sun_solaris_cr_6904878_join_-t_no_longer_works_with_multibyte_char_separator.sh \ tests/sun_solaris_cr_6907460_EXIT_trap_handlers_are_sometimes_executed_twice.sh \ tests/sun_solaris_getconf.sh \ tests/sun_solaris_locale_misc.sh \ tests/sun_solaris_local_compound_nameref001.sh \ tests/sun_solaris_staticvariables.sh \ tests/sun_solaris_vartree001.sh \ tests/sun_solaris_vartree002.sh \ tests/sun_solaris_vartree003.sh TESTFILES= $(DF_TESTS) $(DF_XTESTS) TESTFILESRCDIR= $(ASTSRC) ROOTTESTDIRBASE= $(ROOT)/opt/ksh93-tests # Rules for executables $(ROOTTESTDIRBASE)/shtests := FILEMODE= 755 $(ROOTTESTDIRBASE)/% $(ROOTTESTDIRBASE)/tests/%: common/tests/% $(INS.file) $(ROOTTESTDIRBASE)/%: $(TESTFILESRCDIR)/% $(INS.file) $(ROOTTESTDIRBASE)/%: $(TESTFILESRCDIR)/tests/% $(INS.file) $(ROOTTESTDIRBASE) $(ROOTTESTDIRBASE)/tests: $(INS.dir) ROOTTESTDIRS= $(ROOTTESTDIRBASE) .WAIT $(ROOTTESTDIRBASE)/tests ROOTTESTFILES= $(TESTFILES:%=$(ROOTTESTDIRBASE)/%) _testinstall: $(ROOTTESTDIRS) .WAIT $(ROOTTESTFILES) install: _testinstall