[sheepdog] [sheepdog/sheepdog] 91272a: tests/unit: Add CMock and Unity as submodules
Hitoshi Mitake
mitake.hitoshi at gmail.com
Tue Apr 5 04:42:49 CEST 2016
Branch: refs/heads/master
Home: https://github.com/sheepdog/sheepdog
Commit: 91272a18e2a244eb2263dbf19b2a096f7000ab50
https://github.com/sheepdog/sheepdog/commit/91272a18e2a244eb2263dbf19b2a096f7000ab50
Author: Takashi Menjo <takashi.menjo+github at gmail.com>
Date: 2016-04-04 (Mon, 04 Apr 2016)
Changed paths:
M .gitmodules
A tests/unit/cmock
A tests/unit/unity
Log Message:
-----------
tests/unit: Add CMock and Unity as submodules
Current unit tests are based on Check unit testing framework,
simple and easy-to-use but lacking mocking feature. Although
an original mocking code was introduced by Kai, it's better
to introduce a new framework for powerful mocking.
I chose CMock and Unity and added them as submodules. Now we
can make unit tests based on either Check or CMock/Unity.
Signed-off-by: Takashi Menjo <takashi.menjo+github at gmail.com>
Commit: 1201d17c29364dce7f2a2287ad0fdd9e0c66ac6b
https://github.com/sheepdog/sheepdog/commit/1201d17c29364dce7f2a2287ad0fdd9e0c66ac6b
Author: Takashi Menjo <takashi.menjo+github at gmail.com>
Date: 2016-04-04 (Mon, 04 Apr 2016)
Changed paths:
A tests/unit/genmock.sh
A tests/unit/mocks/Mocklogger.c
A tests/unit/mocks/Mocklogger.h
Log Message:
-----------
tests/unit: Add a mock of lib/logger.h and a generation script
Note that CMock normally can generate a mock simply like as below:
ruby cmock/lib/cmock.rb path/to/foobar.h
However some codes such as '__printf' attribute inhibited CMock to
generate a proper mock code. So I made a generation script.
Signed-off-by: Takashi Menjo <takashi.menjo+github at gmail.com>
Commit: 98d9a830407bd2bb1aa28f8b861b0bc890d28df7
https://github.com/sheepdog/sheepdog/commit/98d9a830407bd2bb1aa28f8b861b0bc890d28df7
Author: Takashi Menjo <takashi.menjo+github at gmail.com>
Date: 2016-04-04 (Mon, 04 Apr 2016)
Changed paths:
M .gitignore
M configure.ac
M tests/unit/Makefile.am
A tests/unit/lib/Makefile.am
A tests/unit/lib/test_util.c
Log Message:
-----------
tests/unit: Add a unit test for lib/util.c with CMock and Unity
Signed-off-by: Takashi Menjo <takashi.menjo+github at gmail.com>
Commit: 9d0ca602337ecbde442908fffc4674e41099fb97
https://github.com/sheepdog/sheepdog/commit/9d0ca602337ecbde442908fffc4674e41099fb97
Author: Hitoshi Mitake <mitake.hitoshi at gmail.com>
Date: 2016-04-05 (Tue, 05 Apr 2016)
Changed paths:
M .gitignore
M .gitmodules
M configure.ac
M tests/unit/Makefile.am
A tests/unit/cmock
A tests/unit/genmock.sh
A tests/unit/lib/Makefile.am
A tests/unit/lib/test_util.c
A tests/unit/mocks/Mocklogger.c
A tests/unit/mocks/Mocklogger.h
A tests/unit/unity
Log Message:
-----------
Merge pull request #232 from tmenjo/unity-cmock
tests/unit: Introduce CMock/Unity unit testing framework
Compare: https://github.com/sheepdog/sheepdog/compare/5bed9df98f28...9d0ca602337e
More information about the sheepdog
mailing list