All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] test: add dependency for UT_LOG
@ 2020-06-07  3:52 Kever Yang
  2020-06-07  5:55 ` Heinrich Schuchardt
  0 siblings, 1 reply; 4+ messages in thread
From: Kever Yang @ 2020-06-07  3:52 UTC (permalink / raw)
  To: u-boot

The callback of do_ut_log() is defined in test/log/test-main.c
which is depend on CONFIG_LOG.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---

 test/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/Kconfig b/test/Kconfig
index 9b2f84b551..8c32fa5cbd 100644
--- a/test/Kconfig
+++ b/test/Kconfig
@@ -42,6 +42,7 @@ endif
 
 config UT_LOG
 	bool "Unit tests for logging functions"
+	depends on LOG
 	depends on UNIT_TEST
 	default y
 	help
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] test: add dependency for UT_LOG
  2020-06-07  3:52 [PATCH] test: add dependency for UT_LOG Kever Yang
@ 2020-06-07  5:55 ` Heinrich Schuchardt
  2020-06-07 11:29   ` Kever Yang
  0 siblings, 1 reply; 4+ messages in thread
From: Heinrich Schuchardt @ 2020-06-07  5:55 UTC (permalink / raw)
  To: u-boot

Am June 7, 2020 3:52:37 AM UTC schrieb Kever Yang <kever.yang@rock-chips.com>:
>The callback of do_ut_log() is defined in test/log/test-main.c
>which is depend on CONFIG_LOG.

Where do you see such a dependency?

With which configuration did you have a build problem?

>
>Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
>---
>
> test/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/test/Kconfig b/test/Kconfig
>index 9b2f84b551..8c32fa5cbd 100644
>--- a/test/Kconfig
>+++ b/test/Kconfig
>@@ -42,6 +42,7 @@ endif
> 
> config UT_LOG
> 	bool "Unit tests for logging functions"
>+	depends on LOG

This seems incorrect. We want to run the nolog test if CONFIG_LOG=n.

See https://github.com/trini/u-boot/blob/master/test/log/Makefile#L15

Best regards

Heinrich


> 	depends on UNIT_TEST
> 	default y
> 	help

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] test: add dependency for UT_LOG
  2020-06-07  5:55 ` Heinrich Schuchardt
@ 2020-06-07 11:29   ` Kever Yang
  2020-06-07 11:40     ` Heinrich Schuchardt
  0 siblings, 1 reply; 4+ messages in thread
From: Kever Yang @ 2020-06-07 11:29 UTC (permalink / raw)
  To: u-boot


On 2020/6/7 ??1:55, Heinrich Schuchardt wrote:
> Am June 7, 2020 3:52:37 AM UTC schrieb Kever Yang <kever.yang@rock-chips.com>:
>> The callback of do_ut_log() is defined in test/log/test-main.c
>> which is depend on CONFIG_LOG.
> Where do you see such a dependency?
>
> With which configuration did you have a build problem?

I met the issue when test with buildman.

If CONFIG_LOG is not set, the code under test/log will not be build 
according to

test/Makefile is :

obj-$(CONFIG_$(SPL_)LOG) += log/

check again with the code and seems I did not use the latest Makefile.


Please ignore this patch.


Thanks,

- Kever

>
>> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
>> ---
>>
>> test/Kconfig | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/test/Kconfig b/test/Kconfig
>> index 9b2f84b551..8c32fa5cbd 100644
>> --- a/test/Kconfig
>> +++ b/test/Kconfig
>> @@ -42,6 +42,7 @@ endif
>>
>> config UT_LOG
>> 	bool "Unit tests for logging functions"
>> +	depends on LOG
> This seems incorrect. We want to run the nolog test if CONFIG_LOG=n.
>
> See https://github.com/trini/u-boot/blob/master/test/log/Makefile#L15
>
> Best regards
>
> Heinrich
>
>
>> 	depends on UNIT_TEST
>> 	default y
>> 	help
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] test: add dependency for UT_LOG
  2020-06-07 11:29   ` Kever Yang
@ 2020-06-07 11:40     ` Heinrich Schuchardt
  0 siblings, 0 replies; 4+ messages in thread
From: Heinrich Schuchardt @ 2020-06-07 11:40 UTC (permalink / raw)
  To: u-boot

Am June 7, 2020 11:29:38 AM UTC schrieb Kever Yang <kever.yang@rock-chips.com>:
>
>On 2020/6/7 ??1:55, Heinrich Schuchardt wrote:
>> Am June 7, 2020 3:52:37 AM UTC schrieb Kever Yang
><kever.yang@rock-chips.com>:
>>> The callback of do_ut_log() is defined in test/log/test-main.c
>>> which is depend on CONFIG_LOG.
>> Where do you see such a dependency?
>>
>> With which configuration did you have a build problem?
>
>I met the issue when test with buildman.
>
>If CONFIG_LOG is not set, the code under test/log will not be build 
>according to
>
>test/Makefile is :
>
>obj-$(CONFIG_$(SPL_)LOG) += log/

The current Makefile has:

obj-y += log/

As said if CONFIG_LOG=n, we want to build test/log/nolog_test.o.

>
>check again with the code and seems I did not use the latest Makefile.
>
>
>Please ignore this patch.

Nothing to worry about. Just come back if you have a reproducible problem case.

Best regards

Heinrich

>
>
>Thanks,
>
>- Kever
>
>>
>>> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
>>> ---
>>>
>>> test/Kconfig | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/test/Kconfig b/test/Kconfig
>>> index 9b2f84b551..8c32fa5cbd 100644
>>> --- a/test/Kconfig
>>> +++ b/test/Kconfig
>>> @@ -42,6 +42,7 @@ endif
>>>
>>> config UT_LOG
>>> 	bool "Unit tests for logging functions"
>>> +	depends on LOG
>> This seems incorrect. We want to run the nolog test if CONFIG_LOG=n.
>>
>> See https://github.com/trini/u-boot/blob/master/test/log/Makefile#L15
>>
>> Best regards
>>
>> Heinrich
>>
>>
>>> 	depends on UNIT_TEST
>>> 	default y
>>> 	help
>>
>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-07 11:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-07  3:52 [PATCH] test: add dependency for UT_LOG Kever Yang
2020-06-07  5:55 ` Heinrich Schuchardt
2020-06-07 11:29   ` Kever Yang
2020-06-07 11:40     ` Heinrich Schuchardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.