Closed NDManh closed 8 years ago
Maybe you can try the same as here #255 .
Thanks @dtusar for your suggestion, I've tried to pursue the instruction on http://zhuyong.me/blog/2014/03/19/c-code-unit-testing-using-cmocka/
for both versions cmocka-1.0.0
and cmocka-1.0.1
but not success with the command make
during the instruction. Then I've tried with the following instruction : http://macappstore.org/cmocka/
(it"s quite simple for me :-))and successfully built cmocka-1.0.1
on my machine. The command python do.py test-c
works well now.
Before installing cmocka-1.0.1
, I try to rename of the file libcmocka.dylib
(inside the folder .../code-experiments/test/unit-test) to libcmocka.0.dylib
. In this case, the command python do.py test-c
also works.
When I try to run the command :
python do.py test-c
on Mac, I encounter the following error :I think that
libcmocka.0.dylib
should belibcmocka.dylib
but I do not know how to fix it.