Maximilian Brune 25c737d403 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>
2024-05-21 13:44:39 +00:00

13 lines
264 B
C

/* 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