[LTP] [PATCH v3 4/4] sysctl/sysctl02.sh: Use kconfig shell api

xuyang2018.jy@fujitsu.com xuyang2018.jy@fujitsu.com
Tue Jan 11 06:34:37 CET 2022


Hi Cyril
> Hi!
>> +	tst_check_kconfigs "CONFIG_KALLSYMS=y" "CONFIG_KALLSYMS_ALL=y" "CONFIG_KASAN=y" \
>                                 ^
> 			       This should be a single string now,
> 			       right?
Yes.
>
> 			       Also we should pass the delimiter unless
> 			       we change the tst_check_kconfigs default
> 			       to ',' if no delimiter was passed (which
> 			       sounds reasonable).
Yes, I have modified tst_check_kconfigs and tst_require_kconfigs api, so 
if no delimiters was passed, tst_require_kconfigs will use 
$TST_NEEDS_KCONFIGS_IFS, tst_check_kconfigs will use comma.

Best Regards
Yang Xu
>
>> +		|| tst_brk TCONF "kconfig doesn't meet test's requirement!"
>> +
>>   	ROD sysctl -w -q $sys_name=0
>>
>> -	if grep -q kasan_report $syms_file; then
>> -		if dmesg | grep -q "KASAN: global-out-of-bounds in __do_proc_doulongvec_minmax"; then
>> -			tst_res TFAIL "$sys_file is set 0 and trigger a KASAN error"
>> -		else
>> -			tst_res TPASS "$sys_file is set 0 and doesn't trigger a KASAN error"
>> -		fi
>> +	if dmesg | grep -q "KASAN: global-out-of-bounds in __do_proc_doulongvec_minmax"; then
>> +		tst_res TFAIL "$sys_file is set 0 and trigger a KASAN error"
>>   	else
>> -		tst_res TCONF "kernel doesn't support KASAN"
>> +		tst_res TPASS "$sys_file is set 0 and doesn't trigger a KASAN error"
>>   	fi
>>   }
>>
>> --
>> 2.23.0
>>
>>
>> --
>> Mailing list info: https://lists.linux.it/listinfo/ltp
>


More information about the ltp mailing list