Commit Graph

75 Commits

Author SHA1 Message Date
Matthew Kennedy 2328c1be6b
Fuel pressure sensor checks (#2449)
* test for missing sensor

* test negative pressure delta checking logic

* test new hasSensor logic
2021-03-12 23:32:41 -05:00
Matthew Kennedy 423acd384b
simplify MCU selection (#2308)
* set mcu type in hw_ports

* move f4 linker script

* move f7 linker script

* don't set default linker file in makefiles

* extra line

* prometheus actually didn't depend on anything special for f469

* dead line

* h7

* dead
2021-02-08 02:11:44 -05:00
Matthew Kennedy 10c31c2955
-g3 to -g (#2256)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-31 14:13:55 -05:00
Matthew Kennedy 55ebe223a7
Partition configs by board type (#2106)
* remove old flag

* flags

* reorder switch

* oops
2020-12-22 21:54:40 -05:00
Matthew Kennedy 1838beadfa
only build in config for the correct board (#2088)
* only build in config for the correct board

* undo

* undo

* undo

* only touch proteus config

* include configs in tests
2020-12-17 17:12:24 -05:00
Matthew Kennedy 83a65032d6
clang warnings again (#2055)
* s

* changelog

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-11 13:59:28 -05:00
Matthew Kennedy e544e8150a
unit tests in clang (#2012)
* clang errors

* non-test-only

* debugging

* rules on mac

* makefile

* put back

* let's see if this way makes everybody happy

* no, it does nto

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-05 23:21:17 -05:00
rusefillc 286fa10b15 occasional tunerstudio CRC errors #1943
getting ready for unit test
2020-11-15 11:55:26 -05:00
Matthew Kennedy bb8650179c
consolidate EFI_UNIT_TEST and friends (#1940)
* restructure

* guard c++

* idle too

* status_loop.h

* consolidate definitions

* use 1/0 instead, check for existence

* missed a few

* dead define

* defs for bootloader
2020-11-11 20:34:39 -05:00
Matthew Kennedy 2a0205e3c4
switch to single precision constants (#1880)
* adjust builds

* fix test
2020-10-14 20:04:35 -04:00
rusefi 9977668480 The Big Refactoring of 2019: folder structure #723 2020-08-02 20:55:27 -04:00
rusefi c3f26c93b5 The Big Refactoring of 2019: folder structure #723 2020-08-02 20:52:31 -04:00
rusefi 8f4aecf7ca The Big Refactoring of 2019: folder structure #723 2020-08-02 20:46:40 -04:00
rusefi 517761320e logicdata into unit tests 2020-07-19 22:41:34 -04:00
rusefi 52972cec99 OMG it works! 2020-07-19 21:27:28 -04:00
rusefi c39d135e94 Makefile clean-up 2020-05-25 13:42:55 -04:00
Matthew Kennedy 94e63e7c43
binary logging (#1443)
* field support

* tests

* makefiles

* test data too

* missing include dir

* write correct thing

* fix one test

* fix test

* omnomnomnom ram

* format

* use defined names

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-17 15:56:37 -04:00
Matthew Kennedy ff867b9301
fix warnings (#1282)
* warnings

* don't need to template those
2020-04-12 09:39:14 -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
rusefi de36f76882 The Big Refactoring of 2019: folder structure #723 2019-12-03 23:52:44 -05:00
rusefi df26a9fb16 shared GCC settings between projects 2019-12-02 13:53:08 -05:00
rusEfi 1991437f77 development into unit tests, makefile cleanup 2019-11-19 20:05:12 -05:00
Matthew Kennedy 3bd1ddcc1f Sensors: composition >> inheritance (#953)
* functional sensors

* format

* tests

* sim makefile

* eol

* format tests
2019-09-24 21:11:41 -04:00
rusefi 1fbd3dec45 unit_tests to init git modules 2019-08-25 20:15:14 -04:00
rusefi cde33df1a0
Gcov (#906)
* trying to get gcov working

* unit tests code coverage #653

* unit tests code coverage #653
progress :(

* unit tests code coverage #653
2019-08-25 16:53:13 -04:00
rusefi ef6c0ead20 unit tests code coverage #653
See https://stackoverflow.com/questions/57643813/cannot-get-gcov-to-produce-any-coverage-data
2019-08-25 10:21:36 -04:00
rusefi 415c2caae7 questionable readablity improvement 2019-08-25 00:37:05 -04:00
rusefi c2d3f9729e reviving unit tests 2019-07-06 21:00:34 -04:00
rusefi 47a3577e27 MK clean-up 2019-06-15 16:43:30 -04:00
rusefi 7c3e88c7dc Try ccache #769 2019-04-20 21:44:00 -04:00
rusefi 4dac92e202 minor fix - same -Wextra twice 2019-04-20 20:32:20 -04:00
rusefi e236a65525 cj125 and hip125 and else SPI broken with chibi18 migration fix #757 2019-04-14 18:35:39 -04:00
rusefi 5316d7ad6a The Big Refactoring of 2019: folder structure #723 2019-04-09 23:01:45 -04:00
rusefi e0c9493dd9 The Big Refactoring of 2019: folder structure #723 2019-04-05 01:41:24 -04:00
rusefi 56d026b8e2 The Big Refactoring of 2019: folder structure #723 2019-03-31 16:33:16 -04:00
andreika-git b80806182f More portability & small fixes (#719)
* Use hw_stm32.mk

* Fix bootloader

* Use more common hw_ports.mk filename instead of hw_stm32.mk

* More CPU compatibility for Makefile

* TS_UART_MODE & rename TS_SERIAL_UART_DEVICE->TS_SERIAL_DEVICE

* Move lockAnyContext()/unlockAnyContext() to rfiutil.c

* USE_FATFS

* EFI_LCD

* Less compilation errors

* STATUS_LOGGING_BUFFER_SIZE & SETTINGS_LOGGING_BUFFER_SIZE

* EFI_ALTERNATOR_CONTROL, EFI_SERVO, EFI_DISABLE_CONSOLE_ACTIONS

* #ifndef PWM_PHASE_MAX_COUNT & more flexible GPIO inside portname()

* merge

* EFI_ALTERNATOR_CONTROL, EFI_ELECTRONIC_THROTTLE_BODY
2019-03-29 15:29:01 +01:00
dron0gus 70ebc06517 gpiochips API, core and unit test (#703)
* Add external gpiochips driver API and core

* gpiochips: add unit test
2019-03-12 10:12:37 -04:00
rusefi eb96dafa42 Migrate to Chibios 18 stable #631
removing unused ChibiOS references
2019-02-03 21:19:26 -05:00
rusefi 3b5a07c9d6 CJ125 unit-tests coverage #617 2019-02-01 23:16:34 -05:00
rusefi e4234bc004 trying ideas about testability 2019-01-17 00:24:41 -05:00
rusefi fdd9dff136 windows unit tests are now 64 bit 2019-01-12 14:31:55 -05:00
rusefi 5b5f4e124b good enough fix #652 2019-01-08 23:07:00 -05:00
rusefi 60e747481f #35 first unit test with a mock! 2019-01-08 01:20:18 -05:00
Matthew Kennedy 45d4243636 Improve wall wetting AE to use time constant (#650)
* impruv

* c++17

* add tests, docs
2019-01-06 20:45:51 -05:00
rusefi 1d117c4c34 #652 2019-01-06 20:33:56 -05:00
Matthew Kennedy ae1b19d35f fix (#651) 2019-01-06 19:54:10 -05:00
rusefi aced64810f better folder structure 2019-01-05 21:49:47 -05:00
rusefi e6ac26bf2b better conditional compilation 2019-01-04 00:16:08 -05:00
rusefi 2b8f586276 googletest 2019-01-03 20:14:23 -05:00
rusefi ab4d6b824c does this help? 2018-12-23 19:31:19 -05:00