diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-01-30 09:53:31 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-02-09 15:50:53 +0300 |
commit | 2dd0111adc8a5a03388f557d1ca91295276fbb54 (patch) | |
tree | 39c36f8509e08b5463e09d6aa7dfadef8492204d /include/test/lib.h | |
parent | eca61ae70c80ce42272ab8b999750d925f0ad85c (diff) | |
download | u-boot-2dd0111adc8a5a03388f557d1ca91295276fbb54.tar.xz |
test: provide unit test for memory functions
Memory functions may have architecture specific implementations. These
should be tested.
Provide unit tests for memset(), memcpy(), memmove().
Provide a 'ut lib' sub-command to execute the tests.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/test/lib.h')
-rw-r--r-- | include/test/lib.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/test/lib.h b/include/test/lib.h new file mode 100644 index 0000000000..04b6241e54 --- /dev/null +++ b/include/test/lib.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2019 Heinrich Schuchardt <xypron.glpk@gmx.de> + */ + +#ifndef __TEST_LIB_H__ +#define __TEST_LIB_H__ + +#include <test/test.h> + +/* Declare a new library function test */ +#define LIB_TEST(_name, _flags) UNIT_TEST(_name, _flags, lib_test) + +#endif /* __TEST_LIB_H__ */ |