blob: aabe5ff19e3cb4201927b1974b6209de911346dd [file] [log] [blame]
Sol Boucher69b88bf2015-02-26 11:47:19 -08001/*
2 * fmap_from_fmd.c, simple launcher for fmap library unit test suite
3 *
4 * Copyright (C) 2015 Google, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Sol Boucher69b88bf2015-02-26 11:47:19 -080014 */
15
16#include "flashmap/fmap.h"
17
18#include <stdio.h>
19
20int main(void)
21{
22 int result = fmap_test();
23
24 puts("");
25 puts("===");
26 puts("");
27 if (!result)
28 puts("RESULT: All unit tests PASSED.");
29 else
30 puts("RESULT: One or more tests FAILED!");
31
32 return result;
33}