Matthew Kennedy
994ee2f22f
Combine angle based event ( #4884 )
...
* Remove AngleBasedEventOld/New, only AngleBasedEvent now
* this 7 year old comment of old test code can go away
2022-12-10 17:07:02 -05:00
Matthew Kennedy
2c58579a8d
switch hpfp and aux valves to AngleBasedEventNew ( #4882 )
...
* switch hpfp to AngleBasedEventNew
* aux valves too!
2022-12-10 16:15:11 -05:00
Matthew Kennedy
af7e4f6fe5
two modes trigger scheduler ( #4598 )
...
* two modes trigger scheduler
* asOld
* hpfp
2022-09-20 05:28:23 -04:00
Andrey G
55c1f53c75
dead code, reduce typedefs ( #4566 )
...
* Do lightweight checks first
* Dead getTimeIgnitionSeconds()
Dead since 81fffe87b7
* Get rid of efitime_t.
Purpose are not clear. Use efitick_t where ticks are used,
use efitimeus_t for uS, use efitimems_t or efitimems64_t for mS.
* Fix unit tests
* Fix misc: stm32f1_test_project
2022-09-11 16:08:11 -04:00
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