aboutsummaryrefslogtreecommitdiff
path: root/bin/pkill/tests
Commit message (Collapse)AuthorAgeFilesLines
* MFC r307519,r307629:Eitan Adler2018-03-032-8/+9
| | | | | | | | | | Increase timeout so low-end platforms have a chance to complete test procedures. This fixes operation in QEMU/MIPS64. Notes: svn path=/stable/11/; revision=330332
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedEnji Cooper2016-05-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=299094
* MFHGlen Barber2016-03-101-0/+11
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296625
| * DIRDEPS_BUILD: Connect MK_TESTS.Bryan Drewery2016-03-091-0/+11
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296587
* | First pass to fix the 'tests' packages.Glen Barber2016-02-021-0/+4
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295171
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andEnji Cooper2015-10-121-2/+0
| | | | | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison Notes: svn path=/head/; revision=289172
* Make pkill/pgrep -j ARG take jname, not just jid.Jamie Gritton2015-08-222-2/+53
| | | | | | | | | PR: 201588 Submitted by: Daniel Shahaf <danielsh at apache.org> MFC after: 3 days Notes: svn path=/head/; revision=287012
* Disguising stderr from jls generally considered harmfulEnji Cooper2015-02-212-2/+4
| | | | | | | | | | | Undisguising it dumps out the following logspew: jls: unknown parameter: allow PR: 191019 Notes: svn path=/head/; revision=279121
* Refactor pkill-j_test to reflect the relevant changes done to pgrep-j_testEnji Cooper2015-02-141-75/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=278776
* Simplify jail_name_to_jid and try to be more fault tolerant when scanning forEnji Cooper2015-02-141-15/+14
| | | | | | | | | | 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 Notes: svn path=/head/; revision=278742
* Call wait to ensure that background processes have diedEnji Cooper2015-02-131-0/+2
| | | | | | | This is being done to establish parity with pgrep-j_test Notes: svn path=/head/; revision=278653
* Parameterize out the amount of sleep done in each testEnji Cooper2015-02-121-9/+12
| | | | | | | | | 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 Notes: svn path=/head/; revision=278636
* Refactor the testsEnji Cooper2015-02-121-59/+48
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=278633
* Add debugging output to help track down the recent Jenkins failuresEnji Cooper2015-02-121-3/+3
| | | | Notes: svn path=/head/; revision=278618
* Fix pkill unit tests.Craig Rodrigues2014-09-302-53/+106
| | | | | | | | | | - 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) Notes: svn path=/head/; revision=272305
* Skip pgrep-j and pkill-j if jail or jls is not installed.Alan Somers2014-08-141-0/+2
| | | | | | | | | | | | | 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. CR: D603 MFC after: 3 days Sponsored by: Spectra Logic Notes: svn path=/head/; revision=269977
* Migrate tools/regression/usr.bin/pkill to the new tests layout.Julio Merino2014-03-1929-0/+1047
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. Notes: svn path=/head/; revision=263351