History log of /freebsd-10.1-release/bin/pkill/tests/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
272682 07-Oct-2014 rodrigc

MFC r272549:

Fix pkill unit test

Approved by: re (gjb)

272461 03-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


270150 18-Aug-2014 asomers

MFC r269977

Skip pgrep-j and pkill-j if jail or jls is not installed.

Even though jail is part of the base system, it can be disabled by src.conf
settings. Therefore, it should be listed as a required program for tests that
use it.


264996 27-Apr-2014 jmmv

MFC various moves of tools/regressions/ tests to the new infrastructure.

- r263220 Migrate tools/regression/sbin/ to the new tests layout.
- r263222 Add Makefile missed in r263220.
- r263226 Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout.
- r263227 Migrate most of tools/regression/usr.bin/ to the new tests layout.
- r263345 Expand tabs that sneaked in into spaces.
- r263346 Migrate tools/regression/usr.bin/make/ to the new tests layout.
- r263348 Add Makefiles missed in r263346.
- r263351 Migrate tools/regression/usr.bin/pkill/ to the new tests layout.
- r263388 Mark multi_test as requiring /usr/share/dict/words.
- r263814 Fix path to the run.pl script to let these tests run.
- r264742 Prevent building tests when bootstrapping make.

This is 'make tinderbox' clean.


263351 19-Mar-2014 jmmv

Migrate tools/regression/usr.bin/pkill to the new tests layout.

Interestingly, the pkill tool lives in bin, not usr.bin. Haven't bothered
to check if this is because the tool moved or because the tests were
originally added in the wrong place.


262961 09-Mar-2014 jmmv

Fix pkill tests so that they run cleanly with prove.

This fixes a pgrep test that assumed that PID 2 was named g_event. This
does not seem to be the case any longer (and I don't know if it ever was
in all possible setups).

Change this test to use the idle loop instead and determine its expected
PID using ps without assuming any specific ID.


203802 12-Feb-2010 pjd

- Implement -q option for pgrep(1).
- Add regression test to test -q option.


201491 04-Jan-2010 obrien

Fix formatting.


201489 04-Jan-2010 obrien

Catch up with UNIX98-style PTY's.


199141 10-Nov-2009 jhb

Purge some useless mergeinfo.


189613 10-Mar-2009 rwatson

Rename files that collide on case-insensitive file systems by encoding
colliding upper case letters as the lower case letter with a '_' in
front.

MFC after: 3 days
Discussed with: ed
Spotted by: Michael David Crawford <mdc at prgmr.com>


164558 23-Nov-2006 yar

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


152158 07-Nov-2005 pjd

Add tests for -t option with short tty name - pkill(1) should accept both
(eg. "ttyv0" and "v0").


149474 25-Aug-2005 pjd

Add regression tests for '-L' option.


149472 25-Aug-2005 pjd

'-F' option behaviour was reverted, so revert previous commit.


149436 24-Aug-2005 pjd

'-F' option now needs locked pidfile. Modify regression tests respectively.


143880 20-Mar-2005 pjd

Add regression tests for pkill/pgrep.

MFC after: 3 days