docs
This commit is contained in:
parent
ee4f66b544
commit
6ea76921f4
|
@ -1,3 +1,15 @@
|
||||||
# Trigger Decoders
|
# Trigger Decoders
|
||||||
|
|
||||||
This folder is and should not be aware of engine.h or engine_configuration.h
|
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
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
|
#include "engine_test_helper.h"
|
||||||
|
|
||||||
GTEST_API_ int main(int argc, char **argv) {
|
GTEST_API_ int main(int argc, char **argv) {
|
||||||
testing::InitGoogleTest(&argc, 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
|
* See TEST_FROM_TRIGGER_ID to limit test just for last trigger
|
||||||
*/
|
*/
|
||||||
|
// setVerboseTrigger(true);
|
||||||
//::testing::GTEST_FLAG(filter) = "*AllTriggersFixture*";
|
//::testing::GTEST_FLAG(filter) = "*AllTriggersFixture*";
|
||||||
int result = RUN_ALL_TESTS();
|
int result = RUN_ALL_TESTS();
|
||||||
// windows ERRORLEVEL in Jenkins batch file seems to want negative value to detect failure
|
// windows ERRORLEVEL in Jenkins batch file seems to want negative value to detect failure
|
||||||
|
|
Loading…
Reference in New Issue