blob: ac481b8fbabc5b75d0e56ad1a999bd5f16b440f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include "gtest/gtest.h"
extern "C" {
#include "stdio.h"
#include "debug.h"
int8_t sendchar(uint8_t c) {
fprintf(stdout, "%c", c);
return 0;
}
__attribute__((weak)) debug_config_t debug_config = {0};
void init_logging(void) {
print_set_sendchar(sendchar);
// Customise these values to desired behaviour
// debug_enable = true;
// debug_matrix = true;
// debug_keyboard = true;
// debug_mouse = true;
debug_config.raw = 0xFF;
}
}
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
init_logging();
return RUN_ALL_TESTS();
}
|