summaryrefslogtreecommitdiff
path: root/include/test/common.h
diff options
context:
space:
mode:
authorSteffen Jaeckel <jaeckel-floss@eyet-services.de>2021-07-08 15:57:40 +0200
committerTom Rini <trini@konsulko.com>2021-07-23 13:36:20 -0400
commit25c8b9f298e46ea6048b5308f7ee207c6461c36a (patch)
tree1c8f414dc7ae2d0e914a706e3dd8aaebb945c946 /include/test/common.h
parent33198740aca2d68e9760cfd6ebb5a55894431966 (diff)
downloadu-boot-25c8b9f298e46ea6048b5308f7ee207c6461c36a.tar.gz
test: add first autoboot unit tests
This adds tests for the crypt-based and plain SHA256-based password hashing algorithms in the autoboot flow. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/test/common.h')
-rw-r--r--include/test/common.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/test/common.h b/include/test/common.h
new file mode 100644
index 0000000000..81260d06ad
--- /dev/null
+++ b/include/test/common.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (c) 2019 Heinrich Schuchardt <xypron.glpk@gmx.de>
+ * Copyright (c) 2021 Steffen Jaeckel <jaeckel-floss@eyet-services.de>
+ */
+
+#ifndef __TEST_COMMON_H__
+#define __TEST_COMMON_H__
+
+#include <test/test.h>
+
+/* Declare a new common function test */
+#define COMMON_TEST(_name, _flags) UNIT_TEST(_name, _flags, common_test)
+
+#endif /* __TEST_COMMON_H__ */