opnsense-src/tools/regression/usr.bin
Yaroslav Tykhiy a6afe5ada8 Fix and extend the -j option to pkill/pgrep WRT the jail
wildcard specifications.  Earlier the only wildcard syntax
was "-j 0" for "any jail".  There were at least
two shortcomings in it:  First, jail ID 0 was abused; it
meant "no jail" in other utils, e.g., ps(1).  Second, it
was impossible to match processed not in jail, which could
be useful to rc.d developers.  Therefore a new syntax is
introduced: "-j any" means any jail while "-j none" means
out of jail.  The old syntax is preserved for compatibility,
but now it's deprecated because it's limited and confusing.

Update the respective regression tests.  While I'm here,
make the tests more complex but sensitive:  Start several
processes, some in jail and some out of jail, so we can
detect that only the right processes are killed by pkill
or matched by pgrep.

Reviewed by:	gad, pjd
MFC after:	1 week
2006-11-23 11:55:17 +00:00
..
env Correct one regression test (which was expected an incorrect answer), and 2005-07-15 02:31:15 +00:00
file2c o -n option added. 2005-05-15 07:35:34 +00:00
join Switch over to a different, more flexible test output protocol that's 2004-11-11 19:47:55 +00:00
jot Add the examples from the manual page. 2006-11-06 15:05:03 +00:00
m4 Switch over to a different, more flexible test output protocol that's 2004-11-11 19:47:55 +00:00
make Add first tests for semicolon handling. The first test fails. This is 2005-10-18 07:28:09 +00:00
pkill Fix and extend the -j option to pkill/pgrep WRT the jail 2006-11-23 11:55:17 +00:00
printf Also test \0 in the format string. 2005-04-14 18:33:14 +00:00
sed Switch over to a different, more flexible test output protocol that's 2004-11-11 19:47:55 +00:00
uudecode Switch over to a different, more flexible test output protocol that's 2004-11-11 19:47:55 +00:00
uuencode Switch over to a different, more flexible test output protocol that's 2004-11-11 19:47:55 +00:00
xargs Switch over to a different, more flexible test output protocol that's 2004-11-11 19:47:55 +00:00
Makefile Add a few regression tests for printf(1). 2005-04-13 20:08:17 +00:00
regress.m4 Switch over to a different, more flexible test output protocol that's 2004-11-11 19:47:55 +00:00