| 1 |
This is a copy of libcheck, a unit testing framework for C: |
| 2 |
|
| 3 |
https://github.com/libcheck/check/ |
| 4 |
|
| 5 |
The last update was on 9th December, with the following commit: ba42e7de3d62ea9d3699bf0709554b3e47a8f09e |
| 6 |
|
| 7 |
The check*.c files in this directory are the same as those in the src/ |
| 8 |
directory in upstream. The files in the libcompat/ directory are the same as |
| 9 |
those in the lib/ directory upstream. |
| 10 |
|
| 11 |
lib/snprintf.c was omitted since we don't run on any platforms that don't |
| 12 |
provide snprintf and the upstream implementation is ~2000 lines. |
| 13 |
|
| 14 |
lib/malloc.c and lib/realloc.c were omitted since we were doing fine without |
| 15 |
them and it does a #define malloc rpl_malloc on Android because the malloc |
| 16 |
shipped with Bionic is not GNU-compliant. rpl_malloc is provided by libcheck, |
| 17 |
but not everything in gstreamer links against libcheck. We also don't care |
| 18 |
about this. |
| 19 |
|
| 20 |
Steps to sync with upstream: |
| 21 |
|
| 22 |
1. Clone libcheck from the above git repository |
| 23 |
2. Copy files into this directory |
| 24 |
3. Run gst-indent-1.0 on all the code |
| 25 |
4. Fix internal #includes |
| 26 |
5. Manually inspect the diff |
| 27 |
6. Update configure.ac, m4/check-checks.m4, meson.build files, etc |
| 28 |
6. Run make check, then commit and push |
| 29 |
|
| 30 |
Any changes made to files in this directory must be submitted upstream via |
| 31 |
a pull request: https://github.com/libcheck/check/compare |
| 32 |
|
| 33 |
This involves creating an account on GitHub, forking libcheck/check there, |
| 34 |
pushing the changes into a branch, and then submitting it as a pull request. |