[PATCH v2] skip the test when gcc not deployed
Fri May 24 07:12:00 GMT 2019
On 2019å¹´05æ24æ¥ 15:03, Mark Wielaard wrote:
> On Fri, May 24, 2019 at 02:47:25PM +0800, Yu, Mingli wrote:
>>> On Tue, May 21, 2019 at 03:33:06PM +0800, email@example.com wrote:
>>>> Skip the tests which depend on gcc when
>>>> gcc not deployed.
>>> What exactly are you trying to do?
>>> When would you run make check without having gcc installed?
>> Thanks Mark!
>> I just run the check without having gcc installed, and of cource no compiler
>> installed in my test env.
> I don't think that is a realistic test environment for testing the
> elfutils libraries. You have to have the tools to create various ELF
> files and DWARF data to properly test things work correctly.
Yes, we use elfutils in cross compile env, one works as build host which
we build all the packages and of course gcc installed on the build host
and another as target which only deployed the necessary packages which
we have build on the build host.
And this is the case we just run the test on the target.
I think it make sense to check the gcc and make it skip if the cases
depends on gcc.
More information about the Elfutils-devel