This commit is contained in:
rusefillc 2021-08-31 04:27:31 -04:00
parent ee4f66b544
commit 6ea76921f4
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,15 @@
# Trigger Decoders
This folder is and should not be aware of engine.h or engine_configuration.h
# Hints on adding new trigger
Step 1: add into rusefi_config.txt
Step 2: add into rusefi_enums.h
Step 3: get it working.
It's useful to un-comments *AllTriggersFixture* line in unit_tests/main.cpp
It's useful to add setVerboseTrigger(true) into unit tests while troubleshooting fresh trigger code

View File

@ -8,6 +8,7 @@
#include <stdlib.h>
#include "gtest/gtest.h"
#include "engine_test_helper.h"
GTEST_API_ int main(int argc, char **argv) {
testing::InitGoogleTest(&argc, argv);
@ -15,6 +16,7 @@ GTEST_API_ int main(int argc, char **argv) {
/**
* See TEST_FROM_TRIGGER_ID to limit test just for last trigger
*/
// setVerboseTrigger(true);
//::testing::GTEST_FLAG(filter) = "*AllTriggersFixture*";
int result = RUN_ALL_TESTS();
// windows ERRORLEVEL in Jenkins batch file seems to want negative value to detect failure