1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00
Commit Graph

1348 Commits

Author SHA1 Message Date
mvandervoord
b6817999c1 - make floating point support optional and configurable
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@48 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-12-06 18:56:35 +00:00
mvandervoord
302e786453 - updated test runner generator to match latest cexception changes
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@47 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-12-05 00:31:49 +00:00
mkarlesky
a4923232ee tightened up pointer handling in UnityAssertEqualMemoryArray to satisfy stricter compilers
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@46 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-11-03 15:52:54 +00:00
mvandervoord
6901c8eb04 - added an "equal" check for floating point (where it checks that floats are within a significant digit of eachother)
- added array support for unknown types (memcompares)

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@45 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-11-03 01:15:54 +00:00
mkarlesky
f5e2adcfdd added meaningful failure statements to TEST_ASSERT_TRUE & TEST_ASSERT_FALSE instead of blank
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@44 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-10-16 14:38:34 +00:00
mkarlesky
15514e7993 added missing 'message' params in _MESSAGE macros; added TEST_ASSERT_NOT_EQUAL
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@43 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-10-08 16:10:43 +00:00
greg-williams
71b4f95a0a Cleaned up typedefs for micro integer width configuration.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@42 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-08-31 15:59:48 +00:00
greg-williams
812a71e983 Modified typedefs in order to avoid collisions
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@41 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-08-31 03:16:38 +00:00
greg-williams
cb1212f9e2 Added support for 16-bit processors via BUS_WIDTH=16 preprocessor define. Defaults to 32-bit if unspecified.
Updated iar_msp430.yml to use full IAR MSP430 edition and use new BUS-WIDTH define.

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@40 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-08-31 01:33:47 +00:00
mvandervoord
8117581f2f - cleaned up interface to generate_test_runner.rb
- fixed a couple minor warnings in unity.c


git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@39 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-08-24 13:53:46 +00:00
mkarlesky
d96d84f547 added output statement noting generation of test runner
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@38 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-07-13 22:14:10 +00:00
mvandervoord
f56bda283a - made a minor tweak to initialization of unity structure to avoid silly compiler warnings.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@37 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-07-11 17:57:55 +00:00
greg-williams
18ef056d6d Added resetTest() method to generate_test_runnner.rb to perform mock verification (optionally), tearDown() and setUp() mid-test. This allows for testing multiple passed through a given function that calls to external mocks and helps cleanup post-test state oddities. Need to figure out how to resolve this current circular reference from the test to the runner though, since the runner is what calls the test methods.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@36 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-07-05 18:42:39 +00:00
mvandervoord
aa3277dd19 - removed configurable tab because it was a performance hit without significant benefit
* WARNING: This is very likely to break the way you call generate_test_runner! We have removed the tab argument. *

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@35 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-06-25 19:23:18 +00:00
mvandervoord
432e6313f8 - finished strict ordering support
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@34 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-06-24 02:27:01 +00:00
mvandervoord
8b274116c0 * fixed mistake in global ordering support in test runner generator
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@33 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-06-19 02:04:47 +00:00
greg-williams
a395675cb5 Added void keyword to empty parameter list to avoid getting warnings or errors from picky compilers.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@32 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-06-08 16:32:39 +00:00
mkarlesky
72d461cacd changed grab_config to class method
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@31 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-05-29 20:36:15 +00:00
mkarlesky
d60fb2146a modified to have a bit more generic and useful interface
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@30 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-05-29 20:17:19 +00:00
mvandervoord
02276ff2af git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@29 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e 2009-05-28 15:35:54 +00:00
mvandervoord
8d03e90091 - moved unity helper into the example directory, because it's not really core.
- made generate_test_runner more flexible in how data comes in.

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@28 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-05-28 15:31:34 +00:00
mkarlesky
261d6a16db fixed broken system test build mechanism
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@27 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-04-16 13:08:49 +00:00
mkarlesky
16d1979c3a added warning flag to gcc config and eliminated warning related to jmp_buf initialization
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@26 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-04-16 12:22:44 +00:00
greg-williams
8457dd9a55 Converted MSP430 config to YAML format. Still need to update Unity to support 16-bit and big-endian to get to work.
Modified Unity to use test suite generator in preparation for updates for 16-bit and big endian changes

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@25 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-04-13 14:21:29 +00:00
greg-williams
c113a9caa0 * Converted rake to use YML config files for toolchain customization per CMock.
Need to figure out what to do about IAR MSP430

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@24 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-04-11 14:42:09 +00:00
mvandervoord
5a35176ec8 - added support to use CMock's yaml file for options
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@23 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-04-11 03:03:16 +00:00
mvandervoord
54eba93094 - support arrays of integers
- fixed bug when reporting problems with large integers
- fixed bug in test suite when checking for expected failures.


git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@22 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-04-10 18:21:21 +00:00
mvandervoord
897d2a3746 - portability improvements
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@21 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-03-02 01:09:04 +00:00
mvandervoord
5c8db2bb7a git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@20 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e 2009-02-22 00:04:53 +00:00
mvandervoord
d88099d51e * Fixed bug where memory compares were printing like strings.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@19 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-02-20 03:53:40 +00:00
mkarlesky
28dea1c39a corrected typos in hex printing and memory compare
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@18 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-02-19 15:45:16 +00:00
mkarlesky
68decf8b34 standardized pointer notation; did a bit of janitorial work on Unity struct
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@17 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-02-19 06:43:19 +00:00
mvandervoord
24a56b0c38 - happier with const (and more optimized on some compilers)
- better helper examples
- general purpose memory compare

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@16 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-02-19 03:30:45 +00:00
greg-williams
3eeb7dd726 Added config for IAR MSP430
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@15 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-02-17 04:50:31 +00:00
mvandervoord
62ed500b11 * update unity and helper to make names more consistent and to strictly make const interfaces.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@14 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-02-11 18:43:48 +00:00
mvandervoord
12289c3f52 * Updated frame to not require separate pointer initialization
* Updated test runner to protect teardown (just in case someone tries to put ASSERTS in their teardown function)

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@13 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-01-26 15:16:38 +00:00
mvandervoord
be1c104dc0 * fix to test runner generator
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@12 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-12-12 17:28:05 +00:00
greg-williams
feec71bda8 Ugh
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@11 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-11-20 20:02:24 +00:00
greg-williams
9c5213f104 * Fixed hang upon CMock mock verification detecting a failure
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@10 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-11-20 19:58:09 +00:00
greg-williams
e8c1dcf374 * Updated generate_test_runner.rb to work with latest Unity changes
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@9 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-11-13 23:27:57 +00:00
greg-williams
c22740f14a * Updated rakefile to work on Unix-based systems
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@8 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-11-13 16:22:10 +00:00
greg-williams
6e2de5e52f * Converted Unity to use setjmp/jongjmp for aborting upon test failures
* Eliminated TEST_WRAP and TEST_WRAP_NO_RETURN, since new abort mechanism eliminates the need to use these
- Updated documentation
- Changed default target to GCC in both Unity test and example project

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@7 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-11-13 15:39:50 +00:00
greg-williams
8f6a7ad770 - Modified generate_test_runner.rb to generate unit test main() with int main(void) instead of void main(void) in order to work with GCC
- Removed unused methods from unity_test_summary.rb

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@6 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-11-07 14:36:10 +00:00
mvandervoord
8fb0204021 Examples and main tests can be run on GCC or IAR now
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@5 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-10-29 13:48:26 +00:00
mvandervoord
d1550d8494 Examples projects, more complete documentation, and other beautification. It brings a tear to the eye.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@4 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-10-29 00:00:30 +00:00
greg-williams
158b172fd5 Fixed parameter mismatch bug in TEST_ASSERT_EQUAL_HEX() macro.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@3 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-06-11 21:57:59 +00:00
greg-williams
f39f8a7701 Updated makefile to run tests after building and added :clean and :all tasks.
Added UnityHelper module in order to show how to extend Unity.

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@2 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-05-11 19:30:41 +00:00
greg-williams
720acfbb95 Initial project population
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@1 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-02-07 03:00:54 +00:00