Commit graph

81 commits

Author SHA1 Message Date
Snaipe
faaae85b80 cram,osx: Fixed mismatch in getopt diagnostic 2016-09-24 20:32:12 +02:00
Snaipe
e0ea52e60d cram: Added test for invalid CLI flags 2016-09-24 14:08:15 +02:00
Snaipe
a9df7911d6 release: Prepare a release candidate for 2.3.0 2016-09-19 00:21:17 +02:00
Kevin Locke
07c380d6b7 asserts: Add assertions for wide strings
This commit creates _wcs_ variants of the _str_ assertions for operating
on wchar_t * instead of char *.  The assertions are useful for programs
using wchar_t strings, particularly on Windows where use of the wide
character version of the Windows API is encouraged by Microsoft.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2016-09-10 08:48:30 +02:00
Snaipe
cfd3212a4a sample,asserts: Fixed wrong usage of cr_assert_arr_eq_cmp in C++ 2016-09-06 20:56:42 +02:00
Snaipe
fc2cf1f9d2 version: bumped version to 2.3.0-dev 2016-09-06 19:11:16 +02:00
Snaipe
fcc3d92d5d version: Fixed reported version 2016-09-06 18:23:04 +02:00
Snaipe
d886913438 cram: Fixed line counts 2016-09-06 10:50:28 +02:00
Snaipe
d2a4124b87 style: Added and enforce uncrustify config 2016-09-05 21:32:57 +02:00
Snaipe
8d8731053d cram: Updated tests for cr_skip_test() strings 2016-09-05 10:22:03 +02:00
ailu
91250fed74 Fixed output of skipped tests 2016-09-05 10:04:10 +02:00
Snaipe
0b191be52a cram: Fixed tests for --timeout 2016-09-04 21:55:19 +02:00
Snaipe
9a68415eb2 cram: Fixed tests to account for time 2016-09-04 12:19:56 +02:00
ailu
7143118b5c api: added cr_skip_test()
Added cr_skip_test to skip a test during runtime. Also merged the old
disable system with the new one. All skipped tests are printed by
normal_log_post_suite(), so there is no need for a logger function for
runtime skipepd tests.
Fixes #131.
2016-09-03 23:06:35 +02:00
Snaipe
d6b95f93b6 cram: Fixed MSYS2 expanding patterns as paths 2016-09-03 16:48:46 +02:00
Snaipe
ada75ab25c cram: Updated test diffs 2016-09-03 16:22:42 +02:00
Snaipe
a4ad3084a9 options: Deprecate no-early-exit 2016-09-03 16:05:53 +02:00
Snaipe
70f2630ae2 cram: Fixed test diffs 2016-09-03 15:14:06 +02:00
Snaipe
a1d690ffdb sample: Changed parameterized test samples to not use strings 2016-09-03 15:12:28 +02:00
Snaipe
c081c31228 cram: Fixed invalid line test for parameterized.cc 2016-09-03 15:12:28 +02:00
a1lu
25d444b1b9 cli: Added --crash cli option (#126) (#139)
If a assert fails and --crash is given, the debugger will trapped in
this assert using debugbreak.h from the new debugbreak submodule.
2016-08-22 10:17:55 +02:00
Snaipe
9fbd28bf69 core: .exit_code = 0 now enforces the test exit status to be 0.
Before this change, an exit_code of 0 would allow a test to pass for any
exit status, because checking for 0 meant that the value was optional
and people did not care.

However, the semantics of exit() tells that 0 shall be synonymous of
success, and allowing a nonzero status to pass the test is unexpected.

This fixes issue #137.
2016-07-28 18:11:45 +02:00
a1lu
4d6d741357 extended glob matcher with brzozowski derivative (#111) 2016-07-23 22:32:57 +02:00
Kevin Locke
98b63bd041 Allow nullptr or __null in asserts.t
Libc in FreeBSD 10.3 defines NULL to nullptr rather than __null.  Allow
this in the test output.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2016-06-28 17:33:00 -07:00
commit
f201d85e3c Behavior of cr_assert_str* assertions changed:
- Default assertion messages will now print the expession and the content of both strings.
- String assertions will not crash, if the actual string is NULL.
  (cr_assert_not_null(actual) is called before the cr_assert_str* assertion)
2016-06-07 16:56:17 +02:00
Snaipe
0c389023ec cram: Remove cmake dependency on target criterion_samples 2016-05-05 16:28:36 +02:00
commit
f5340f8f27 XML: The output parameter --xml now generates xml-files with the elapsed time. 2016-04-19 19:16:15 +02:00
Franklin Mathieu
1f7ca2f32b Merge pull request #101 from kaidowei/bleeding
cli: Strip red ANSI color from the failing & crashing summary if there were no errored tests.
2016-04-13 15:37:40 +02:00
Snaipe
38653a6414 Merge branch 'master' into bleeding
This merges the changes brought by 2.2.1 into bleeding.
2016-04-13 11:57:37 +02:00
Snaipe
c5b4ca27d7 Fixed redirected standard streams being leaked by cr_(assert|expect)_std(out|err) 2016-03-05 15:51:50 +01:00
Snaipe
e53f3892d5 Merge branch 'features/new-logging' into bleeding 2016-02-18 00:25:45 +01:00
Snaipe
9bc0da9e83 Added C++ stream interface for logging 2016-02-18 00:05:15 +01:00
Snaipe
4241b4e517 Added cram test for log.c 2016-02-18 00:05:15 +01:00
Snaipe
28007ab67e Added missing array include for asserts.cc 2016-02-13 15:09:31 +01:00
Snaipe
24f90ea817 Fixed array comparison assert samples 2016-02-13 13:20:10 +01:00
commit
f442488f19 Visibility change:
The numbers next to Failing and Crashing in the text synthesis will not be printed red, if they are zero.
2016-02-11 14:31:35 +01:00
Snaipe
c507434dca Actually fix the pattern tests this time 2016-01-23 10:54:57 +01:00
Snaipe
f1bd35f81b Fixed pattern tests not running when PCRE is present 2016-01-23 03:04:50 +01:00
Snaipe
a670f7c361 [cram] Made the usage tests ignore absolute paths and --pattern options 2016-01-20 16:04:18 +01:00
Snaipe
444e393226 [samples] Unbuffered standard streams on report sample for test consistency 2016-01-20 16:04:17 +01:00
Snaipe
cc9465e133 [samples] Fixed sample with a cross platform segfault function 2016-01-20 15:03:00 +01:00
Snaipe
033bcacf7f [cram] Skip pattern tests on windows 2016-01-20 12:51:06 +01:00
Snaipe
8b11c2d179 [cmake] Prevented function inlining for C++ samples on mingw (see mingw bug <http://sourceforge.net/p/mingw/bugs/2250/>) 2016-01-19 23:55:01 +01:00
Snaipe
e8ec14e276 [cmake] Fixed cram module not failing when the cram tests fail 2016-01-19 00:30:31 +01:00
Snaipe
60de40708d [cmake] Fixed path passed to cram on windows builds 2016-01-19 00:15:23 +01:00
Snaipe
4530d10af7 [cmake] Added generator propagation to subprojects 2016-01-18 21:55:22 +01:00
Snaipe
813a526c8f [Issue #98] Removed undefined behaviour from signal samples 2016-01-17 11:50:10 +01:00
Snaipe
34675fe4f3 Redefine null for failure messages regression test 2016-01-17 11:50:10 +01:00
Snaipe
02194aa132 Fixed cram target not being run on cmake 2.8.x 2016-01-16 15:34:32 +01:00
Snaipe
7faaa7656f [Issue #95] Fixed fail fast and added proper SIGTERM handling 2016-01-16 14:47:46 +01:00