summaryrefslogtreecommitdiff
path: root/test/regression/websocket_test
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-06-08 10:03:52 +0200
committerGitHub <[email protected]>2026-06-08 10:03:52 +0200
commit1a0e9e43a03e37ddecfb6b49e9b078d6e1803d05 (patch)
treec60ec41b4ff4fd2d7566c505cbdd423ceddd65f3 /test/regression/websocket_test
parent8b6e03ac30ab688bec02c69d42f2304b7f72a202 (diff)
parent4d88828b06d164a5b7e82152395a92254abcd6e4 (diff)
Merge pull request #391 from eclipse-threadx/devv6.5.1.202602_reldev
Merging changes for the v.6.5.1.202602 release
Diffstat (limited to 'test/regression/websocket_test')
-rw-r--r--test/regression/websocket_test/netx_websocket_16_bit_payload_length_test.c11
-rw-r--r--test/regression/websocket_test/netx_websocket_common_process.c11
-rw-r--r--test/regression/websocket_test/netx_websocket_connect_test.c11
-rw-r--r--test/regression/websocket_test/netx_websocket_delete_test.c11
-rw-r--r--test/regression/websocket_test/netx_websocket_disconnect_test.c11
-rw-r--r--test/regression/websocket_test/netx_websocket_fin_test.c11
-rw-r--r--test/regression/websocket_test/netx_websocket_mask_test.c11
-rw-r--r--test/regression/websocket_test/netx_websocket_multi_instance_test.c11
-rw-r--r--test/regression/websocket_test/netx_websocket_non_block_test.c11
-rw-r--r--test/regression/websocket_test/netx_websocket_one_frame_in_packets_test.c11
-rw-r--r--test/regression/websocket_test/netx_websocket_one_packet_with_multi_frames_test.c11
-rw-r--r--test/regression/websocket_test/netx_websocket_opcode_test.c11
-rw-r--r--test/regression/websocket_test/netx_websocket_send_chain_packets_test.c11
13 files changed, 143 insertions, 0 deletions
diff --git a/test/regression/websocket_test/netx_websocket_16_bit_payload_length_test.c b/test/regression/websocket_test/netx_websocket_16_bit_payload_length_test.c
index c0fa75a0..2e1586e8 100644
--- a/test/regression/websocket_test/netx_websocket_16_bit_payload_length_test.c
+++ b/test/regression/websocket_test/netx_websocket_16_bit_payload_length_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests websocket process data ability when the frame is with 16-bit payload length. */
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/websocket_test/netx_websocket_common_process.c b/test/regression/websocket_test/netx_websocket_common_process.c
index 8d2b2e9b..738340e9 100644
--- a/test/regression/websocket_test/netx_websocket_common_process.c
+++ b/test/regression/websocket_test/netx_websocket_common_process.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This file contains common process functions. */
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/websocket_test/netx_websocket_connect_test.c b/test/regression/websocket_test/netx_websocket_connect_test.c
index f29c86bc..916016f4 100644
--- a/test/regression/websocket_test/netx_websocket_connect_test.c
+++ b/test/regression/websocket_test/netx_websocket_connect_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests websocket connect corresponding logic, especially focusing on testing secure connect feature */
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/websocket_test/netx_websocket_delete_test.c b/test/regression/websocket_test/netx_websocket_delete_test.c
index de7c1c99..feebe008 100644
--- a/test/regression/websocket_test/netx_websocket_delete_test.c
+++ b/test/regression/websocket_test/netx_websocket_delete_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests websocket delete corresponding logic. Also pay attention
on the influence brought by the disconnecting state on other functions */
#include "tx_api.h"
diff --git a/test/regression/websocket_test/netx_websocket_disconnect_test.c b/test/regression/websocket_test/netx_websocket_disconnect_test.c
index 63723ef2..ff669428 100644
--- a/test/regression/websocket_test/netx_websocket_disconnect_test.c
+++ b/test/regression/websocket_test/netx_websocket_disconnect_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests websocket disconnect corresponding logic, mainly focusing on the influence
brought by the disconnect state which may hinder other functions such as send/receive */
#include "tx_api.h"
diff --git a/test/regression/websocket_test/netx_websocket_fin_test.c b/test/regression/websocket_test/netx_websocket_fin_test.c
index 5a45e71b..37a9fdc0 100644
--- a/test/regression/websocket_test/netx_websocket_fin_test.c
+++ b/test/regression/websocket_test/netx_websocket_fin_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests websocket fin bit. */
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/websocket_test/netx_websocket_mask_test.c b/test/regression/websocket_test/netx_websocket_mask_test.c
index e4784e22..33bc60af 100644
--- a/test/regression/websocket_test/netx_websocket_mask_test.c
+++ b/test/regression/websocket_test/netx_websocket_mask_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests websocket mask feature. */
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/websocket_test/netx_websocket_multi_instance_test.c b/test/regression/websocket_test/netx_websocket_multi_instance_test.c
index 3c75b0cd..430aa28e 100644
--- a/test/regression/websocket_test/netx_websocket_multi_instance_test.c
+++ b/test/regression/websocket_test/netx_websocket_multi_instance_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests the condition when multi websocket instances are working at the same time. */
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/websocket_test/netx_websocket_non_block_test.c b/test/regression/websocket_test/netx_websocket_non_block_test.c
index b3eb6a85..3231749e 100644
--- a/test/regression/websocket_test/netx_websocket_non_block_test.c
+++ b/test/regression/websocket_test/netx_websocket_non_block_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case test websocket in non-blocking mode. */
#include "tx_api.h"
diff --git a/test/regression/websocket_test/netx_websocket_one_frame_in_packets_test.c b/test/regression/websocket_test/netx_websocket_one_frame_in_packets_test.c
index 447eec11..3d51701b 100644
--- a/test/regression/websocket_test/netx_websocket_one_frame_in_packets_test.c
+++ b/test/regression/websocket_test/netx_websocket_one_frame_in_packets_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests websocket process data ability when one websocket frame is composited by several TCP packets. */
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/websocket_test/netx_websocket_one_packet_with_multi_frames_test.c b/test/regression/websocket_test/netx_websocket_one_packet_with_multi_frames_test.c
index 7310062a..2ae88f90 100644
--- a/test/regression/websocket_test/netx_websocket_one_packet_with_multi_frames_test.c
+++ b/test/regression/websocket_test/netx_websocket_one_packet_with_multi_frames_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests websocket process data ability when one tcp/tls packet includes multi-frames. */
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/websocket_test/netx_websocket_opcode_test.c b/test/regression/websocket_test/netx_websocket_opcode_test.c
index 07b10cdf..b6e5d8f8 100644
--- a/test/regression/websocket_test/netx_websocket_opcode_test.c
+++ b/test/regression/websocket_test/netx_websocket_opcode_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests websocket opcode. */
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/websocket_test/netx_websocket_send_chain_packets_test.c b/test/regression/websocket_test/netx_websocket_send_chain_packets_test.c
index 218c236f..79c075d7 100644
--- a/test/regression/websocket_test/netx_websocket_send_chain_packets_test.c
+++ b/test/regression/websocket_test/netx_websocket_send_chain_packets_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests websocket send ability when there are chain packets. */
#include "tx_api.h"
#include "nx_api.h"