[LTP] [PATCH v1] mem/swapping01: Make sure swap is supported by kernel
Cyril Hrubis
chrubis@suse.cz
Fri Feb 11 14:15:56 CET 2022
Hi!
> 1) keep check access("/proc/swaps", F_OK)
> 2) use .needs_config for "CONFIG_SWAP=y"
> 3) Add .needs_swap flag to struct tst_test
>
> To be honest, I'm not sure, what's the best, probably .needs_config.
> I worried little bit about .needs_config forcing config to be available in the
> past, but that should be solved KCONFIG_SKIP_CHECK added by Xu.
I guess that the easiest solution would be .needs_kconfig, we ended up
depending on it in quite a few testcases anyway so I would say that
nobody is runing LTP without having kernel config exproted anyways.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list