<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin/pkill/tests, branch stable/14</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F14</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F14'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-04-06T13:54:03Z</updated>
<entry>
<title>pkill tests: Fix pkill usage in the pkill -x test</title>
<updated>2025-04-06T13:54:03Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-03-15T11:12:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e1a3b7ff9fe6152b4a112cc47c5155c4c9da9b74'/>
<id>urn:sha1:e1a3b7ff9fe6152b4a112cc47c5155c4c9da9b74</id>
<content type='text'>
The target process name(s) mark the beginning of the command's
positional parameters, so the -P filter wasn't getting applied as
intended.  As a result, the second "pkill -x sleep -P $$" would kill all
sleep(1) processes in the system, which can cause problems when running
tests in parallel.

MFC after:	2 weeks

(cherry picked from commit 57b09e470dbd84d1491a8972cf504b25e788a6c3)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>urn:sha1:d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>pkill: tests: do a pass for case-sensitive conflicts</title>
<updated>2023-03-20T19:54:54Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2023-03-20T19:51:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=822057bfbbbcdb722a7ccd0e40d6b7e82b1d83f7'/>
<id>urn:sha1:822057bfbbbcdb722a7ccd0e40d6b7e82b1d83f7</id>
<content type='text'>
As in 76b6a59f9d30a5a39a5ed, encode upper-case flag tests with a leading
underbar to avoid collisions (thus, erroneously dirty git repos) on
case-sensitive filesystems.

Sponsored by:	Klara, Inc.
</content>
</entry>
<entry>
<title>pkill: use an ARG_MAX size buffer for argument matching</title>
<updated>2023-03-20T19:19:36Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2023-03-20T19:19:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3610bffd2888b65389a46e8d075ce8e1fc83af4c'/>
<id>urn:sha1:3610bffd2888b65389a46e8d075ce8e1fc83af4c</id>
<content type='text'>
Right now pkill/pgrep cut off at _POSIX2_LINE_MAX (2048), but argument
strings can be much larger (ARG_MAX is 256K/512K).  Stop arbitrarily
cutting the search off at 2K, rather than documenting the limit.

Reviewed by:	allanjude (earlier version), des
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D38663
</content>
</entry>
<entry>
<title>bin/pkill: Fix {pgrep,pkill}-j_test.sh</title>
<updated>2021-02-13T13:53:51Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2021-02-13T13:53:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5ff2e55e0071dabbf18cdbe13a1230822d1270d4'/>
<id>urn:sha1:5ff2e55e0071dabbf18cdbe13a1230822d1270d4</id>
<content type='text'>
The POSIX sh case statement does not allow for pattern matching using the
regex + qualifier so this case statement never matches. Instead just check
for a string starting with a digit followed by any character.

While touching these files also fix various shellcheck warnings.

`kyua -v parallelism=4 test` failed before, succeeds now.

Reviewed By:	imp
Differential Revision: https://reviews.freebsd.org/D28480
</content>
</entry>
<entry>
<title>Increase timeouts so tests have more chances to succeed</title>
<updated>2016-10-19T12:23:02Z</updated>
<author>
<name>Ruslan Bukin</name>
<email>br@FreeBSD.org</email>
</author>
<published>2016-10-19T12:23:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=51acc171d1c28a9c8ef6991c6b73788570ccbdd6'/>
<id>urn:sha1:51acc171d1c28a9c8ef6991c6b73788570ccbdd6</id>
<content type='text'>
on MIPS64EB in QEMU.

Sponsored by:	DARPA, AFRL
Sponsored by:	HEIF5
</content>
</entry>
<entry>
<title>Increase timeout so low-end platforms have a chance to complete test</title>
<updated>2016-10-17T10:21:53Z</updated>
<author>
<name>Ruslan Bukin</name>
<email>br@FreeBSD.org</email>
</author>
<published>2016-10-17T10:21:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6bfde4a6fb2d67f7eef690fa46d3fcef0b129a20'/>
<id>urn:sha1:6bfde4a6fb2d67f7eef690fa46d3fcef0b129a20</id>
<content type='text'>
procedures.

This fixes operation in QEMU/MIPS64.

Sponsored by:	DARPA, AFRL
Sponsored by:	HEIF5
</content>
</entry>
<entry>
<title>Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed</title>
<updated>2016-05-04T23:20:53Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2016-05-04T23:20:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=430f7286a566b1407c7b32ce13585caf5aa59b92'/>
<id>urn:sha1:430f7286a566b1407c7b32ce13585caf5aa59b92</id>
<content type='text'>
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 &lt;bsd.own.mk&gt;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
</content>
</entry>
<entry>
<title>MFH</title>
<updated>2016-03-10T21:16:01Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2016-03-10T21:16:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7d536dc855c85c15bf45f033d108a61b1f3cecc3'/>
<id>urn:sha1:7d536dc855c85c15bf45f033d108a61b1f3cecc3</id>
<content type='text'>
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>DIRDEPS_BUILD: Connect MK_TESTS.</title>
<updated>2016-03-09T22:46:01Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2016-03-09T22:46:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=15c433351f54e7cd5bec8d36c8e89e6a7fa55b26'/>
<id>urn:sha1:15c433351f54e7cd5bec8d36c8e89e6a7fa55b26</id>
<content type='text'>
Sponsored by:	EMC / Isilon Storage Division
</content>
</entry>
</feed>
