rusefillc
549839b0de
engine sniffer into unit tests
2021-04-04 22:41:38 -04:00
rusefillc
3651883bcf
test_timer
2021-03-12 00:43:48 -05:00
Matthew Kennedy
55facb6613
use DECLARE_ENGINE_PTR for Engine class ( #2365 )
...
* engine cleanup
* do the cleanup
* one last spot
* expand_engine noop for firmware
* simulator
2021-02-16 16:58:54 -05:00
Matthew Kennedy
30fd52d82d
Fix gpio reinit race condition ( #2098 )
...
* fix unregister api for gpio
* consumers
* guard with a critical section
* index
* guard less
* unregister under lock
* fix reinit
* dead flag
* fix most tests
* initialize properly
* initialize properly
* assertions in tests
* fix message
* we must lock earlier to be truly safe
* this was using huge memory
* devirtualize
2020-12-18 17:18:12 -05:00
rusefillc
47db5d0d99
clang warnings again #2055
2020-12-11 10:33:00 -05:00
Matthew Kennedy
ce2e7d3cbe
fix mock pins array ( #2050 )
...
* fix
* fix probably
2020-12-10 00:10:58 -05:00
rusefillc
b6dac8dac2
Starter seems to be engaged forever #1965
2020-11-18 22:42:41 -05:00
rusefillc
b41df605b4
Starter seems to be engaged forever #1965
2020-11-18 21:22:01 -05:00
rusefi
f92d894d14
nicer parameter name
2020-09-21 08:57:56 -04:00
David Holdeman
e8e2cf2cfd
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
eea3f2cf36
fix tests
2020-07-28 14:27:34 -07:00
Matthew Kennedy
a3c0942e1a
eth adjustments
2020-07-28 14:18:50 -07:00
Matthew Kennedy
c00621756d
fixes
2020-07-28 11:56:39 -07:00
Matthew Kennedy
7a479fa44f
put mock in enginetesthelper
2020-07-26 20:39:42 -07:00
Matthew Kennedy
5c4e22fd16
auto export all logicdata
2020-07-20 13:12:21 -07:00
rusefi
117e98b753
unit test framework improvements for smoother event execution
2020-07-20 12:45:26 -04:00
rusefi
c4885dcc0e
unit test framework improvements for smoother event execution
2020-07-20 11:16:51 -04:00
rusefi
e2c8e97aa0
logicdata into unit tests
2020-07-20 00:36:10 -04:00
rusefi
e2c62b8ab3
better unit test logging
2020-07-19 15:47:21 -04:00
Matthew Kennedy
c95ed26d89
Remove old thermistor implementation ( #1458 )
...
* remove test clt/iat
* remove warning since this code is nearly dead
* remove old therm impl
* tests & live doc
* not quite right
2020-05-28 17:51:33 -04:00
Matthew Kennedy
a2313a853c
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
rusefi
bb6cd1326c
Clean-up analog channels in "unit" tests #1456
2020-05-20 03:54:40 -04:00
rusefi
f47f5089ba
Clean-up analog channels in "unit" tests #1456
2020-05-20 03:49:56 -04:00
Matthew Kennedy
c5bba14da5
remove test clt/iat ( #1457 )
...
* remove test clt/iat
* remove warning since this code is nearly dead
2020-05-20 03:16:01 -04:00
Matthew Kennedy
2535d123b8
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
83592f0dff
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
95ef31da67
Goodbye, old TPS ( #1266 )
...
* clear out tps
* boost control
* aux valves
* launch, aux valves
* unused field
2020-04-05 19:33:33 -04:00
Matthew Kennedy
43d38a6691
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
9a21262cf8
TPS consumers: idle and ignition and obd2 and lcd ( #1254 )
...
* advance_map
* tests
* unneeded
* idle
* use driver intent instead
* and obd and lcd
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-03 19:59:08 -04:00
Matthew Kennedy
b7033bbde9
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
67a3796086
better method names
2020-01-10 23:17:58 -05:00
Matthew Kennedy
cb1039fe23
Inject timestamps in to hwHandleShaftSignal ( #1090 )
...
* injection
* injectors
2020-01-09 21:19:11 +03:00
rusefi
4605c64a07
that's not a worth a file
2019-12-24 00:03:53 -05:00
rusefi
bf5767ccd8
dead code
2019-12-23 23:42:50 -05:00
rusefi
ae615376ea
refactoring
2019-12-23 23:32:43 -05:00
rusefi
c629b21ab4
adding simplicity
2019-12-23 23:25:08 -05:00
rusefi
67e1f06d36
simplicity?
2019-12-23 22:50:04 -05:00
rusefi
de480fe05e
adding simplicity
2019-12-23 22:30:58 -05:00
rusefi
f47a1a16d1
getting rid of boardConfiguration / binary compatible change
2019-12-11 17:48:55 -05:00
rusefi
bcec694eb1
just a trivial massive rename: TriggerState > TriggerWaveform
2019-12-08 01:09:39 -05:00
rusefi
5a299fcd9c
refactoring - updating name according to new reality
2019-12-03 14:39:11 -05:00
rusefi
ccd056d331
EngineTestHelper progress
2019-12-03 00:20:47 -05:00
rusefi
079598a87e
reducing complexity
2019-12-02 23:29:06 -05:00
rusefi
d8a10139c2
misc clean-up
2019-12-02 10:18:13 -05:00
rusefi
5ac023d987
misc clean-up
2019-12-02 10:03:50 -05:00
rusefi
18bb121cbe
aux valves unit test
2019-11-23 22:55:21 -05:00
rusefi
af3118fd42
making progres on angle-based scheduling
2019-11-23 20:36:40 -05:00
rusefi
f15986b9aa
refactoring
2019-11-23 18:38:16 -05:00
Matthew Kennedy
0a7535fb1f
Use templated array references ( #1027 )
...
* update defs
* consumers, use default params
* setArrayValues in tests
* floats
* test fixing
2019-11-22 23:27:24 -05:00
andreika-git
ef23be6893
Kinetis & TLE8888 compatibility & fixes... ( #991 )
...
* TLE8888: More compatibility & postTunerStudioState
* activeConfiguration & EFI_ACTIVE_CONFIGURATION_IN_FLASH fix
* Kinetis: jump_to_bootloader() impl.
* Kinetis: UART baudrate safety check
* Kinetis: OMG!..
2019-10-31 16:06:34 -04:00
rusefi
875fb3d1bc
something is over-complicated here? looks like two classes should become one?
2019-10-08 02:56:19 -04:00
rusefi
415de92543
something is over-complicated here? looks like two classes should become one?
2019-10-08 02:35:21 -04:00
rusefi
15ae9b1580
fancy C++ s/NULL/nullptr/
2019-10-08 01:26:35 -04:00
rusefi
95d3368b0f
refactoring: all events are now validated in relation to current timestamp
2019-10-07 23:02:47 -04:00
rusefi
63375dc24c
refactoring
2019-10-07 21:54:03 -04:00
rusefi
b68ed9f8cb
docs & refactoring
2019-10-07 21:23:38 -04:00
rusefi
0d35b1ebba
reducing hell in unit tests
2019-09-25 08:40:33 -04:00
rusefi
f65fc4fec1
ETB target is using integer values #945
...
refactoring - ADC mocking is a mess
2019-09-22 17:39:13 -04:00
rusefi
dfeac28299
current toolchain does not work great with current rusEfi code, two methods with same name are hard for full text search :(
2019-08-08 22:33:52 -04:00
rusefi
eef4fbde9b
fixing build & taking a safer route
2019-08-08 22:12:51 -04:00
rusefi
6043c93372
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
deead8f8ff
reducing code duplication with unit tests
2019-05-12 20:24:35 -04:00
rusefi
767418b93b
refactoring unit test
2019-05-10 21:29:17 -04:00
rusefi
80fbca6f30
docs
2019-03-04 00:14:55 -05:00
rusefi
7796c4e72c
#699
2019-02-28 21:09:31 -05:00
rusefi
bc43d29143
refactoring: reducing code duplication
2019-02-03 09:20:36 -05:00
rusefi
4119733a5d
refactoring: reducing code duplication
2019-02-03 09:19:17 -05:00
rusefi
4fa48c0ca7
Refactor Trigger System #635
...
reducing global state magic
2019-02-03 02:33:33 -05:00
rusefi
a1da311f34
unit tests framework fix
2019-01-22 23:09:34 -05:00
rusefi
6b67ce6e20
testing API improvement (?)
2019-01-21 22:34:17 -05:00
rusefi
03f659d116
refactoring around GET_RPM
2019-01-21 22:32:30 -05:00
rusefi
53e8d10c55
refactoring around GET_RPM
2019-01-21 21:48:58 -05:00
rusefi
728e7ffa79
tiny spinning progress
2019-01-21 15:34:39 -05:00
rusefi
248902894f
future fast spinning 60/2 test
2019-01-20 22:21:12 -05:00
rusefi
09201e9b7e
refactoring: better location for shared methods
2019-01-15 21:36:13 -05:00
rusefi
f71ac2d11d
migrating to googletest
2019-01-14 23:40:13 -05:00
rusefi
f0d0a9b3e4
migrating to googletest
2019-01-14 18:38:20 -05:00
rusefi
0a7f18af00
docs
2019-01-14 12:59:57 -05:00
andreika-git
32bd383b59
fix! ( #673 )
2019-01-14 11:33:58 -05:00
rusefi
234677df36
Trigger: Question: something strange trigger errors #662
...
second attempt for CUSTOM_ERR_6696 implementation
2019-01-14 11:30:41 -05:00
rusefi
3850e7e8ee
Question: something strange trigger errors #662
...
unit test progress
2019-01-12 15:51:40 -05:00
rusefi
8801fcfbe3
Question: something strange trigger errors #662
...
reducing warnings in unit tests
2019-01-12 15:32:40 -05:00
rusefi
9e73d7bafe
making warning codes more unit testable
2019-01-12 08:34:38 -05:00
rusefi
683069621d
minor tests improvement
2019-01-11 00:47:03 -05:00
rusefi
4b97f15071
random test refactoring
2019-01-10 23:39:41 -05:00
rusefi
6414da4213
random test refactoring
2019-01-10 23:39:14 -05:00
rusefi
7c9a99fb72
random test refactoring
2019-01-10 23:33:50 -05:00
rusefi
51a708117a
reducing global variables in tests
2019-01-10 23:24:36 -05:00
rusefi
e357cec8bf
reducing global variables in tests
2019-01-10 23:09:56 -05:00
rusefi
53b53255df
reducing global variables in tests
2019-01-10 21:50:13 -05:00
rusefi
67aa9f96b9
reducing global variables in tests
2019-01-10 21:26:02 -05:00
rusefi
e394f36d58
reducing global variables in tests
2019-01-10 21:19:46 -05:00
rusefi
270af0c0ab
The Big Refactoring of 2019: scheduler should not be global #655
2019-01-09 20:00:21 -05:00
rusefi
b4f5714b66
The Big Refactoring of 2019: scheduler should not be global #655
2019-01-09 19:57:12 -05:00
rusefi
e189d16978
The Big Refactoring of 2019: scheduler should not be global #655
2019-01-09 16:30:14 -05:00
rusefi
20dc9b57a4
The Big Refactoring of 2019: scheduler should not be global #655
2019-01-09 10:36:35 -05:00
rusefi
9afe619652
making either Matt or compiler or both happier
2019-01-05 00:11:17 -05:00
rusefi
e6a139b044
#625
2018-12-25 21:05:06 -05:00
rusefi
71ca679ec5
bugfix
2018-12-25 18:44:46 -05:00
rusefi
f761616125
#635
2018-12-24 23:23:45 -05:00