3 Commits
Author SHA1 Message Date
Anders Roxell 8afc0816f5 selftests: rust: config: disable GCC_PLUGINS
CONFIG_RUST depends on !CONFIG_GCC_PLUGINS. Disable CONFIG_GCC_PLUGINS
in rust/config file to make sure it doesn't get enabled.

Signed-off-by: Anders Roxell <[email protected]>
Acked-by: Miguel Ojeda <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
2024-08-11 17:32:55 -06:00
Anders Roxell fe8340a750 selftests: rust: config: add trailing newline
If adding multiple config files to the merge_config.sh script and
rust/config is the fist one, then the last config fragment in this file
and the first config fragment in the second file won't be set, since
there isn't a newline in this file, so those two fragements end up at
the same row like:
CONFIG_SAMPLE_RUST_PRINT=mCONFIG_FRAGMENT=y

And non of those will be enabled when running 'olddefconfig' after.

Fixing the issue by adding a newline to the file.

Signed-off-by: Anders Roxell <[email protected]>
Acked-by: Miguel Ojeda <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
2024-08-11 17:32:49 -06:00
Laura Nao 5d94da7ff0 kselftest: Add basic test for probing the rust sample modules
Add new basic kselftest that checks if the available rust sample modules
can be added and removed correctly.

Signed-off-by: Laura Nao <[email protected]>
Reviewed-by: Sergio Gonzalez Collado <[email protected]>
Reviewed-by: Muhammad Usama Anjum <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
2024-03-04 13:13:04 -07:00