diff options
author | Maximilian Brune <maximilian.brune@9elements.com> | 2024-05-09 02:53:51 +0200 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2024-05-21 13:44:39 +0000 |
commit | 25c737d403818a92dfeb06e29ffaf04102d0f260 (patch) | |
tree | d27d4e1a366a8f8aab0e338d0f3ee577b640d339 /tests/include/helpers/file.h | |
parent | 62a6188da5080d17afe33a2de9218c7313c2e64b (diff) |
tests/lib: Factor out file related functions
Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com>
Change-Id: I5c22913b35848c5ea32d6805ea081abefd3380bf
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82237
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jakub Czapiga <czapiga@google.com>
Diffstat (limited to 'tests/include/helpers/file.h')
-rw-r--r-- | tests/include/helpers/file.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/include/helpers/file.h b/tests/include/helpers/file.h new file mode 100644 index 0000000000..a583b000a2 --- /dev/null +++ b/tests/include/helpers/file.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef _TESTS_HELPERS_FILE_H +#define _TESTS_HELPERS_FILE_H + +#include <stddef.h> +#include <stdint.h> + +int test_get_file_size(const char *fname); +int test_read_file(const char *fname, uint8_t *buf, size_t size); + +#endif |