How to run tests in bmcweb
Lei YU
mine260309 at gmail.com
Tue Nov 5 16:39:42 AEDT 2019
On Sat, Nov 2, 2019 at 12:21 AM James Feist <james.feist at linux.intel.com> wrote:
>
> On 11/1/19 1:59 AM, Lei YU wrote:
> > I am trying to add a unit test case in bmcweb and run it.
> > With local CI, the tests are not run:
> >
> > WORKSPACE=$(pwd) UNIT_TEST_PKG=bmcweb
> > ./openbmc-build-scripts/run-unit-test-docker.sh
> > ...
> > [100%] Built target bmcweb
> > /home/leiyu/work/bmcweb > ctest .
> > Test project /home/leiyu/work/bmcweb
> > No tests were found!!!
> > ...
> >
> > So the question is, how do I run tests in bmcweb? Should
> > openbmc-build-scripts be updated to support that?
>
> I believe the tests in bmcweb have degraded and stopped working, so they
> were disabled. I haven't run them myself, so I'm not sure how bad they
> degraded. If you want to try to run them locally you need to pass
> -DBMCWEB_BUILD_UT=1 when you run the cmake command.
>
> https://github.com/openbmc/bmcweb/blob/c78d791eb1fa9d12e987e7b1ad885ada92d0757a/CMakeLists.txt#L292
I tried to enable BMCWEB_BUILD_UT and build it in local-ci, and it
really is broken badly.
Output posted at Pastebin: https://pastebin.com/1pMWSM3N
May I ask the maintainers to fix the tests in bmcweb? So that it makes
the community easier to contribute code into bmcweb.
Thanks!
More information about the openbmc
mailing list