nfarid
b35f6b0851
Add CMAKE_INSTALL_INCLUDEDIR to INSTALL_INTERFACE's include directory
...
This allows one to #include <unity/unity.h>
2023-05-30 11:40:39 +01:00
Mark VanderVoord
f23d8b25cd
Merge pull request #669 from jonhenneberg/master
...
Fix filename sanitization with command line option
2023-04-17 13:06:44 -04:00
Jon Hanghøj Henneberg
6a8e03b5a9
Fix filename sanitization with command line option
...
When enabling the command line option the file name added to the runner
did not escape the slashes on windows in the same way other paths where
sanitized. Copied the sanitization from the other filename uses.
2023-04-17 18:23:20 +02:00
Mark VanderVoord
c40b80a917
Merge pull request #665 from torgnylyon/master
...
Fix delta cast for UINT8_ARRAY_WITHIN
2023-03-15 15:06:49 -04:00
Torgny Lyon
91ff8c3ee8
Fix delta cast for UINT8_ARRAY_WITHIN
2023-03-15 19:29:58 +01:00
Mark VanderVoord
10a8acb3b6
Merge pull request #664 from hart-NTP/noreturn
...
Use __attribute__((__noreturn__)) instead of __attribute__((noreturn))
2023-03-15 10:04:08 -04:00
Dave Hart
40b573a784
Use __attribute__((__noreturn__)) instead of __attribute__((noreturn)) to avoid issue with FreeBSD #define noreturn _Noreturn
2023-03-15 09:11:08 -04:00
Mark VanderVoord
f9879bf7d8
Merge pull request #662 from nirs/skip-subproject-install
...
Don't install anything when building as subproject
2023-02-21 09:28:05 -05:00
Nir Soffer
18482abd9e
Don't install anything when building as subproject
...
When a project is consuming unity as as subproject, unity headers,
static library and pkg config files are installed by `meson install`.
This can be fixed by using `meson install --skip-subprojects`, but this
must be repeated in all the distros packaging a project.
Fixed by disabling install when building as a subproject.
Fixes : #661
2023-02-21 02:28:04 +02:00
Mark VanderVoord
0854f3d2d5
Merge pull request #658 from amcnulty-fermat/meson-update
...
Meson update
2023-02-15 17:19:36 -05:00
Andrew McNulty
fba6be17c7
Bump meson_version to '0.47.0'
...
The use of the check kwarg in run_command() was
introduced in meson version 0.47.0
2023-02-14 17:53:03 +01:00
Andrew McNulty
43378c4262
Implement review feedback for Meson updates.
...
1. Call the version extraction script directly instead
of through a Python returned from `find_program()`.
2. We don't need to use `meson.project_source_root()` as
`find_program()` will search relative to the current meson.build
script.
3. Lower the required version back to `>= 0.37.0`, and modify
some things to get rid of warnings with this version selected.
The use of `summary()`, `dict`, and positional arguments in
`pkgconfig.generate()` generate warnings with this version so
remove `summary()` and dict()`, also pass keyword arguments to
`pkgconfig.generate()`.
2023-02-14 09:23:14 +01:00
Andrew McNulty
44bc9e6dbe
Update Meson build system
...
The following features from the CMake build have been implemented:
* Library version retrieved from unity.h.
* Extension support.
* Library, header, and package configuration file installation.
This commit is entirely based on existing work by Owen Torres.
2023-02-13 17:22:52 +01:00
Andrew McNulty
cd80a79db5
Add Meson example based on Owen Torres' example.
2023-02-13 16:50:20 +01:00
Andrew McNulty
699a391c78
Updates to Meson build system:
...
1. Use cross-platform `/` operator for path construction.
2. Use `meson.project_source_root()` for correct path resolution of
generate_test_runner.rb path when used as a subproject.
3. Bump the minimum required Meson version to '0.56.0' as this is
needed for the above changes.
2023-02-13 16:47:54 +01:00
Mark VanderVoord
5204c1bacf
Merge pull request #550 from jannisbaudisch/fix_test_parameterization_regex
...
Improve regex for test parameterization to support function pointers
2023-02-06 15:31:49 -05:00
Mark VanderVoord
ae4ab78c47
Merge pull request #551 from pmembrey/add-meson-generator-for-test-runner
...
Enhance meson support so that it can automatically generate a test runner
2023-02-06 14:56:17 -05:00
Mark VanderVoord
5eca8d31ae
Merge pull request #654 from henrik-nil-acc/const_float_and_double_arrays
...
Avoid cast-qual warnings with const float and double arrays
2023-02-01 08:11:39 -05:00
Henrik Nilsson
3fe84580c8
Avoid cast-qual warnings with const float and double arrays
2023-02-01 08:02:50 +01:00
Mark VanderVoord
5a36b197fb
Merge pull request #644 from AJIOB/implement_array_within_check
...
Adding within API support for float & double arrays
2022-12-29 19:43:58 -05:00
Mark VanderVoord
d826f09bbf
Merge pull request #648 from Letme/patch-1
...
Change link to wikipedia Assert header file
2022-12-12 08:52:54 -05:00
Crt Mori
7298f3771c
Change link to wikipedia Assert header file
...
Closes #647
2022-12-12 14:49:53 +01:00
Mark VanderVoord
d0e3d73b7d
Merge pull request #640 from AJIOB/docs_param_tests
...
Create documentation for parameterized tests
2022-12-06 08:25:13 -05:00
Mark VanderVoord
87dd938d8a
Merge pull request #639 from AJIOB/auto_define_test_case_marco
...
Provide the way for automatically define TEST_CASE & TEST_RANGE macros (Thanks, Alex. Looks great!)
2022-12-06 08:24:19 -05:00
AJIOB
a35af14a27
Actualizing docs
2022-11-29 09:26:29 +03:00
AJIOB
a9959df958
Returning lost spaces
2022-11-28 20:27:56 +03:00
AJIOB
b2360fa7ca
Adding delta infinity & nan checks & tests
2022-11-28 20:23:36 +03:00
AJIOB
0963e20d0b
Force moving double delta logic to local function
2022-11-28 20:09:06 +03:00
AJIOB
7d2a927082
Adding lost float & double assert entries
...
when they were previously disabled
2022-11-28 18:45:58 +03:00
AJIOB
aed2e62142
Float-double types typo was fixed
2022-11-28 18:30:46 +03:00
AJIOB
9c45c7861b
Adding support for floating point arrays within.
...
Testing newly created API.
2022-11-28 18:28:31 +03:00
AJIOB
6567f07f47
Adding possibility for setting relative & absolute
...
floating difference
2022-11-28 18:08:37 +03:00
Mark VanderVoord
0b92f9b960
Merge pull request #643 from jpihl/master
...
Rely on `stddef.h` from `unity_internals.h`
2022-11-28 07:51:55 -05:00
Mark VanderVoord
ab51657f62
Merge pull request #642 from AJIOB/docs_assertion_fix
...
Fixing typo in assertion reference
2022-11-28 07:50:42 -05:00
Jeppe Pihl
50146afb46
Update unity.c
2022-11-28 13:15:55 +01:00
Alex Overchenko
e15b9f7a28
Fixing typo in assertion reference
2022-11-28 13:22:40 +03:00
Alex Overchenko
ad86e15ca5
Adding docs to TEST_RANGE formats.
...
Adding parameterizedDemo tests as an independent file
2022-11-27 16:09:22 +03:00
Alex Overchenko
48d7210644
Fixing CI tests passing
2022-11-27 14:46:34 +03:00
Alex Overchenko
e4085eb8e6
Using default macro for TEST_CASEs define.
...
Improving docs about manual definition.
2022-11-27 14:36:22 +03:00
Alex Overchenko
cef22753c4
Adding param tests documentation.
...
Describe TEST_CASE logic.
2022-11-27 14:20:03 +03:00
Alex Overchenko
4d5ed3d68b
Adding possibility for automatically defining
...
TEST_CASE & TEST_RANGE macros
2022-11-27 13:05:13 +03:00
Mark VanderVoord
67ca5c57c9
Merge pull request #556 from erijo/test-range-exclusive-end
...
Add support for TEST_RANGE with exclusive end
2022-11-12 20:46:33 -05:00
Mark VanderVoord
f94763d2bc
Merge pull request #587 from mbonesi/patch-1
...
fixed hyperlink text to obtain Ruby
2022-11-12 20:43:19 -05:00
Mark VanderVoord
303e6ec81a
Merge pull request #594 from LeoSebal/dev/python_JUnit_fix
...
Fixes and features on the JUnit Python conversion script
2022-11-12 20:42:55 -05:00
Mark VanderVoord
7e332fb9a9
Merge pull request #598 from AJIOB/parse_output_color_support
...
Parse output color & time support with custom test suite name
2022-11-12 20:42:07 -05:00
Mark VanderVoord
568d5f885a
Merge pull request #625 from ivankravets/master
...
Provide custom build configuration for the PlatformIO
2022-11-12 20:34:06 -05:00
Mark VanderVoord
0876c5d853
Merge pull request #629 from jonathangjertsen/printf-long
...
Support long and long long types in TEST_PRINTF
2022-11-12 20:33:13 -05:00
Mark VanderVoord
714bd1fdd3
Merge pull request #633 from RodrigoDornelles/patch-1
...
fix: add cmake outputs in .gitignore
2022-11-12 20:32:14 -05:00
Erik Flodin
563786f97c
Add support for TEST_RANGE with exclusive end
...
If the range is <start, end, step> instead of [start, end, step], the
end value will not be included in the range.
This can be useful if you have a define that defines e.g. the size of
something and you want to use this define as the end value. As the
pre-processor doesn't evalutate expressions (unless you do some macro
magic) you can't specify the range as [0, MY_SIZE - 1, 1]. With this
change you can then instead give the range <0, MY_SIZE, 1>.
2022-10-14 18:51:45 +02:00
Mark VanderVoord
22777c4810
Merge pull request #635 from Westlanderz/bugfix/Cross-compiling-set-native
...
Fix compiling native when main project is cross-compiling
2022-10-14 10:35:13 -04:00