From 439f9b4a840f88141347e1dd7e9ee5bb43589307 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Thu, 3 Jan 2013 17:36:40 +0000 Subject: Reengineer the socket splicing regression tests: - Move the tests from splice to new sosplice directory for consistent naming. - Split the API tests and the TCP splicing tests into separate directories. - Create some tests for the upcoming UDP splicing. - Tests can be run in obj directories now. - The API tests can run both on a local and on a remote machine now. - Fix the forking TCP tests which splice and read or write simultaneously. - Bunch of little fixes for races in the tests. - Deduplicate code, move checks into common functions. --- .../sys/kern/sosplice/tcp/args-null-max-sleep-client.pl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 regress/sys/kern/sosplice/tcp/args-null-max-sleep-client.pl (limited to 'regress/sys/kern/sosplice/tcp/args-null-max-sleep-client.pl') diff --git a/regress/sys/kern/sosplice/tcp/args-null-max-sleep-client.pl b/regress/sys/kern/sosplice/tcp/args-null-max-sleep-client.pl new file mode 100644 index 00000000000..4b00840c17e --- /dev/null +++ b/regress/sys/kern/sosplice/tcp/args-null-max-sleep-client.pl @@ -0,0 +1,16 @@ +# test maximum data length with delay before empty client write + +use strict; +use warnings; + +our %args = ( + client => { + func => sub { sleep 3; write_stream(@_); }, + len => 0, + }, + relay => { + max => 113, + }, + len => 0, + md5 => "d41d8cd98f00b204e9800998ecf8427e", +); -- cgit v1.2.3