Commit Graph

76 Commits

Author SHA1 Message Date
Matthew Kennedy 5811f691d9
things are happy without gtest (#3999)
* things are happy without gtest

* this is not a static lib
2022-03-14 15:00:02 -04:00
rusefillc 4db4ac060c Code style for methods with zero arguments #3535 2022-01-11 22:40:52 -05:00
Andrey 73fb5a2ef8 docs 2021-12-07 19:59:43 -05:00
Matthew Kennedy 8cdac4cac0
remove engine pointer passing (#3556)
* some

* more

* more

* the last?!
2021-11-16 04:15:29 -05:00
Scott Smith 344c9073e2
Start the process of using a global engine ptr for unit tests. (#3551)
* Start the process of using a global engine ptr for unit tests.

Passing around the engine, config, and persistent state wasn't buying anything.  Instead, use
EngineTestHelper(Base) to correctly set and clear the global variables.  Add a dummy check in
case some test tries to set them manually.

* Fix OSX build

* Adapt PR to recently added code.
2021-11-16 00:23:14 -05:00
Andrey b71d3c6111 reducing crazy in unit tests 2021-10-01 22:29:44 -04:00
rusefillc 0c2d5f829d docs 2021-08-31 04:38:35 -04:00
Matthew Kennedy 25414ebdad
yet more pch (#3068)
* big pch energy

* put back ramdisk stub

* tests are happy

* h743 nucleo

* kinetis

* I love deleting code!

* make stepper happy

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-03 22:05:01 -04:00
Andrey 0aa8693f21 Matt has CUSTOM_ERR_VVT_OUT_OF_RANGE warning #2921 2021-07-07 23:55:49 -04:00
Andrey 7c7766efcc VW warnings on cranking #2861 2021-06-26 16:05:43 -04:00
Andrey 76840d07db better test coverage 2021-06-24 23:38:16 -04:00
Andrey 1c48a61339 refactoring 2021-06-23 06:37:32 -04:00
Andrey cbfc4cdd8d Trigger: warning code on normal engine start up #669 2021-06-23 05:00:26 -04:00
rusefillc 490d3a6957 test_timer 2021-03-12 00:43:48 -05:00
Matthew Kennedy 5f69d23976
fix mock pins array (#2050)
* fix

* fix probably
2020-12-10 00:10:58 -05:00
Matthew Kennedy a5ba9d54dc
fix etb unit test idle hardware (#1991)
* move check to etb

* give it a sensor to read
2020-11-26 19:21:42 -05:00
rusefillc c52c6f45c9 Starter seems to be engaged forever #1965 2020-11-18 21:22:01 -05:00
David Holdeman 337106cd24
DebounceButton A/C switch (#1782)
* change acSwitch name, add mode

* fix

* remove some adc stuff

* remove some adc stuff

* semicolon stupid

* left behind

* add readpinstate

* wrong var name

* add functions back

* fix name

* bool, not void, plus fix name

* move

* not sure what I broke

* try setMockValue

* namespace

* whoops missed one

* switch values because adc was set up for pullup

* try 5

* comment for now

* comment for now

* uncomment tests, add function to mock, add mock to efiReadPin

* fixes

* for F's sake

* if

* add defy

* pass params

* use ASSERT_TRUE/FALSE

* advance time

* remove ifdef from readPin

* try moving if

* move to separate func

* move extern

* move include

* try engine_test_helper

* am confuse

* move func to else

* include hal

* add efi prod check

* remove include

* try extern

* move include

* semicolon stupid

* move extern again

* include

* move mockPinStates

* size

* add if

* add comment

* clean on instantiation
2020-09-10 22:16:20 -04:00
Matthew Kennedy d57465a6d3 eth adjustments 2020-07-28 14:18:50 -07:00
Matthew Kennedy 2289c465b5 fixes 2020-07-28 11:56:39 -07:00
Matthew Kennedy 50fc127555 put mock in enginetesthelper 2020-07-26 20:39:42 -07:00
Matthew Kennedy 27f346b0ff make private 2020-07-20 18:50:48 -07:00
rusefi de66f4dc6e unit test framework improvements for smoother event execution 2020-07-20 11:16:51 -04:00
rusefi b2edd3a4f4 logicdata into unit tests 2020-07-20 00:36:10 -04:00
Matthew Kennedy b11c5cd8c8
switch some firmware warnings to errors (#1465)
* warnings as errors

* throw instead of exit

* test massaging

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-23 10:46:28 -04:00
Matthew Kennedy bc15e0826d
CLT consumer: fsio (#1302)
* idle

* CLT test prep

* idle target

* header

* air interpolate

* ancient comment

* fuel cut

* fuel cut, idle tests

* cleanup

* fsio test help
2020-04-15 16:20:45 -04:00
Matthew Kennedy 044766ec70
New clt consumers part 1 (#1301)
* idle

* CLT test prep

* idle target

* header

* air interpolate

* ancient comment

* fuel cut

* fuel cut, idle tests

* cleanup
2020-04-15 09:48:17 -04:00
Matthew Kennedy 3186741ddc
TPS Initialization Testing (#1264)
* test support

* stub for tests

* plumbing so we can test this

* add test

* comments
2020-04-05 09:10:08 -04:00
Matthew Kennedy 53679fab54
Finally rename injector_central to bench_test (#1229)
* bench test rename

* rename consumers

* good lord what are all of these externs doing

* fix tests
2020-03-26 08:03:55 -04:00
rusefi b83a5310be happy new year 2020-01-08 00:02:40 -05:00
rusefi c5cfd21a70 just a trivial massive rename: TriggerState > TriggerWaveform 2019-12-08 01:09:39 -05:00
rusefi bec88bf8c8 EngineTestHelper progress 2019-12-03 00:20:47 -05:00
rusefi 7ee657d238 aux valves unit test 2019-11-23 22:55:21 -05:00
rusefi 2acdbf308b something is over-complicated here? looks like two classes should become one? 2019-10-08 02:56:19 -04:00
rusefi e6f5a6e3f4 refactoring: all events are now validated in relation to current timestamp 2019-10-07 23:02:47 -04:00
rusefi 0380d4d709 refactoring 2019-10-07 21:54:03 -04:00
rusefi 5e48109780 docs & refactoring 2019-10-07 21:23:38 -04:00
rusefi 121ad9b786 fixing build & taking a safer route 2019-08-08 22:12:51 -04:00
rusefi 7d73c6a8a9 WFT is wrong with MRE_miata_na6 config? operationMode complexity #898
fancy smansy unit test with some C++11
2019-08-08 21:27:57 -04:00
rusefi c6198e34ec BUG: phase sensor validation attending - detect missing CAM signal #659
refactoring and unit test first phase
2019-05-10 21:56:33 -04:00
rusefi 4e61505620 refactoring unit test 2019-05-10 21:29:17 -04:00
rusefi 358af4ff89 testing API improvement (?) 2019-01-21 22:34:17 -05:00
rusefi d15399bba4 refactoring around GET_RPM 2019-01-21 22:32:30 -05:00
rusefi 1b8217392c micro test refactoring 2019-01-21 19:15:17 -05:00
rusefi 3697fc6052 future fast spinning 60/2 test 2019-01-20 22:21:12 -05:00
rusefi a8b3c8f8d2 refactoring: better location for shared methods 2019-01-15 21:36:13 -05:00
rusefi 01095219ba docs 2019-01-14 11:36:46 -05:00
andreika-git 775775e4fd fix! (#673) 2019-01-14 11:33:58 -05:00
rusefi 34cfdfd718 reducing global variables in tests 2019-01-10 21:50:13 -05:00
rusefi a32e8a3530 reducing global variables in tests 2019-01-10 21:26:02 -05:00