summaryrefslogtreecommitdiffstats
path: root/test/radix/quic_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/radix/quic_tests.c')
-rw-r--r--test/radix/quic_tests.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/radix/quic_tests.c b/test/radix/quic_tests.c
new file mode 100644
index 0000000000..3398c9d4d5
--- /dev/null
+++ b/test/radix/quic_tests.c
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2024 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+/*
+ * Test Scripts
+ * ============================================================================
+ */
+
+DEF_SCRIPT(simple_conn, "simple connection to server")
+{
+ OP_SIMPLE_PAIR_CONN();
+ OP_WRITE_B(C, "apple");
+
+ OP_ACCEPT_CONN_WAIT(L, La, 0);
+ OP_ACCEPT_CONN_NONE(L);
+
+ OP_WRITE_B(La, "orange");
+ OP_READ_EXPECT_B(C, "orange");
+}
+
+/*
+ * List of Test Scripts
+ * ============================================================================
+ */
+static SCRIPT_INFO *const scripts[] = {
+ USE(simple_conn)
+};