opnsense-src/bin/sh/tests/builtins
Enji Cooper 430f7286a5 Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed
after r298107

Summary of changes:

- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that
  namespacing is kept with FILES appropriately, and that this shouldn't need
  to be repeated if the namespace changes -- only the definition of PACKAGE
  needs to be changed
- Allow PACKAGE to be overridden by callers instead of forcing it to always be
  `tests`. In the event we get to the point where things can be split up
  enough in the base system, it would make more sense to group the tests
  with the blocks they're a part of, e.g. byacc with byacc-tests, etc
- Remove PACKAGE definitions where possible, i.e. where FILES wasn't used
  previously.
- Remove unnecessary TESTSPACKAGE definitions; this has been elided into
  bsd.tests.mk
- Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES;
  ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk.
- Fix installation of files under data/ subdirectories in lib/libc/tests/hash
  and lib/libc/tests/net/getaddrinfo
- Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup)

Document the proposed changes in share/examples/tests/tests/... via examples
so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of
replacing FILES. share/mk/bsd.README didn't seem like the appropriate method
of communicating that info.

MFC after: never probably
X-MFC with: r298107
PR: 209114
Relnotes: yes
Tested with: buildworld, installworld, checkworld; buildworld, packageworld
Sponsored by: EMC / Isilon Storage Division
2016-05-04 23:20:53 +00:00
..
alias.0
alias.0.stdout
alias.1
alias.1.stderr
alias3.0
alias3.0.stdout
alias4.0
break1.0
break2.0
break2.0.stdout
break3.0
break4.4
break5.4
break6.0 sh: Allow arbitrarily large numbers in break and continue. 2014-07-20 20:29:09 +00:00
builtin1.0
case1.0
case2.0
case3.0
case4.0
case5.0
case6.0
case7.0
case8.0
case9.0
case10.0
case11.0
case12.0
case13.0
case14.0
case15.0
case16.0
case17.0
case18.0
case19.0
case20.0 sh: Fix out of bounds read when there is no ] after a [:class:]. 2015-08-25 21:55:15 +00:00
cd1.0
cd2.0
cd3.0
cd4.0
cd5.0
cd6.0
cd7.0
cd8.0
cd9.0 sh: Add a test for 'cd -'. 2016-01-07 21:46:07 +00:00
cd9.0.stdout sh: Add a test for 'cd -'. 2016-01-07 21:46:07 +00:00
command1.0
command2.0
command3.0
command3.0.stdout
command4.0
command5.0
command5.0.stdout
command6.0
command6.0.stdout
command7.0
command8.0
command9.0
command10.0
command11.0
command12.0
dot1.0
dot2.0
dot3.0
dot4.0
eval1.0
eval2.0
eval3.0
eval4.0
eval5.0
eval6.0
eval7.0 sh: Fix break/continue/return in multiline eval. 2014-10-12 13:12:06 +00:00
eval8.7 sh: Fix break/continue/return in multiline eval. 2014-10-12 13:12:06 +00:00
exec1.0
exec2.0
exit1.0
exit2.8
exit3.0
export1.0
fc1.0
fc2.0
for1.0
for2.0
for3.0
getopts1.0 sh: Fix some unquoted variables in tests. 2016-04-09 16:06:13 +00:00
getopts1.0.stdout
getopts2.0 sh: Fix some unquoted variables in tests. 2016-04-09 16:06:13 +00:00
getopts2.0.stdout
getopts3.0 sh: Add some tests for normal use of getopts. 2014-05-07 21:45:25 +00:00
getopts4.0 sh: Add some tests for normal use of getopts. 2014-05-07 21:45:25 +00:00
getopts5.0 sh: Add some tests for normal use of getopts. 2014-05-07 21:45:25 +00:00
getopts6.0 sh: Don't discard getopts state on unknown option or missing argument. 2014-05-10 17:42:21 +00:00
getopts7.0 sh: Don't discard getopts state on unknown option or missing argument. 2014-05-10 17:42:21 +00:00
getopts8.0 sh: In getopts, unset OPTARG where POSIX says we should. 2014-05-10 19:18:49 +00:00
getopts8.0.stdout sh: In getopts, unset OPTARG where POSIX says we should. 2014-05-10 19:18:49 +00:00
getopts9.0 sh: Fix some unquoted variables in tests. 2016-04-09 16:06:13 +00:00
getopts9.0.stdout sh: Make getopts memory-safe if with changing arguments. 2014-10-26 17:50:33 +00:00
getopts10.0 sh: Ensure OPTIND=1 in subshell without forking does not affect outer env. 2016-01-07 20:48:24 +00:00
hash1.0
hash1.0.stdout
hash2.0
hash2.0.stdout
hash3.0
hash3.0.stdout
hash4.0
jobid1.0
jobid2.0
kill1.0 sh: Successfully do nothing when killing a terminated job. 2014-03-08 19:44:34 +00:00
kill2.0 sh: Allow kill %job on jobs started without job control. 2014-03-15 14:58:48 +00:00
lineno.0
lineno.0.stdout
lineno2.0 sh: Do not corrupt internal representation if LINENO inner expansion fails. 2014-02-27 16:54:43 +00:00
lineno3.0 sh: Fix LINENO and prompt after $'\0 and newline. 2014-10-03 20:24:56 +00:00
lineno3.0.stdout sh: Fix LINENO and prompt after $'\0 and newline. 2014-10-03 20:24:56 +00:00
local1.0
local2.0
local3.0
local4.0
local5.0 sh: Update associated state when restoring locals while leaving a function. 2016-01-10 16:31:28 +00:00
local6.0 sh: Add already working test for local-readonly interaction. 2016-01-22 18:10:36 +00:00
local7.0 sh: Clean a readonly local, even if the variable does not exist outside. 2016-01-22 20:10:08 +00:00
locale1.0
Makefile Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
printf1.0
printf2.0
printf3.0
printf4.0
read1.0
read1.0.stdout
read2.0
read3.0
read3.0.stdout
read4.0
read4.0.stdout
read5.0
read6.0
read7.0
read8.0 sh: Backslash-newline should not affect field splitting in read builtin. 2015-08-16 12:57:17 +00:00
read9.0 sh: Fix read with escaped IFS characters at the end. 2015-08-30 17:24:22 +00:00
return1.0
return2.1
return3.1
return4.0
return5.0
return6.4
return7.4
return8.0
set1.0
set2.0
set3.0 sh: Add test for 'set -o nolog'. 2016-03-09 21:05:21 +00:00
trap1.0
trap2.0
trap3.0
trap4.0
trap5.0
trap6.0
trap7.0
trap8.0
trap9.0
trap10.0
trap11.0
trap12.0
trap13.0
trap14.0
trap15.0 sh: Fix the trap builtin to be POSIX-compliant for 'trap exit SIG' and 'trap n n...'. 2015-04-18 23:49:57 +00:00
trap16.0 sh: Fix the trap builtin to be POSIX-compliant for 'trap exit SIG' and 'trap n n...'. 2015-04-18 23:49:57 +00:00
trap17.0 sh: Fix use-after-free if a trap replaces itself. 2016-03-28 18:58:40 +00:00
type1.0
type1.0.stderr
type2.0
type3.0
unalias.0
var-assign.0
var-assign2.0
wait1.0
wait2.0
wait3.0
wait4.0
wait5.0
wait6.0
wait7.0
wait8.0
wait9.127
wait10.0