Mark VanderVoord
d1ab630308
- Added a couple more tests to our details test
...
- Added a gitattributes file to force line endings to be correct.
2015-12-30 16:33:33 -05:00
Mark VanderVoord
cda8d3a7e1
- push the internal function and argument names into a single each per mock to further reduce const overhead.
2015-12-12 12:24:38 -05:00
Mark VanderVoord
f78ab04001
- Grab the latest version of Unity in order to inherit detail display for fail, null, etc.
2015-12-10 21:49:34 -05:00
Mark VanderVoord
ffe2098a5b
- Pull in nicer formatting and fixes to RUN_TEST found in Unity
2015-12-10 18:22:17 -05:00
Mark VanderVoord
647876644b
- Centralized error strings to a few constants.
...
- Made use of the new UNITY_SET_DETAILS feature to background set up function & argument details for messages
- CMock now takes up a lot less memory! woo!
2015-12-10 16:58:10 -05:00
Mark VanderVoord
ada6dd2d22
- Pull in latest version of Unity
2015-12-10 13:08:12 -05:00
Mark VanderVoord
4fcca4bab7
- Moved the "Out of Memory" string into a const to stop repeating it.
...
- Added test for Out of Memory error
- reorder the way we handle includes in CMock internals to match the way it works in Unity
2015-12-10 11:09:26 -05:00
Mark VanderVoord
8dc65e82bf
- Temporarily ignore these errors while we figure out what to do about them properly
2015-12-08 22:03:54 -05:00
Mark VanderVoord
b19bd500fd
update to latest Unity
2015-12-08 22:01:58 -05:00
Mark VanderVoord
ce07ce98be
- Fixed error where structs and such passed by reference were getting checked for null, which isn't valid.
2015-12-08 21:55:05 -05:00
Mark VanderVoord
0807e45753
- Merge in latest Unity
...
- Avoid getting casting errors of going from const char* to void* by going from char[] instead
2015-12-08 21:31:33 -05:00
Mark VanderVoord
bb712ef168
whoops. didn't run all tests first.
2015-08-18 13:38:36 -04:00
Mark VanderVoord
1fdfb61891
Support void* arguments as arrays of bytes by default instead of pointers.
2015-08-18 13:28:29 -04:00
Mark VanderVoord
f17d1a933b
Stop casting unless necessary for custom types or const when returning values.
2015-08-18 07:45:45 -04:00
Mark VanderVoord
2cde629c05
Merge pull request #58 from ftoulemon/patch-1
...
Update CMock_Summary.md
2015-07-12 10:07:35 -04:00
ftoulemon
2b6ad4e00b
Update CMock_Summary.md
...
Add the documentation for the :strippables configuration option.
2015-07-09 14:15:04 +02:00
Mark VanderVoord
13029cad64
Reintroduce fix to "comparison between pointer and integer" warning accidentally reverted in fcc6a40581. (Thanks for noticing, Steven)
2015-06-19 12:48:00 -04:00
Mark VanderVoord
1f6d39dfea
Merge pull request #55 from lukehsiao/patch-1
...
updated README to have the correct bundle command
2015-05-08 07:52:32 -04:00
Luke Hsiao
92c9306976
updated README to have the correct bundle command
2015-05-07 12:41:25 -06:00
Greg Williams
964a9bf46a
Applied -DTEST to compilation of test and test support files in order to apply test build-specific stuff, if needed.
2015-04-13 13:54:06 -04:00
Mark VanderVoord
08364c9564
Merge pull request #52 from eivindt/subdir_support
...
Add support for subdirs (ref issue #1 )
2015-04-10 20:32:55 -04:00
Eivind Tagseth
2b89990106
Add support for subdirs (ref issue #1 )
...
New option :subdir has been added. Creating a mock for
e.g. sys/types.h using cmock_generator.rb with this option
set in config file, or more likely, command line parameter
--subdir=sys makes cmock create the files
:cmock_path/:subdir/:cmock_prefix+"types.[ch]"
The generated mock file will include the original header
file using #include <sys/types.h> as expected.
Only the generating code has been changed, the example
code with scripts for creating makefiles/creating mocks
using rake was too much work for me, and I didn't need any
of it.
2015-04-10 22:31:32 +02:00
Greg Williams
534a290322
Cleaned up constants.
2015-04-07 20:09:31 -04:00
Greg Williams
89724069fb
Fixed/cleaned up require paths in make support scripts.
2015-04-07 19:55:16 -04:00
Greg Williams
a86c281824
Added initial make build support into new scripts/ folder.
...
Moved temp sensor example into examples/temp_sensor.
Added basic make example in examples/make_example.
2015-04-07 13:37:51 -04:00
Greg Williams
78beb078c1
Removed regression testing in Travis CI against Ruby 1.8.7, since 1.9 is the new min version of Ruby supported.
2015-04-06 12:00:38 -04:00
Greg Williams
cd2db9340d
Updated CMock to pin to latest Unity to get changes to aid make task generation using include-based dependencies in test files.
2015-04-06 10:49:33 -04:00
Mark VanderVoord
ba2087c991
- add test to prove that you can use treat_as to mock a typedef alias of void, then use it as a pointer.
2015-03-21 21:02:19 -04:00
Greg Williams
53fb943c58
Changed Dir.exist? to File.exist? for compatibility with Ruby 1.8.7
2015-03-12 12:50:23 -04:00
Greg Williams
d0ce610720
Updated Unity to get require/module loading fix
2015-03-12 12:27:34 -04:00
Greg Williams
e3859b2838
Fixed issue in cmock_generator which was causing unity/auto/type_sanitizer to not be found from within Ceedling
2015-03-12 11:57:52 -04:00
Greg Williams
422077c929
Updated to pull in latest Unity to get type_sanitizer to commonize converting a file name to a valid C identifier for use as mock names, since was duplicated in Unity, CMock and Ceedling.
2015-03-12 11:06:34 -04:00
Greg Williams
90e5ae59b0
Fixed unity test suite runners to pass test suite directly to UnityBegin(name) to be compliant with newer Unity API.
2015-03-12 08:53:38 -04:00
Greg Williams
5efd127e08
Updated to pull in latest Unity and bumped minor version
2015-03-12 08:45:15 -04:00
Greg Williams
3494561c6c
Fixed issue with mock generation for a file that contains a period before the final extension (e.g. some_protobuf.pb-c.h)
2015-03-12 08:38:26 -04:00
Mark VanderVoord
b6289dfcba
Fixed problems in current examples:
...
- fixed path problem to updated unity helper path
- fixed problem with some versions of gcc that require -lm to be at end of compile call
2015-01-30 07:58:24 -05:00
Mark VanderVoord
33fc50084b
- fixed the other place that had the same problem for 1.8.7's lack of define_singleton_method
2014-12-18 16:45:12 -05:00
Mark VanderVoord
e6b3fc47d5
- (wow, working without my old 1.8.7 virtual machine stinks)
2014-12-18 16:22:34 -05:00
Mark VanderVoord
6d4cdf9783
- a second attempt to make test_helper compatible with 1.8.x versions of Ruby
2014-12-18 16:02:29 -05:00
Mark VanderVoord
e1cd4135b4
- attempt to go with notation in test_helper that is compatible with pre 1.9 versions of Ruby
...
- add 1.8.7 to the Travis test setup
2014-12-18 15:31:44 -05:00
Mark VanderVoord
d4a0132117
- array plugin now handles const the way other plugins do.
2014-12-18 13:48:56 -05:00
Mark VanderVoord
d7a448b12f
Merge pull request #42 from gruzdev/pragmas
...
Add ifdef guards around GCC diagnostic pragmas (Thanks Mikhail! sorry it took me so long to get to this!)
2014-12-16 14:50:13 -05:00
Mark VanderVoord
04cb1b0194
- header parser now properly removes multi-line inline function and normal function declarations
2014-12-16 12:44:53 -05:00
Mark VanderVoord
0bd786dfa1
- fixed issue with duplicate variable assignments (thanks for pointing it out, Karsten)
2014-12-16 10:48:40 -05:00
Mark VanderVoord
ecbdbd2716
- fixed license to make it standard MIT license.
...
- updated gem file to reflect latest changes in self-testing methods.
2014-12-16 10:20:56 -05:00
Mark VanderVoord
9b91974839
- updated unit tests to use built-in minitest instead of old TestUnit and Hardmock
2014-12-16 10:04:02 -05:00
Mark VanderVoord
62574632d0
Merge pull request #43 from jlesage/call_instance_init
...
Issue #40 : Initialize newly allocated call instances. (Thanks Jocelyn - I found the message thread that this was in response to.)
2014-12-09 10:05:23 -05:00
Mark VanderVoord
e6d0a19a65
Merge pull request #44 from jlesage/orig_header_include_format_v2
...
Offer a more flexible way to include the original header file (Thanks Jocelyn)
2014-12-09 10:02:55 -05:00
Jocelyn Le Sage
472daea243
Adjusted orig_header_include_fmt configuration item to offer a more flexible way to include the original header file.
2014-11-06 09:25:02 -05:00
Jocelyn Le Sage
591fa9d1c1
Issue #40 : Initialize newly allocated call instances.
2014-11-06 08:46:20 -05:00