mirror of
https://github.com/opnsense/src.git
synced 2026-05-14 10:13:48 -04:00
In order to modify libalias for performance, the existing functionality must not change. Enforce this. Testing LibAliasOut functionality. This concentrates the typical use case of initiating data transfers from the inside. Provide a exhaustive test for the data structure in order to check for performance improvements. In order to compare upcoming changes for their effectivness, measure performance by counting opertions and the runtime of each operation over the time. Accumulate all tests in a single instance, so make it complicated over the time. If you wait long enough, you will notice the expiry of old flows. Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D30307 Differential Revision: https://reviews.freebsd.org/D30335 Differential Revision: https://reviews.freebsd.org/D30379 (cherry picked from commit7fd8baee75) (cherry picked from commitc1fbb54f4b) (cherry picked from commit33c1bdfc3e)
31 lines
441 B
Makefile
31 lines
441 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE= tests
|
|
|
|
TESTSDIR= ${TESTSBASE}/sys/netinet/libalias
|
|
BINDIR= ${TESTSDIR}
|
|
|
|
ATF_TESTS_C+= 1_instance \
|
|
2_natout \
|
|
|
|
PROGS+= perf
|
|
|
|
LIBADD+= alias
|
|
|
|
SRCS.1_instance=1_instance.c util.c
|
|
SRCS.2_natout= 2_natout.c util.c
|
|
SRCS.perf= perf.c util.c
|
|
|
|
.include <bsd.test.mk>
|
|
|
|
#
|
|
# Testing during development
|
|
#
|
|
test: all
|
|
cd ${.OBJDIR}; kyua test
|
|
|
|
report:
|
|
cd ${.OBJDIR}; kyua report
|
|
|
|
report-v:
|
|
cd ${.OBJDIR}; kyua report --verbose
|