1#include <stdlib.h>
2#include <assert.h>
3
4extern int runTests(void);
5extern int lib_init(void);
6extern int lib_term(void);
7
8int main(int argc, char* argv[])
9{
10    if (!lib_init()) return EXIT_SUCCESS;
11    const int res = runTests() ? EXIT_SUCCESS : EXIT_FAILURE;
12    if (!lib_term()) return EXIT_FAILURE;
13    return res;
14}
15