Commit Graph

44 Commits

Author SHA1 Message Date
kifir23917 b84a4d13e1
move US_TO_NT_MULTIPLIER macro definition to Makefile (#6445)
* only:unit test time mess

* move US_TO_NT_MULTIPLIER macro definition in Makefile

---------

Co-authored-by: rusefi <rusefillc@gmail.com>
2024-05-01 19:33:39 -04:00
rusefillc 8dd5fcb56d unit test mk line is not needed twice 2024-03-16 17:41:52 -06:00
rusefillc af9935ba0e only: JNI for test coverage fix #3965 2024-03-06 10:46:50 -05:00
David Holdeman 8b4de3111a Call gen_live_documentation.sh from make 2024-03-04 23:30:13 -05:00
David Holdeman c4367b8b4d include rusefi_config.mk for unit tests 2024-02-26 00:13:48 -05:00
Andrey 244a42d795 only: it's a hot mess :( 2024-01-15 20:29:38 -05:00
Matthew Kennedy 14a87d497e remove ccache 2023-11-02 14:30:22 -04:00
Matthew Kennedy 0a767edd3d prep adding Werror=shadow 2023-11-01 19:25:13 -04:00
rusefi 186be0c777 export board-specific macro for stm32 pins based on board yaml #3298 2023-09-02 22:09:38 -04:00
Andrey f687925175 saving 20 bytes for 8chan7 2023-08-25 10:45:40 -04:00
rusefillc d7fc771971 JAVA_HOME jni issue 2023-08-06 07:45:42 -04:00
Matthew Kennedy d71ee23d63 unit tests get board name
(cherry picked from commit a430c10ed4)
2023-04-29 06:47:46 -04:00
Matthew Kennedy 73f4436397
deduplicate $(BOARD_DIR) in makefiles (#5024)
* calculate BOARD_DIR exactly once

* deduplicate board scripts

* unit tests

* make passes variables to openblt build properly

* was this an intentional omission?

* s

* prometheus

* prometheus
2023-02-01 14:41:27 -05:00
Matthew Kennedy 4643dc3c79
Reenable sanitize (#4384)
* turn on sanitize, fix overrun

* allow sanitize override, disable it for shared lib

* probably fix android build
2022-07-27 09:22:22 +03:00
rusefillc f7f6f9d8eb Revert "Reenable sanitize (#4365)"
This reverts commit d87be38401.
2022-07-22 08:15:15 -04:00
Matthew Kennedy d87be38401
Reenable sanitize (#4365)
* turn on sanitize, fix overrun

* allow sanitize override, disable it for shared lib
2022-07-22 08:19:54 +03:00
rusefillc 6df7d90765 spaces in JAVA_HOME usability 2022-05-24 14:42:42 -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 20cf22665e JNI for test coverage #3965 2022-03-13 00:25:10 -05:00
rusefillc 44b5383a71 JNI for test coverage #3965 2022-03-12 23:47:38 -05:00
rusefillc a036dcda87 JNI for test coverage #3965 2022-03-01 00:13:39 -05:00
rusefillc af39ca9eba JNI for test coverage #3965
hello darwin
2022-02-26 21:02:34 -05:00
rusefillc 2955f66f66 JNI for test coverage #3965 2022-02-26 21:02:34 -05:00
rusefillc 865cd1bc54 JNI for test coverage #3965 2022-02-26 18:12:34 -05:00
rusefillc 540c68d7ce dead code: THUMB really does not apply here 2022-02-26 13:48:51 -05:00
rusefillc bdc6340df7 only c++ because lua does some things asan doesn't like, but don't actually cause overruns. 2021-11-20 03:04:52 -05:00
Matthew Kennedy 754e832a7f
don't do things that don't work in clang (#3584)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-20 02:40:41 -05:00
Matthew Kennedy bb57a4b084
detect more overflows with asan (#3582)
* overflow detector

* type list dynamic allocate

* fix the buffer length

* comment

* pr fb

* sanitize sim

* fix sim sanitizer bug

* didn't mean to turn off optimization for sim

* asan can do that, if you turn it on!

* cleaning
2021-11-20 01:38:39 -05:00
rusefillc fcc2b780e9 On -fpermissive in Windows in unit tests fix #3581 2021-11-20 00:26:52 -05:00
Matthew Kennedy cdd27abb09
turn on c++ 20 (#3579)
* set flags

* emit initializers

* jar
2021-11-19 22:19:34 -05:00
Scott Smith 62daac73c7
Use Valgrind to detect unitialized variable references. (#3555)
* Use Valgrind to detect unitialized variable references.

Fix the edge cases that pop up

* Comment and disable Mac run
2021-11-15 23:42:23 -05:00
Scott Smith 37da55c920
Compile each project's PCH to a separate file to reduce developer friction. (#3505)
Having to remove the precompiled header when switching from firmware to simulator to unit_tests and
back again is annoying.  Use a directory to store the precompiled header output.  Turn off
precompiled header warnings as GCC still complains even if it finds a valid one eventually.
2021-11-08 15:52:58 -05:00
Matthew Kennedy e7a1fb4aaa
unit test build times (#3489)
* don't emit assembly listings

* more

* extract coverage

* link coverage
2021-11-06 21:20:24 -04:00
rusefillc db6bdfae61 small step back 2021-10-30 20:52:10 -04:00
Matthew Kennedy 29ec0a5859
better pch usage and gmock constructors (#3426)
* break out mock constructors

* comment and spacing

* unnecessary compiler options

* happy stepper

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-10-30 20:31:09 -04:00
Matthew Kennedy 2e5a4b3691
no asan on windows (#3230) 2021-09-07 17:39:04 -04:00
Andrey a5e17ba0d6 x86_64-w64-mingw32-g++: error: libsanitizer.spec: No such file or directory #3221 2021-09-05 07:15:33 -04:00
Matthew Kennedy c72bd07179
enable address sanitizer (#3217)
* enable asan

* lua

* this is dead and leaky

* leaky nissan

* fix pwm generator use-after-stack

* initializers

* prevent problems in case of invalid trigger shape

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-09-05 05:56:59 -04:00
Matthew Kennedy 3518da97a7
set up precompiled header (#2971)
* ignore

* set up precompiled header

* makefile

* fixes

* cleanup

* only depend cpp on pch

* efifeatures in pch

* f7 efifeatures

* consolidate

* simulator

* proteus build

* error handling is a good one

* bootloader pch

* don't auto include pch

* dirs

* delete on clean

* bootloader cleans

* clean.sh deletes pch

* disable in bl for now

* there was a typo so maybe it'll work now

* remove todo

* don't need that any more

* don't need these parts

* don't need this part

* undo changes

* use a different cpp as example

* s

* Revert "cleanup"

This reverts commit 8de8698490.

* also unnecessary now

* buh

* comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-07-25 21:23:23 -04:00
Andrey bd5ff4b5a5 Nissan progress 2021-07-02 16:31:10 -04:00
rusefillc 66cd0da92f Break out unit tests #2627 2021-05-07 17:43:24 -04:00
rusefillc 7eb28a1367 Break out unit tests #2627 2021-05-07 17:18:18 -04:00
rusefillc 5fdc1a17d3 Break out unit tests #2627 2021-05-07 12:36:30 -04:00
rusefillc e26f2215d5 Break out unit tests #2627 2021-05-06 16:33:10 -04:00