Skip to content

Commit

Permalink
Merge pull request #1255 from microsoft/enhancement-test-simulation
Browse files Browse the repository at this point in the history
[test] Recursive Test Case Discovery
  • Loading branch information
ppenna committed Apr 30, 2024
2 parents c45406c + e5791ce commit 598a6de
Show file tree
Hide file tree
Showing 23 changed files with 99 additions and 85 deletions.
2 changes: 1 addition & 1 deletion linux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export BUILD_DIR := $(CURDIR)/target/release
ifeq ($(BUILD),dev)
export BUILD_DIR := $(CURDIR)/target/debug
endif
export INPUT_DIR ?= $(CURDIR)/nettest/input
export INPUT ?= $(CURDIR)/nettest/input

#=======================================================================================================================
# Toolchain Configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for blocking accept.

// Accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for blocking accept with syn ack retransmission.

// Accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for early ACK packet on accept.

// Attempt to accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for early PSH packet on accept.

// Attempt to accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for early RST packet on accept.

// Attempt to accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for early PHS-ACK packet on accept.

// Attempt to accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for early RST-ACK packet on accept.

// Attempt to accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for early SYN-ACK packet on accept.

// Attempt to accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Tests for successful completion of an accept system call, when a data-carrying, SYN segment is received.

// Accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for blocking close.

// Establish a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.2 connect(500, ..., ...) = 0

// Send SYN packet.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Tests for local close.

// Establish a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.2 connect(500, ..., ...) = 0

// Send SYN segment.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Tests for remote close.

// Establish a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.2 connect(500, ..., ...) = 0

// Send SYN segment.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for blocking connect.

// Establish a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.2 connect(500, ..., ...) = 0

// Send SYN packet.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for early reset on connect.

// Attempt to establish a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.2 connect(500, ..., ...) = 0

// Send SYN packet.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for connect timeout.

// Attempt to establish a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.1 connect(500, ..., ...) = 0

// Send SYN packet.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for blocking pop.

// Accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for blocking pop-push round.

// Accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for blocking push.

// Accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for blocking push-pop.

// Accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test for blocking push.

// Accept a connection.
.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500
+.0 bind(500, ..., ...) = 0
+.0 listen(500, 1) = 0
+.2 accept(500, ..., ...) = 0
Expand Down
Loading

0 comments on commit 598a6de

Please sign in to comment.