<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/sys/netgraph, branch release/13.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-23T17:43:30Z</updated>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-23T17:43:30Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9'/>
<id>urn:sha1:023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit d0b2dbfa0ecf)
</content>
</entry>
<entry>
<title>netgraph tests: Serialize</title>
<updated>2023-03-27T12:49:58Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-03-18T14:57:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e6b1b944b5aa1950834f27a8ab9188bcd736844d'/>
<id>urn:sha1:e6b1b944b5aa1950834f27a8ab9188bcd736844d</id>
<content type='text'>
Some tests share names for netgraph nodes, so they cannot be run in
parallel.

MFC after:	1 week

(cherry picked from commit bad8f86843fa34bf4d4d2bfb8183331c02ced87f)
</content>
</entry>
<entry>
<title>tests/netgraph: Tests for ng_vlan_rotate</title>
<updated>2021-06-16T11:25:04Z</updated>
<author>
<name>Lutz Donnerhacke</name>
<email>donner@FreeBSD.org</email>
</author>
<published>2021-06-06T23:56:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=053937ce6e1a72a72f8845c0dc8a10be71fea336'/>
<id>urn:sha1:053937ce6e1a72a72f8845c0dc8a10be71fea336</id>
<content type='text'>
Test functionality of ng_vlan_rotate(4):
 - Rotate 1 to 9 stagged vlans in any possible direction and length
 - Rotate random combinations of ethertypes (8100, 88a8, 9100)
 - Automatic reverse rotating for backward data flow
 - Test too many and too few vlans

Reviewed by:	kp (earlier version)
Differential Revision: https://reviews.freebsd.org/D30670

(cherry picked from commit 6b08e68be111d50931b0d30145f8b7e3402decaf)
</content>
</entry>
<entry>
<title>tests/netgraph: Tests for ng_hub</title>
<updated>2021-06-16T11:25:01Z</updated>
<author>
<name>Lutz Donnerhacke</name>
<email>donner@FreeBSD.org</email>
</author>
<published>2021-06-03T22:22:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7d243608d516ba421fe603b57fd430beba441eef'/>
<id>urn:sha1:7d243608d516ba421fe603b57fd430beba441eef</id>
<content type='text'>
Test functionality of ng_hub(4):
 - replicting traffic to anything but the sending hook
 - persistence
 - an unrestricted loop
 - implementation limits with many hooks.

Reviewed by:	kp
Differential Revision: https://reviews.freebsd.org/D30633

(cherry picked from commit 7863faa78ae271017c404c635b2a9d07379d4316)
</content>
</entry>
<entry>
<title>tests/netgraph: Tests for ng_bridge</title>
<updated>2021-06-15T12:38:49Z</updated>
<author>
<name>Lutz Donnerhacke</name>
<email>donner@FreeBSD.org</email>
</author>
<published>2021-06-04T10:59:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1b379f5858766867932eff72db19cf435fedd512'/>
<id>urn:sha1:1b379f5858766867932eff72db19cf435fedd512</id>
<content type='text'>
Test functionality of ng_bridge(4):
 - replicating traffic to anything but the sending hook
 - persistence
 - detect loops
 - unicast to only one link of many
 - stretch to implementation limits on broadcast

Reviewed by:	kp
Differential Revision: https://reviews.freebsd.org/D30647
Differential Revision: https://reviews.freebsd.org/D30699

(cherry picked from commit 61814702398ce29430b2bef75cbdd6fd2c07ad12)
(cherry picked from commit 5554abd9cc9702af30af90925b33c5efff4e7d88)
</content>
</entry>
<entry>
<title>tests/netgraph: Inital framework for testing libnetgraph</title>
<updated>2021-06-15T12:31:32Z</updated>
<author>
<name>Lutz Donnerhacke</name>
<email>donner@FreeBSD.org</email>
</author>
<published>2021-06-02T22:29:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=36c7408818c53ae0c1f1aee0250c5d3fe16b06e0'/>
<id>urn:sha1:36c7408818c53ae0c1f1aee0250c5d3fe16b06e0</id>
<content type='text'>
Provide a framework of functions to test various netgraph modules.
Tests contain:
 - creating, renaming, and destroying nodes
 - connecting and removing hooks
 - sending and receiving data
 - sending ASCII messages and receiving binary responses
 - errors can be passed for indiviual inspection or fail the test

Reviewed by:	kp
Differential Revision: https://reviews.freebsd.org/D30629
Differential Revision: https://reviews.freebsd.org/D30657
Differential Revision: https://reviews.freebsd.org/D30671
Differential Revision: https://reviews.freebsd.org/D30699

(cherry picked from commit 24ea1dbf257aa6757f469bcd859f90e9ad851e59)
(cherry picked from commit 09307dbfb888a98232096c751a96ecb3344aa77c)
(cherry picked from commit 9021c46603bf29b9700f24b8dce8796b434d7c8f)
(cherry picked from commit 5554abd9cc9702af30af90925b33c5efff4e7d88)

Also contains some fixups:
 - indent all files correctly
 - finish factoring out
 - remove debugging code
 - check for renaming issues reported in PR241954

PR:	241954
Differential Revision: https://reviews.freebsd.org/D30692
Differential Revision: https://reviews.freebsd.org/D30714
Differential Revision: https://reviews.freebsd.org/D30713

(cherry picked from commit a664ade93972ce617f0888ff79e715dff9cf0f87)
(cherry picked from commit 0afa9be03937d60cb5aeba64c81e3e2165bd3737)
(cherry picked from commit 43e4821315c31db067e23564b9bfafb519e77b2b)
</content>
</entry>
<entry>
<title>ng_macfilter_test: Skip rather than fail if there is no network</title>
<updated>2021-04-10T13:01:04Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2021-03-25T11:14:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d435574abffd58044f0184ebd857298ad637132f'/>
<id>urn:sha1:d435574abffd58044f0184ebd857298ad637132f</id>
<content type='text'>
This should bring the number of Jenkins failures from 4 down to 3.
Locally kyua now prints `skipped: could not find a valid interface  [0.115s]`
when I run it in QEMU without a network device.

Reviewed By:	lwhsu
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D29414

(cherry picked from commit 6f30d1c851467d1f504f469a1b3a75a043ff070f)
</content>
</entry>
<entry>
<title>tests/sys/netgraph: Further CI fixes</title>
<updated>2021-04-10T12:53:36Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2021-03-19T18:34:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=502d647d75c81ea63735b898b94ebad0de13c58d'/>
<id>urn:sha1:502d647d75c81ea63735b898b94ebad0de13c58d</id>
<content type='text'>
I was trying to debug why this test is working locally but failing in CI.
While doing so I made some small changes to allow running it with set -e.

It turns out the problem is that find_iface does not return anything in
Jenkins, so all following tests fail with obscure error messages.
To handle this case exit early if $eth is empty.

Reviewed By:	lwhsu
Differential Revision: https://reviews.freebsd.org/D29340

(cherry picked from commit 7dd1f932c1f51bfe10da7bc8875879cdcdd40821)
</content>
</entry>
<entry>
<title>tests/sys/netgraph/ng_macfilter_test: Fix invalid TAP output</title>
<updated>2021-03-17T22:22:50Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2021-03-12T17:35:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=13c808e49c3b340734433a3b029bab1cee810754'/>
<id>urn:sha1:13c808e49c3b340734433a3b029bab1cee810754</id>
<content type='text'>
This should allow the test to pass in Jenkins. Testing it locally now
reports "passed" instead of "invalid TAP data".

While touching this file also fix some shellcheck warnings that were
pointed out by my IDE.

Reviewed By:	lwhsu, afedorov
Differential Revision: https://reviews.freebsd.org/D29054

(cherry picked from commit 65f4ff4e68afc3867781dfc8cd4faf2a8be1c74f)
</content>
</entry>
<entry>
<title>tests/sys/netgraph: Tell kyua that perl is required</title>
<updated>2021-03-17T22:22:49Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2021-02-23T17:02:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=760cf46f3e40c879f2f3efde3821419dbf32915d'/>
<id>urn:sha1:760cf46f3e40c879f2f3efde3821419dbf32915d</id>
<content type='text'>
Otherwise these tests fail with incomprehensible error messages.

Reviewed By:	kp
Differential Revision: https://reviews.freebsd.org/D28894

(cherry picked from commit 3775ddcf5a12c8e23970e94b7b165bf23c92aeba)
</content>
</entry>
</feed>
