[LTP] [PATCH v1 2/3] shell: add kconfig parse api

xuyang2018.jy@fujitsu.com xuyang2018.jy@fujitsu.com
Thu Jan 6 09:16:32 CET 2022


Hi Petr

>>>>> +
>>>>> +Now, we support the length of kconfig list is 10.
>>>> Why 10? Cyril suggested that in PR, where he suggested to use separated
>>>> variables:
>>>> https://github.com/linux-test-project/ltp/issues/891#issuecomment-989712350
>>
>>>> But for string used like array there is no performance limitation, thus I'd use
>>>> something like 50 or 100. Because for certain IMA tests there are at least 6
>>>> kconfig requirements, thus>    10 could be hit.
>>> If case needs more than 10 kconfigs, we can use&   ie
>>> "CONFIG_EX4_FS&   CONFIG_XFS_FS&   CONFIG_QUOTAL_FS, CONFIG_PROC_FS..."
>> Sure. I just meant there is no reason to put low number and then workaround it.
 From my understanding, we split kconfig list for kconfig1,2... variables.

Then I need to call tst_check_kconfigs with pass fixed number paremeters 
one ie 10). code ie
tst_check_kconfigs $kconfig1 $kconfig2 $kconfig3 $kconfig4 $kconfig5 
$kconfig6\
$kconfig7 $kconfig8 $kconfig9 $kconfig10

So do you have simple code to replace them or you just want to increase 
the number to 20?

ps: In fact, I am not good at writting shell script. So if wrong or have 
better way, please tell me.

Best Regards
Yang Xu

>


More information about the ltp mailing list