mipengwei
b81b849bf5
Signed-off-by:mipengwei<mipengwei@huawei.com>
2022-06-29 11:45:13 +08:00
mamingshuai
5891e6f712
update openharmony 1.0.1
2021-03-11 18:42:54 +08:00
wenjun
3f760d041f
add OpenHarmony 1.0 baseline
2020-09-09 09:26:48 +08:00
Mark VanderVoord
69618ff821
Merge pull request #459 from elliot-gawthrop/combined_suite
...
Option to omit UnityBegin/UnityEnd calls in generate_test_runner
2019-10-30 09:33:18 -04:00
Mark VanderVoord
3309f72ba3
Merge pull request #461 from jlindgren90/duplicate-branch
...
Remove exactly duplicated 'else if' branch
2019-10-30 09:31:14 -04:00
John Lindgren
69ccba9275
Remove exactly duplicated 'else if' branch.
2019-10-29 17:10:45 -04:00
John Lindgren
539ae44bd1
Fix TEST_ASSERT_HEX64_ARRAY_WITHIN truncating delta to 32 bits.
2019-10-29 16:59:59 -04:00
anon
b1d1c148be
Option to omit UnityBegin/UnityEnd calls in generate_test_runner
...
By passing --omit_begin_end=1 to generate_test_runner.rb, the script
will now omit calls to UnityBegin and UnityEnd when running tests in a
suite.
This allows multiple suites to be executed in a row, and then have an overall
summary of the tests which were executed across all suites.
2019-10-29 20:32:06 +00:00
John Lindgren
edbca32674
Update incorrect comment.
2019-10-29 13:21:59 -04:00
mvandervoord
e19518a888
Add missed casting
2019-10-29 06:34:09 -04:00
mvandervoord
2dc36b7a95
Added set of assertions for checking CHAR's and CHAR arrays (not as strings)
2019-10-28 16:54:32 -04:00
mvandervoord
d28857f186
Stopped supported -0 as a float output because (a) it is non-portable, only existing on some architectures and (b) relies on the undefined behavior of 1.0/0.0
2019-10-28 13:43:32 -04:00
mvandervoord
48e6f8dbad
Add options for different output formats
2019-10-28 12:43:11 -04:00
Mark VanderVoord
826c1c637c
Merge pull request #450 from arcadien/fix_comments
...
Fix CMakeLists
2019-10-28 10:45:23 -04:00
mvandervoord
f19945080b
Add verifyTest option to go with resetTest.
...
Fix docs.
2019-10-28 10:32:22 -04:00
Aurelien Labrosse
d4d999c9c3
CMakeLists fixes
2019-10-26 18:31:57 +02:00
mvandervoord
f36387fa30
Fixed a couple of mistakes in last commit
2019-10-25 11:20:25 -04:00
mvandervoord
a9a2399310
- added target for checking ANSI compliance
...
- fixed ANSI (C89) issues, including #418
2019-10-25 10:17:12 -04:00
Mark VanderVoord
99ab9fda24
Switch from the inconsistent use of weak symbols to handling setup, etc in script generators
2019-10-21 14:21:52 -04:00
Mark VanderVoord
dd57f67aed
Switching to universal version being in the header file itself.
2019-10-21 10:12:59 -04:00
Mark VanderVoord
32f824c18c
Support size_t macros
2019-10-21 08:32:35 -04:00
Mark VanderVoord
2be3610433
Merge pull request #445 from michaelbadcrumble/fix_meson_support
...
Fix Meson build system support.
2019-09-30 05:58:47 -04:00
Michael Brockus
625d7af6ee
Fixed typo in sub CMakeLists.txt.
...
Fixed a simple mistake.
2019-09-22 06:59:35 -07:00
Michael Brockus
748679ce28
Create CMakeLists.txt
...
Added new CMakeLists.txt here in the src dir, moved add library method from root script to sub script.
2019-09-17 12:17:22 -07:00
Michael Brockus
1502debca8
Update source meson.build
...
Removed 'unity_src' variable because Unity only one source file, changed library method to static only because there was some issues with using Unity as a shared library, cleaned sub meson.build script and fixed comment in sub source root.
2019-09-17 09:37:41 -07:00
Mark VanderVoord
a5ba968aa2
Get the 2's compliment of the unsigned int number when printing results without relying on problematic recasting of a negated int. (see #439 )
2019-09-10 15:52:37 -04:00
Aurelien Labrosse
0cbb276990
optimisation(AVR): Store static string in AVR EEPROM
...
* This can save a lot of program memory and allow to run test on ATTiny
2019-07-09 09:58:48 +02:00
Mark VanderVoord
0c13f4c5fd
sigh. wrong comment style
2019-07-06 11:07:00 -04:00
Mark VanderVoord
3ce61e6eae
Add TEST_MESSAGE for outputting messages without aborting a test and _MESSAGE variant to TEST_PASS collection.
2019-07-06 11:02:32 -04:00
Mark VanderVoord
d186ad0abc
Cleanup issue #417
2019-07-05 19:14:22 -04:00
Mark VanderVoord
692b5deb1b
Merge pull request #425 from farrrb/fix-ti-c55-sizeof
...
TI C55x compatibility patches - removal of sizeof operator from the interfaces
2019-07-05 15:41:41 -04:00
Mark VanderVoord
fa6f32288b
Merge pull request #429 from squidfarts/master
...
Meson support for Unity unit testing framework.
2019-07-05 15:34:23 -04:00
Mark VanderVoord
cb235396ad
cleanup warning.
2019-07-03 15:07:44 -04:00
Mark VanderVoord
b97afac732
- Added options for how to handle TEST_ASSERT_EQUAL shorthand
...
- Tweak a couple style problems with Ruby scripts.
2019-07-03 15:03:03 -04:00
Michael Brockus
a7799cf4c2
Added meson.build in src directory.
2019-07-02 19:58:16 -07:00
Fabian Zahn
df0f2a1600
Add indentation for type autodetection macros
2019-05-12 19:57:54 +02:00
Fabian Zahn
ed5c5e41a6
Introduce patch from "UnityAssertEqualIntArray" for "UnityAssertNumbersArrayWithin" in order to get rid of the sizeof() operator
2019-05-12 09:31:26 +02:00
Fabian Zahn
01a7960120
Remove the remaining sizeof() operators from internal interface
...
sizeof() is a hell of an operator and returns the size of a data type in terms of "addressable units" which is not necessarily the size in bytes. To circumvent this problem and in order to keep the API clean we try to remove all sizeof() from the API.
2019-05-12 09:24:49 +02:00
Mark VanderVoord
3fbcd39c63
Merge pull request #377 from elliot-gawthrop/execution-time-embedded
...
Execution time improvements
2019-05-04 07:53:37 -04:00
Mark VanderVoord
04a8ac2c28
Merge pull request #404 from farrrb/fix-nibbles-UnityPrintNumberHex
...
Fixed maximum number of nibbles for processor where sizeof() operator…
2019-05-04 07:39:59 -04:00
Mark VanderVoord
58bf0e0063
Merge pull request #403 from farrrb/fix-issue-392
...
Used sizeof operator for pointer increments in UnityAssertEqualIntArray().
2019-05-04 07:39:22 -04:00
Dom Postorivo
84a7e42eaa
ARRAY_WITHIN in unity
2019-04-20 14:10:56 -04:00
Dom Postorivo
c541bace2c
Use Pass string from unity.c in unity_fixture.c to garuntee colour behavior
2019-04-13 14:29:06 -04:00
Fabian Zahn
2a7f0ca4f7
Used sizeof() operator for pointer increments and substituted sizeof() operator for the unsigned int mask calculation to "UNITY_INT_WIDTH / 8" in function "UnityAssertEqualIntArray".
2019-04-07 18:34:25 +02:00
Fabian Zahn
b58f6bd586
Fixed maximum number of nibbles for processor where sizeof() operator doesn't return the size of a type in 8-bit bytes (e.g. the TI C2000 series).
2019-04-07 12:09:00 +02:00
Alexander Brevig
df6af0ef7e
use unary minus on the incoming int instead of the casted uint
2019-03-12 00:17:37 +01:00
elliot
e835d7bf41
Improvements to the execution time feature
...
- Running time macros have been made more portable, previously it was not
possible to override all macros
- Running time macros will be executed by default test runner, and auto test
runners
- Adds a default execution time implementation for unix. (Previous default
implementation only worked on Windows)
- For embedded platforms there is a simple method of getting a default
implementation by defining a single macro UNITY_CLOCK_MS()
- Removed need for UNITY_EXEC_TIME_RESET. This was not being used for the default
implementations, if anything ever did need reset-like functionality it could
simply be wrapped up with the start or stop macros for that platform
2019-01-31 22:01:20 +00:00
Fabian Zahn
df6d7c0f20
Added braces to avoid implementation solely based on operator precedence.
2019-01-30 21:26:35 +01:00
Mark VanderVoord
34f1f0b3a8
Merge pull request #383 from farrrb/feature-printf
...
Feature printf (Thanks @farrrb !)
2019-01-25 06:09:20 -05:00
Luca Boccassi
dde15abe06
Make unity.c compatible with c90
...
Avoid declaring the loop variable inside the for statement to keep
compatibility with c90:
unity.c:1408: error: for' loop initial declaration used outside C99 mode
2019-01-24 21:44:34 +00:00