aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/netinet6/Makefile
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2019-10-21 09:33:45 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2019-10-21 09:33:45 +0000
commitf74e6e494f48b76f357d43d3672cca3606ffac04 (patch)
tree105d4f22357a246beeca1d682b11b2a98dca2aa2 /tests/sys/netinet6/Makefile
parent67a10c464436f1ddd16d41cac6c02802c9ce2f4d (diff)
downloadsrc-f74e6e494f48b76f357d43d3672cca3606ffac04.tar.gz
src-f74e6e494f48b76f357d43d3672cca3606ffac04.zip
frag6: import a set of test cases
In order to ensure that changing the frag6 code does not change behaviour or break code a set of test cases were implemented. Like some other test cases these use Scapy to generate packets and possibly wait for expected answers. In most cases we do check the global and per interface (netstat) statistics output using the libxo output and grep to validate fields and numbers. This is a bit hackish but we currently have no better way to match a selected number of stats only (we have to ignore some of the ND6 variables; otherwise we could use the entire list). Test cases include atomic fragments, single fragments, multi-fragments, and try to cover most error cases in the code currently. In addition vnet teardown is tested to not panic. A separate set (not in-tree currently) of probes were used in order to make sure that the test cases actually test what they should. The "sniffer" code was copied and adjusted from the netpfil version as we sometimes will not get packets or have longer timeouts to deal with. Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=353794
Diffstat (limited to 'tests/sys/netinet6/Makefile')
-rw-r--r--tests/sys/netinet6/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sys/netinet6/Makefile b/tests/sys/netinet6/Makefile
new file mode 100644
index 000000000000..f9dce391e056
--- /dev/null
+++ b/tests/sys/netinet6/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+TESTSDIR= ${TESTSBASE}/sys/netinet6
+
+TESTS_SUBDIRS+= frag6
+
+.include <bsd.test.mk>