opnsense-src/tests/sys
Lutz Donnerhacke 488f39f355 tests/libalias: Test LibAliasIn and redirection
Rework the tests to check the correct layer in a single test. Factor
out tests for reuse in other modules. Extend the test suite for
libalias(3) to incoming connections. Test the various types of
redirections.

gettimeofday(3) is almost as expensive as the calls to libalias.
So the call frequency for this call is reduced by a factor of 1000 in
order to neglect it's influence.

Using NAT entries became more realistic: A communication of a random
length of up to 150 packets (10% outgoing, 90% incoming) is applied
for each entry.

Add port forwardings to the performance tests.  This will cause random
incoming packets to match the random port forwardings opends beforehand.

After a long test run, a lot of ressouces have been allocated.
Measure the time tot free them.

Reviewed by:	kp (partially)
Differential Revision: https://reviews.freebsd.org/D30412
Differential Revision: https://reviews.freebsd.org/D30408
Differential Revision: https://reviews.freebsd.org/D30405
Differential Revision: https://reviews.freebsd.org/D30443

(cherry picked from commit f1462ab051)
(cherry picked from commit 755bab6d55)
(cherry picked from commit 6e87898a2c)
(cherry picked from commit d62e1ecba0)
(cherry picked from commit 5434ebd256)

Fix various bugs:
(cherry picked from commit ccac04cae5)
(cherry picked from commit 7b8696bf12)
(cherry picked from commit fef99da69f)
(cherry picked from commit f4c460dacd)
2021-06-02 11:35:09 +02:00
..
acl Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
aio lio_listio: validate aio_lio_opcode 2021-01-11 19:53:01 -07:00
audit tests/sys/audit: add missing comma delimiter between fields 2021-03-17 22:22:48 +00:00
auditpipe Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
capsicum Simplify the capsicum-test wrapper script 2021-03-17 22:22:49 +00:00
cddl tests/sys/cddl: correctly quote atf_set "require.progs" 2021-03-17 22:22:50 +00:00
common tests: Only log critical errors from scapy 2021-05-18 12:00:38 +02:00
devrandom Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
fifo Avoid hard-coding pipe buffer sizes in the pipe and fifo kqueue tests. 2020-05-20 17:48:18 +00:00
file path_test: Add a few new test cases 2021-05-10 20:28:44 -04:00
fs fusefs: fix two bugs regarding fcntl file locks 2021-04-08 02:15:42 +00:00
geom build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00
kern Fix build with read-only source dir after 83c20b8a2d 2021-04-22 10:41:20 +01:00
kqueue Enable timer tests in sys.kqueue.libkqueue.kqueue_test.main on i386 2020-04-22 09:53:41 +00:00
mac Resolve conflict between the fusefs(5) and mac_bsdextended(4) tests 2020-05-02 20:14:59 +00:00
mqueue Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
net tests: Only log critical errors from scapy 2021-05-18 12:00:38 +02:00
netgraph ng_macfilter_test: Skip rather than fail if there is no network 2021-04-10 14:01:04 +01:00
netinet tests/libalias: Test LibAliasIn and redirection 2021-06-02 11:35:09 +02:00
netinet6 tests: Only log critical errors from scapy 2021-05-18 12:00:38 +02:00
netipsec ping: fix some man pages and tests after r368045 2020-11-26 04:55:02 +00:00
netmap Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
netpfil pf tests: Test the ability to kill floating states by interface 2021-05-27 09:09:40 +02:00
opencrypto Remove __NO_TLS. 2021-03-02 02:49:42 +02:00
pjdfstest Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
posixshm posixshm_test.c: remove tautological checks 2020-12-11 22:52:20 +00:00
sys Revert r357246 2020-01-29 22:37:01 +00:00
vfs tests/sys/vfs/lookup_cap_dotdot: No longer aborts after ATF update 2021-03-17 12:22:03 +00:00
vm [tests] Fix unused variable warning in gcc 2020-11-13 18:50:24 +00:00
Makefile New Netgraph module ng_macfilter: 2020-12-08 15:09:42 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.inc Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00