Branch data Line data Source code
1 : : #include "sute.h"
2 : :
3 : : int test_main(
4 : : int,
5 : : char **);
6 : :
7 : : /**
8 : : * @brief Run the top-level test suite executable
9 : : *
10 : : * @return Process exit status produced by the test runner macros
11 : : */
12 : 1 : int main(void)
13 : : {
14 : 1 : SUTESTART;
15 : :
16 : 1 : testitall_set_test_main(test_main);
17 : : /* Enable ANSI-decorated golden output in both internal and external runs */
18 : 1 : run(set_environment_variable("TESTITALL_TEST_ENV_COLOR_MODE","always"));
19 : :
20 : 1 : HEADER("Preparations");
21 : 1 : TEST(prepare,"Preparation for tests");
22 : :
23 : 1 : HEADER("Testing of built-in libraries");
24 : 1 : SUTE(bundled_libraries,"Bundled libraries test set");
25 : :
26 : 1 : HEADER("Unit Testing of precizer");
27 : 1 : SUTE(function_unit_testing,"Function-level unit tests");
28 : 1 : TEST(comprehensive_unit_testing,"Comprehensive Unit testing");
29 : :
30 : 1 : HEADER("System Testing of precizer");
31 : 1 : TEST(comprehensive_system_testing,"Comprehensive System testing");
32 : :
33 : : /* Mock only tecting in unit-mode so the linker wraps are active */
34 : : #ifndef EVIL_EMPIRE_OS
35 : 1 : HEADER("Mock-Based Testing of precizer");
36 : 1 : TEST(comprehensive_mock_testing,"Comprehensive Mock testing");
37 : : #endif
38 : :
39 : 1 : HEADER("Clean results");
40 : 1 : RUN(clean,"Temporary data cleanup");
41 : :
42 : 1 : RUN(finish,"Telemetry");
43 : :
44 : 1 : HEADER("Finishing");
45 [ + - ]: 1 : SUTEDONE;
46 : : }
|