all triggers should be documented way nicer #2001

This commit is contained in:
rusefillc 2020-12-04 11:58:26 -05:00
parent db5e30edf5
commit e138621202
2 changed files with 14 additions and 2 deletions

View File

@ -520,6 +520,7 @@ static void triggerShapeInfo(void) {
#if EFI_UNIT_TEST
#include <stdlib.h>
extern trigger_type_e focusOnTrigger;
#define TRIGGERS_FILE_NAME "triggers.txt"
/**
@ -539,6 +540,10 @@ void printAllTriggers() {
for (int triggerId = 1; triggerId < TT_UNUSED; triggerId++) {
trigger_type_e tt = (trigger_type_e) triggerId;
if (focusOnTrigger != TT_UNUSED && tt != focusOnTrigger) {
continue;
}
printf("Exporting %s\r\n", getTrigger_type_e(tt));
persistent_config_s pc;

View File

@ -35,13 +35,20 @@ extern bool printTriggerDebug;
extern bool printTriggerTrace;
bool verboseMode = false;
trigger_type_e focusOnTrigger = TT_UNUSED;
GTEST_API_ int main(int argc, char **argv) {
// printTriggerDebug = true;
// printTriggerTrace = true;
if (focusOnTrigger != TT_UNUSED) {
printTriggerDebug = true;
printTriggerTrace = true;
}
// resizeMap();
printf("Success 20201203\r\n");
printAllTriggers();
if (focusOnTrigger != TT_UNUSED) {
return;
}
testing::InitGoogleTest(&argc, argv);
// uncomment if you only want to run selected tests