Project

General

Profile

action #101073

Updated by livdywan over 2 years ago

## Motivation 

 It would be good to have a basic smoke test of rust/cargo functionality to ensure that it works correctly. 

 ## Acceptance criteria 
 * **AC1:** The test module is executed as usual openSUSE Tumbleweed test 

 ## Suggestions 

 - Add test to os-autoinst-distri-opensuse by creating a new test module, e.g. in tests/console/rust.pm 
 - The module This could be done with something like: 

 ``` 
 zypper in cargo 
 cargo new testproject 
 cd testproject 
 echo 'uuid = "0.8"' >> Cargo.toml 
 cargo run 
 ``` 

 This checks: 
 * If rust/cargo can install properly for compilation. 
 * That new projects can be created 
 * That online packages can be downloaded  
 * That the compiler works 

 - Add the test module to https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/main_common.pm#L1597 as well as a schedule file, e.g. in schedule 
 https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/schedule/functional/extra_tests_textmode.yaml 
 - Create pull request and conduct verification runs 
 - Ensure the test works as expected in https://openqa.opensuse.org/tests/overview?distri=opensuse&groupid=1&version=Tumbleweed

Back