Fw:How to use gtest/gmock in openbmc
常晓明
xiaoqian1641 at 163.com
Sat Sep 14 16:47:10 AEST 2019
Hi, William,
Thanks for your reply.
You need to have all of the requisite packages in your development environment, then you can run
```
meson setup build
meson test -C build
```
Could you tell me exactly which packages are needed ?
>The easiest way to do this is to use the docker environment from
>https://github.com/openbmc/openbmc-build-scripts, specifically the
>script `run-unit-test-docker.sh`
I ran "./run-unit-test-docker.sh" , it shows something errors, I think it maybe need some options.
Could you give me an example, like test the "sdbusplus"?
Johny
Thanks very much
At 2019-09-12 11:45:26, "William Kennington" <wak at google.com> wrote:
>You need to have all of the requisite packages in your development
>environment, then you can run
>```
>meson setup build
>meson test -C build
>```
>which reminds me, i need to update the documentation in the readme...
>
>The easiest way to do this is to use the docker environment from
>https://github.com/openbmc/openbmc-build-scripts, specifically the
>script `run-unit-test-docker.sh`
>
>On Wed, Sep 11, 2019 at 8:26 PM 常晓明 <xiaoqian1641 at 163.com> wrote:
>>
>> Hi, OpenBMC development member,
>>
>> I'm learning openbmc via github.
>> I wanted to test the code of OpenBMC through Gtest/Gmock, And I Found the OpenBMC source code already had the test package,but it cannot be compiled according to README.md.
>> I think it may be my compilation method is not correct, Do you have any documentation about this ?
>>
>> Could you tell me How to test "sdeventplus" ?
>>
>> Thanks very mouch.
>> Johny
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190914/55090628/attachment.htm>
More information about the openbmc
mailing list