John Lindgren
277e844bed
Convert RUN_TEST() to a function (generated from an ERB template).
...
Converting RUN_TEST() from a macro to a function significantly reduces the size
of the compiled binary. On amd64, the largest test runner in the test suite
(testsample_DefaultsThroughCommandLine_runner.o) was reduced from 3.4 kB to 2.4
kB (stripped).
2019-10-22 15:18:20 -04:00
John Lindgren
d10cf6645d
Remove unnecessary #includes.
2019-10-22 15:05:34 -04:00
John Lindgren
68cc45a918
Make sure setUp/tearDown are always defined.
2019-10-22 15:04:03 -04:00
Mark VanderVoord
5fc72fbca1
fix name of teardown function
2019-10-22 06:52:25 -04:00
Mark VanderVoord
ff697ad29c
suite setup and teardown no longer static (simplifies test-supplied instance)
2019-10-22 06:45:47 -04:00
Mark VanderVoord
ac427b28fc
Fixed backwards case.
2019-10-22 06:37:28 -04:00
Mark VanderVoord
2d8a69e0d1
update handling of when suite_setup/teardown in use
2019-10-22 06:27:26 -04:00
Mark VanderVoord
cb8744c496
More argument fixing (I hate flying blind... can't wait to get back on my laptop)
2019-10-21 14:59:31 -04:00
Mark VanderVoord
c19e3f99ce
missed function call arguments
2019-10-21 14:45:56 -04:00
Mark VanderVoord
9fdcc2d3ff
Catch up documentation to match these changes.
2019-10-21 14:29:52 -04:00
Mark VanderVoord
d9b0edf282
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
0793de9ef1
Do not fail makefile just because example fails.
2019-10-21 11:27:28 -04:00
Mark VanderVoord
9842a4d03d
Switching to universal version being in the header file itself.
2019-10-21 10:12:59 -04:00
Mark VanderVoord
77008edca9
Support size_t macros
2019-10-21 08:32:35 -04:00
Mark VanderVoord
210b7759dd
Merge pull request #451 from michaelbadcrumble/meson_support
...
Meson support upgrade to version 0.52.0.
2019-10-21 06:02:50 -04:00
Michael Brockus
1748f00fc7
Adding ignore entries.
...
Adding basic ignore entry for example and main build directories.
2019-10-12 08:50:58 -07:00
Michael Brockus
8227ea2c36
Update .gitattributes
...
Adding Meson build script into hit attributes as text.
2019-10-12 08:44:03 -07:00
Michael Brockus
bcbb476e20
Upgrade Meson support version number two 0.52.0.
...
This is because Meson now has better support for static libraries.
2019-10-12 08:38:10 -07:00
Mark VanderVoord
8ce41ede72
Merge pull request #449 from richardhob/richardhob-bugfix-cmake-minimum-version
...
Update CMakeLists.txt minimum version
2019-10-02 14:46:17 -04:00
richardhob
53916f823c
Update CMakeLists.txt
...
Update the CMAKE minimum version from `3` to `3.0` to fix error in Windows 10 x64 with CMAKE 3.15.4:
cmake_minimum_required could not parse VERSION "3".
2019-10-02 11:38:48 -07:00
Mark VanderVoord
5cb2b63490
Merge pull request #442 from jlindgren90/win32-compat
...
Fix "rake scripts" when running on Windows.
2019-09-30 06:01:10 -04:00
Mark VanderVoord
50db1a7e67
Merge pull request #445 from michaelbadcrumble/fix_meson_support
...
Fix Meson build system support.
2019-09-30 05:58:47 -04:00
Mark VanderVoord
e1381748f8
Merge pull request #446 from michaelbadcrumble/update_cmake_support
...
Update CMake support.
2019-09-30 05:57:27 -04:00
Mark VanderVoord
380103ab8c
Merge pull request #448 from alecoding/malloc_alignment
...
Fix malloc alignment (Thanks @alecoding )
2019-09-30 05:55:55 -04:00
Alessio Centazzo
7df6cca794
Fix compiler warning
...
Fix compiler complaint about declaration after statement
2019-09-29 22:01:03 -07:00
Alessio Centazzo
75e88a9bc4
Fix MallocThenReallocGrowsMemoryInPlace
...
The realloc was not taking in account extra bytes needed for the the pointer proper alignment
2019-09-29 21:45:51 -07:00
Alessio Centazzo
fc14856321
Fix malloc alignment
...
Make sure the malloc alignment is always aligned to the architecture's pointer size
2019-09-29 15:08:48 -07:00
Michael Brockus
7e3804545c
Fixed typo in sub CMakeLists.txt.
...
Fixed a simple mistake.
2019-09-22 06:59:35 -07:00
Michael Brockus
f4251bf87d
Remove Unity version number.
...
Removed Unity version number from Meson build scripts so there is one less thing to change when doing updates to this script.
2019-09-17 12:23:28 -07:00
Michael Brockus
bc7d89a891
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
e6f38c2792
Update CMakeLists.txt
...
Moved the add library method into sub dir. Also made this CMakeLists.txt script compatible for versions os CMake starting from 3.x and up.
2019-09-17 12:14:47 -07:00
Michael Brockus
31ab99b860
Update sub meson.build in test runner dir.
...
Put source in an array, cleaned up script and fixed comment.
2019-09-17 11:33:31 -07:00
Michael Brockus
29af4c0e0d
Updated sub meson.build in example test dir.
...
Removed newlines and fixed comment.
2019-09-17 11:30:07 -07:00
Michael Brockus
964a58c053
Updated sub meson script in example src.
...
Added foreach loop to avoid DRY, Put source files in map structors, fixed comment.
2019-09-17 11:28:47 -07:00
Michael Brockus
f2711a87a6
Update meson.build
...
Moved example dir variable into source meson.build script, fixed comment.
2019-09-17 11:25:17 -07:00
Michael Brockus
822e244bd4
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
Michael Brockus
c2c42ce14f
Update meson.build
...
Cleaned up compiler flags in root meson.build, renamed a variable and removed 'c_std=<standard version>' because Meson sets C standard flag to C11 by default.
2019-09-17 09:31:26 -07:00
John Lindgren
9578a382cc
Fix "rake scripts" when running on Windows.
...
cmd.exe does not recognize backslash as an escape character,
leading to errors like the following:
error: stray '\' in program
note: in definition of macro 'UNITY_OUTPUT_CHAR_HEADER_DECLARATION'
It does, however, recognize double quotes, so we can use those as
a portable method of escaping special characters on both Windows
and UNIX.
2019-09-13 16:19:46 -04:00
Mark VanderVoord
46263fc148
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
Mark VanderVoord
2939c420ed
Better protection against nested comments (and things that look like comments)
2019-08-12 15:40:43 -04:00
Mark VanderVoord
7514b89fa6
Merge pull request #431 from arcadien/AVR_OPTIMISATION
...
optimisation(AVR): Store static string in AVR EEPROM
2019-07-09 08:34:47 -04:00
Aurelien Labrosse
3ac73efe62
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
1100c5d8f0
Merge pull request #430 from squidfarts/master
...
Quick fix to Meson example.
2019-07-06 12:00:17 -04:00
Michael Brockus
3afc0412e1
Changed source of Unity.
2019-07-06 08:54:07 -07:00
Mark VanderVoord
0892db2376
Protect against nil return codes in rakefiles
2019-07-06 11:31:31 -04:00
Mark VanderVoord
3e82c0a96f
sigh. wrong comment style
2019-07-06 11:07:00 -04:00
Mark VanderVoord
0000f1e6d2
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
Michael Brockus
a2f25d05d8
Added 'c' in example 4
2019-07-05 18:10:58 -07:00
Mark VanderVoord
a54d58a8fd
It doesn't seem like there is a time where setUp and tearDown aren't required in Fixture.
2019-07-05 19:29:21 -04:00
Mark VanderVoord
45020b0d3b
Cleanup issue #417
2019-07-05 19:14:22 -04:00