Patrick Georgi | ea063cb | 2020-05-08 19:28:13 +0200 | [diff] [blame] | 1 | /* fmap_from_fmd.c, simple launcher for fmap library unit test suite */ |
Patrick Georgi | 7333a11 | 2020-05-08 20:48:04 +0200 | [diff] [blame] | 2 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Sol Boucher | 69b88bf | 2015-02-26 11:47:19 -0800 | [diff] [blame] | 3 | |
| 4 | #include "flashmap/fmap.h" |
| 5 | |
| 6 | #include <stdio.h> |
| 7 | |
| 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 | } |