Gilles Peskine | 9ad7bd3 | 2022-12-04 13:10:55 +0100 | [diff] [blame] | 1 | /** |
| 2 | * \file arguments.h |
| 3 | * |
| 4 | * \brief Manipulation of test arguments. |
| 5 | * |
| 6 | * Much of the code is in host_test.function, to be migrated here later. |
| 7 | */ |
| 8 | |
| 9 | /* |
| 10 | * Copyright The Mbed TLS Contributors |
Dave Rodgman | 7ff7965 | 2023-11-03 12:04:52 +0000 | [diff] [blame] | 11 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later |
Gilles Peskine | 9ad7bd3 | 2022-12-04 13:10:55 +0100 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | #ifndef TEST_ARGUMENTS_H |
| 15 | #define TEST_ARGUMENTS_H |
| 16 | |
| 17 | #if !defined(MBEDTLS_CONFIG_FILE) |
| 18 | #include "mbedtls/config.h" |
| 19 | #else |
| 20 | #include MBEDTLS_CONFIG_FILE |
| 21 | #endif |
| 22 | |
| 23 | #include <stdint.h> |
| 24 | #include <stdlib.h> |
| 25 | |
| 26 | typedef union { |
| 27 | size_t len; |
Gilles Peskine | 6494d92 | 2022-12-04 15:32:54 +0100 | [diff] [blame] | 28 | intmax_t sint; |
Gilles Peskine | 9ad7bd3 | 2022-12-04 13:10:55 +0100 | [diff] [blame] | 29 | } mbedtls_test_argument_t; |
| 30 | |
| 31 | #endif /* TEST_ARGUMENTS_H */ |