/* * 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"); } DEF_SCRIPT(simple_thread_child, "test that RADIX multithreading is working (child)") { } DEF_SCRIPT(simple_thread, "test that RADIX multithreading is working") { size_t i; for (i = 0; i < 2; ++i) OP_SPAWN_THREAD(simple_thread_child); } /* * List of Test Scripts * ============================================================================ */ static SCRIPT_INFO *const scripts[] = { USE(simple_conn) USE(simple_thread) };