History log of /freebsd-head/bin/pkill/tests/pkill-j_test.sh
Revision Date Author Comments
d7d4326b414d043a46827d9d0ea449b119ed358c 19-Oct-2016 br <br@FreeBSD.org> Increase timeouts so tests have more chances to succeed
on MIPS64EB in QEMU.

Sponsored by: DARPA, AFRL
Sponsored by: HEIF5
00d578928eca75be320b36d37543a7e2a4f9fbdb 27-May-2016 grehan <grehan@FreeBSD.org> Create branch for bhyve graphics import.
9e4b124ba9f2b548c4360e61b1b979fee54875b4 29-Aug-2015 jamie <jamie@FreeBSD.org> MFC r287012:

Make pkill/pgrep -j ARG take jname, not just jid.

PR: 201588
Submitted by: Daniel Shahaf <danielsh at apache.org>
c4b111a2732b06d29af6310d22e942c6bbb7e888 22-Aug-2015 jamie <jamie@FreeBSD.org> Make pkill/pgrep -j ARG take jname, not just jid.

PR: 201588
Submitted by: Daniel Shahaf <danielsh at apache.org>
MFC after: 3 days
26d3f673f7e5ee199b1670f9fe60f725d5ccd4b8 23-May-2015 rodrigc <rodrigc@FreeBSD.org> Merge: 278618 278633 278636 278653 278742 278776 279121

Multiple fixes for pgrep and pkill tests.

PR: 19109
1b927988cf08d72f4aad46a9f54c31b8f3ca33cf 21-Feb-2015 ngie <ngie@FreeBSD.org> Disguising stderr from jls generally considered harmful

Undisguising it dumps out the following logspew:

jls: unknown parameter: allow

PR: 191019
963c317160962081a48ff2448abdedf53e6b99c7 14-Feb-2015 ngie <ngie@FreeBSD.org> Refactor pkill-j_test to reflect the relevant changes done to pgrep-j_test

r278742:

Simplify jail_name_to_jid and try to be more fault tolerant when scanning for
the jail ID (poll up to 10 times for the jail IDs to become available)

If the scan fails, the code will fall through and fail as it does with Jenkins
today

r278636:

Parameterize out the amount of sleep done in each test

Set the value in each test to a different amount to avoid potential
side-effects with other instances of the test (or lingering processes) still
being present on the system

r278633:

Refactor the tests

1. `id -u` -> 0 is now only checked once; the entire test script is now skipped
if this assertion is violated
2. De-dent whitespace, based on 1.
3. Only setup the symlink for $sleep once at the top of the script, and tear it
down once at the bottom of the script
42bcc4fbacfc5d680c32bd2223dd7cead4e7a560 05-Oct-2014 rodrigc <rodrigc@FreeBSD.org> MFC r272305

Fix pkill unit test.
a4de6b70e82040d4a9589e533ca4f60184bcc886 30-Sep-2014 rodrigc <rodrigc@FreeBSD.org> Fix pkill unit tests.

- use daemon(8) to write out a pid file for processes,
and check for for the existence of that file after
killing processes
- use explict named parameters to jail(8)
1e4589b921fdaa1b1d2fc6b6ed016f1e0a01cb8f 27-Apr-2014 jmmv <jmmv@FreeBSD.org> 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.
6347abb8452f9f60737489ce782cf23fcd90354c 19-Mar-2014 jmmv <jmmv@FreeBSD.org> 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.