xref: /aosp_15_r20/external/coreboot/util/cbfstool/flashmap_tests.c (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* fmap_from_fmd.c, simple launcher for fmap library unit test suite */
2 /* SPDX-License-Identifier: GPL-2.0-only */
3 
4 #include "flashmap/fmap.h"
5 
6 #include <stdio.h>
7 
main(void)8 int main(void)
9 {
10 	int result = fmap_test();
11 
12 	puts("");
13 	puts("===");
14 	puts("");
15 	if (!result)
16 		puts("RESULT: All unit tests PASSED.");
17 	else
18 		puts("RESULT: One or more tests FAILED!");
19 
20 	return result;
21 }
22