Commit Graph

76 Commits

Author SHA1 Message Date
rusefillc 549839b0de engine sniffer into unit tests 2021-04-04 22:41:38 -04:00
Matthew Kennedy 765895d913 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 c0757a7d13 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 e22a9e9d02 -g3 to -g (#2256)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-31 14:13:55 -05:00
Matthew Kennedy 7617b115de Partition configs by board type (#2106)
* remove old flag

* flags

* reorder switch

* oops
2020-12-22 21:54:40 -05:00
Matthew Kennedy 34edf34bf4 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 26a205f72b clang warnings again (#2055)
* s

* changelog

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-11 13:59:28 -05:00
Matthew Kennedy 9f9e9f99d1 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 53bcd448cf occasional tunerstudio CRC errors #1943
getting ready for unit test
2020-11-15 11:55:26 -05:00
Matthew Kennedy 6b0c533d2c 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 554304dac3 switch to single precision constants (#1880)
* adjust builds

* fix test
2020-10-14 20:04:35 -04:00
rusefi 81a6a30ed5 The Big Refactoring of 2019: folder structure #723 2020-08-02 20:55:27 -04:00
rusefi 85758dea6e The Big Refactoring of 2019: folder structure #723 2020-08-02 20:52:31 -04:00
rusefi 9a33e922af The Big Refactoring of 2019: folder structure #723 2020-08-02 20:46:40 -04:00
rusefi 5b75acdaf5 logicdata into unit tests 2020-07-19 22:41:34 -04:00
rusefi ac7166fce1 OMG it works! 2020-07-19 21:27:28 -04:00
rusefi 0ccde6f937 Makefile clean-up 2020-05-25 13:42:55 -04:00
Matthew Kennedy e6e48ce66c 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 24b0c85a9e fix warnings (#1282)
* warnings

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

* format

* tests

* sim makefile

* eol

* format tests
2019-09-24 21:11:41 -04:00
rusefi 5a567efda6 unit_tests to init git modules 2019-08-25 20:15:14 -04:00
rusefi 55fec0066d 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 1b44e664cb 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 80658efa77 questionable readablity improvement 2019-08-25 00:37:05 -04:00
rusefi abc7040511 reviving unit tests 2019-07-06 21:00:34 -04:00
rusefi 9a33c3488a MK clean-up 2019-06-15 16:43:30 -04:00
rusefi 4627cc9c8f Try ccache #769 2019-04-20 21:44:00 -04:00
rusefi 3306f58ed2 minor fix - same -Wextra twice 2019-04-20 20:32:20 -04:00
rusefi 37c2fbf1da cj125 and hip125 and else SPI broken with chibi18 migration fix #757 2019-04-14 18:35:39 -04:00
rusefi f554572c54 The Big Refactoring of 2019: folder structure #723 2019-04-09 23:01:45 -04:00
rusefi df62ae6a4b The Big Refactoring of 2019: folder structure #723 2019-04-05 01:41:24 -04:00
rusefi 583d189e3b The Big Refactoring of 2019: folder structure #723 2019-03-31 16:33:16 -04:00
andreika-git a79175f6ef 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 68884cc4ae 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 14289f3686 Migrate to Chibios 18 stable #631
removing unused ChibiOS references
2019-02-03 21:19:26 -05:00
rusefi 6992480f74 CJ125 unit-tests coverage #617 2019-02-01 23:16:34 -05:00
rusefi 22b4a07927 trying ideas about testability 2019-01-17 00:24:41 -05:00
rusefi 6cb78deba4 windows unit tests are now 64 bit 2019-01-12 14:31:55 -05:00
rusefi 31969365df good enough fix #652 2019-01-08 23:07:00 -05:00
rusefi e14c7e6e92 #35 first unit test with a mock! 2019-01-08 01:20:18 -05:00
Matthew Kennedy 7154da1f5f Improve wall wetting AE to use time constant (#650)
* impruv

* c++17

* add tests, docs
2019-01-06 20:45:51 -05:00
rusefi 5362d9974c #652 2019-01-06 20:33:56 -05:00
Matthew Kennedy 1cac5621d7 fix (#651) 2019-01-06 19:54:10 -05:00
rusefi 8d8d3c32ca better folder structure 2019-01-05 21:49:47 -05:00
rusefi 9917458125 better conditional compilation 2019-01-04 00:16:08 -05:00
rusefi 3bd7ccf478 googletest 2019-01-03 20:14:23 -05:00