112e33526SPatrick Williams## Features of OpenBMC Test Automation 224c9f88dSGeorge Keishing 324c9f88dSGeorge Keishing**Interface Feature List** 412e33526SPatrick Williams 512e33526SPatrick Williams- DMTF Redfish 612e33526SPatrick Williams- Out-of-band IPMI 712e33526SPatrick Williams- SSH to BMC and Host OS 8df972ffeSGeorge Keishing- [Legacy REST](https://github.com/openbmc/openbmc-test-automation/releases/tag/v4.0-stable) 924c9f88dSGeorge Keishing 1024c9f88dSGeorge Keishing**Key Feature List** 1112e33526SPatrick Williams 1212e33526SPatrick Williams- Power on/off 1312e33526SPatrick Williams- Reboot Host 1412e33526SPatrick Williams- Reset BMC 1512e33526SPatrick Williams- Code update BMC and host 1612e33526SPatrick Williams- Power management 1712e33526SPatrick Williams- Fan controller 1812e33526SPatrick Williams- HTX bootme 1912e33526SPatrick Williams- XCAT execution 2012e33526SPatrick Williams- Network 2112e33526SPatrick Williams- IPMI support (generic and DCMI compliant) 2212e33526SPatrick Williams- Factory reset 2312e33526SPatrick Williams- RAS (Reliability, availability and serviceability) 2412e33526SPatrick Williams- Web UI testing 2512e33526SPatrick Williams- Secure boot 2612e33526SPatrick Williams- SNMP (Simple Network Management Protocol) 2712e33526SPatrick Williams- Remote Logging via Rsyslog 2812e33526SPatrick Williams- LDAP (Lightweight Directory Access Protocol) 2912e33526SPatrick Williams- Certificate 3012e33526SPatrick Williams- Local User Management(Redfish/IPMI) 3112e33526SPatrick Williams- DateTime 3212e33526SPatrick Williams- Event Logging 3312e33526SPatrick Williams- PLDM (Platform Level Data Model) via pldmtool 3424c9f88dSGeorge Keishing 3524c9f88dSGeorge Keishing**Debugging Supported List** 3624c9f88dSGeorge Keishing 3712e33526SPatrick Williams- SOL collection 3812e33526SPatrick Williams- FFDC collection 3912e33526SPatrick Williams- Error injection from host 40b29d2e84SChris Austen 4112e33526SPatrick Williams## Installation Setup Guide 4212e33526SPatrick Williams 4312e33526SPatrick Williams- [Robot Framework Install Instruction](https://github.com/robotframework/robotframework/blob/master/INSTALL.rst) 4412e33526SPatrick Williams 4512e33526SPatrick Williams- Miscellaneous Packages required to be installed for OpenBmc Automation. 46a5c6e9d6SGeorge Keishing Install the packages and it's dependencies via `pip` 47a5c6e9d6SGeorge Keishing 4812e33526SPatrick WilliamsIf using Python 3.x, use the corresponding `pip3` to install packages. Note: 4912e33526SPatrick WilliamsOlder Python 2.x is not actively supported. 5012bbe002SGeorge Keishing 5112bbe002SGeorge KeishingInstalling requirement dependencies: 5212e33526SPatrick Williams 5312bbe002SGeorge Keishing``` 5412bbe002SGeorge Keishing $ pip install -r requirements.txt 5512bbe002SGeorge Keishing``` 5612e33526SPatrick Williams 57c3a7582eSGeorge KeishingOptional packages but required for `redfish/dmtf_tools/` 58c3a7582eSGeorge Keishing 59c3a7582eSGeorge Keishing``` 60c3a7582eSGeorge Keishing $ pip install -r requirements_optional.txt 61c3a7582eSGeorge Keishing``` 62c3a7582eSGeorge Keishing 6312bbe002SGeorge Keishingyou'll find this file once your clone openbmc-test-automation repository. 6412bbe002SGeorge Keishing 65*e24d3132SSridevi RameshFor Web UI ( GUI ) Testing setup, please the follow instructions mentioned in 66*e24d3132SSridevi Rameshthe OpenBMC GUI Test Setup Guide. Note: GUI test cases under `gui/` will not 67*e24d3132SSridevi Rameshwork without the above setup completed in your environment. 688b1024d5SGeorge Keishing[OpenBMC GUI Test Setup Guide](https://github.com/openbmc/openbmc-test-automation/blob/master/docs/gui_setup_reference.md) 698b1024d5SGeorge Keishing 70aba958dcSGeorge KeishingInstalling tox: 7112e33526SPatrick Williams 72aba958dcSGeorge Keishing``` 73aba958dcSGeorge Keishing $ pip install -U tox 74aba958dcSGeorge Keishing``` 75aba958dcSGeorge Keishing 76361200b4SMatt FischerInstalling expect (Ubuntu example): 7712e33526SPatrick Williams 7877ac2bd9SPeter D Phan``` 79361200b4SMatt Fischer $ sudo apt-get install expect 8077ac2bd9SPeter D Phan``` 8177ac2bd9SPeter D Phan 8212e33526SPatrick Williams## OpenBMC Test Development 832de157e4SGeorge Keishing 842de157e4SGeorge KeishingThese documents contain details on developing OpenBMC test code and debugging. 852de157e4SGeorge Keishing 86448e0669SGeorge Keishing- [MAINTAINERS](OWNERS): OpenBMC test code maintainers information. 872de157e4SGeorge Keishing- [CONTRIBUTING.md](CONTRIBUTING.md): Coding guidelines. 8812e33526SPatrick Williams- [Code Check Tools](https://github.com/openbmc/openbmc-test-automation/blob/master/docs/code_standards_check.md): 8912e33526SPatrick Williams To check common code misspellings, syntax and standard checks. 90dd4e4233SSridevi Ramesh- [Redfish Coding Guidelines](https://github.com/openbmc/openbmc-test-automation/blob/master/docs/redfish_coding_guidelines.md): 91dd4e4233SSridevi Ramesh Refer for Redfish coding guidelines. 9212e33526SPatrick Williams- [REST-cheatsheet.md](https://github.com/openbmc/docs/blob/master/REST-cheatsheet.md): 9312e33526SPatrick Williams Quick reference for some common curl commands required for legacy REST 9412e33526SPatrick Williams testing. 9512e33526SPatrick Williams- [REDFISH-cheatsheet.md](https://github.com/openbmc/docs/blob/master/REDFISH-cheatsheet.md): 9612e33526SPatrick Williams Quick reference for some common curl commands required for redfish testing. 97b82c848fSGunnar Mills- [README.md](https://github.com/openbmc/webui-vue/blob/master/README.md): Web 98b82c848fSGunnar Mills UI setup reference. 99dd4e4233SSridevi Ramesh- [Redfish Request Via mTLS](https://github.com/openbmc/openbmc-test-automation/blob/master/docs/redfish_request_via_mTLS.md): 100dd4e4233SSridevi Ramesh Reference for Redfish Request Via mTLS . 10112e33526SPatrick Williams- [Corporate CLA and Individual CLA](https://github.com/openbmc/docs/blob/master/CONTRIBUTING.md#submitting-changes-via-gerrit-server): 10212e33526SPatrick Williams Submitting changes via Gerrit server 1032de157e4SGeorge Keishing 10412e33526SPatrick Williams## OpenBMC Test Documentation 1058c7eec37SGeorge Keishing 106dd4e4233SSridevi Ramesh- [OpenBMC Test Architecture](https://github.com/openbmc/openbmc-test-automation/blob/master/docs/openbmc_test_architecture.md): 107dd4e4233SSridevi Ramesh Reference for OpenBMC Test Architecture. 10812e33526SPatrick Williams- [Tools](https://github.com/openbmc/openbmc-test-automation/blob/master/docs/openbmc_test_tools.md): 10912e33526SPatrick Williams Reference information for helper tools. 11012e33526SPatrick Williams- [Code Update](https://github.com/openbmc/openbmc-test-automation/blob/master/docs/code_update.md): 11112e33526SPatrick Williams Currently supported BMC and PNOR update. 11212e33526SPatrick Williams- [Certificate Generate](https://github.com/openbmc/openbmc-test-automation/blob/master/docs/certificate_generate.md): 11312e33526SPatrick Williams Steps to create and install CA signed certificate. 114dd4e4233SSridevi Ramesh- [Boot Test](https://github.com/openbmc/openbmc-test-automation/blob/master/docs/boot_test.md): 115dd4e4233SSridevi Ramesh Boot test for OpenBMC. 1168c7eec37SGeorge Keishing 11712e33526SPatrick Williams## Supported Systems Architecture 11887a3ff53SGeorge Keishing 11987a3ff53SGeorge KeishingOpenBMC test infrastructure is proven capable of running on: 12087a3ff53SGeorge Keishing 12112e33526SPatrick Williams- POWER 12212e33526SPatrick Williams- x86 systems running OpenBMC firmware stack. 12312e33526SPatrick Williams 12412e33526SPatrick Williams## Testing Setup Steps 1253df030faSGeorge Keishing 1263df030faSGeorge KeishingTo verify the installation setup is completed and ready to execute. 1273df030faSGeorge Keishing 12812e33526SPatrick Williams- Download the openbmc-test-automation repository: 129361200b4SMatt Fischer 1303df030faSGeorge Keishing ``` 1313df030faSGeorge Keishing $ git clone https://github.com/openbmc/openbmc-test-automation 1323df030faSGeorge Keishing $ cd openbmc-test-automation 1333df030faSGeorge Keishing ``` 134361200b4SMatt Fischer 13512e33526SPatrick Williams- Execute basic setup test run: 136361200b4SMatt Fischer 1373df030faSGeorge Keishing ``` 1383df030faSGeorge Keishing $ robot -v OPENBMC_HOST:xx.xx.xx.xx templates/test_openbmc_setup.robot 1393df030faSGeorge Keishing ``` 140361200b4SMatt Fischer 1413df030faSGeorge Keishing where xx.xx.xx.xx is the BMC hostname or IP. 142a5c6e9d6SGeorge Keishing 14312e33526SPatrick Williams## Test Layout 1445977d2aeSGeorge Keishing 1455977d2aeSGeorge KeishingThere are several sub-directories within the openbmc-test-automation base which 14612e33526SPatrick Williamscontain test suites, tools, templates, etc. These sub-directories are classified 14712e33526SPatrick Williamsas follows: 1485977d2aeSGeorge Keishing 149dd4e4233SSridevi Ramesh`docs/`: Contains the documentation related to OpenBMC. 150dd4e4233SSridevi Ramesh 151df972ffeSGeorge Keishing`redfish/`: Contains the general test cases for OpenBMC stack functional 152df972ffeSGeorge Keishingverification. 1535977d2aeSGeorge Keishing 154b7ec2790SGeorge Keishing`systest/`: Contains test cases for HTX bootme testing. 1555977d2aeSGeorge Keishing 1565977d2aeSGeorge Keishing`xcat/`: Contains test cases for XCAT automation. 1575977d2aeSGeorge Keishing 15812e33526SPatrick Williams`gui/test/`: Contains test cases for testing web-based interface built on 15912e33526SPatrick WilliamsAngularJS. 160038e0049SRahul Maheshwari 16112e33526SPatrick Williams`gui/gui_test/`: Contains test cases for testing web-based user interface built 16212e33526SPatrick Williamson Vue.js. 16329814f0eSGeorge Keishing 16412e33526SPatrick Williams`pldm/`: Contains test cases for platform management subsystem (base, bios, fru, 16512e33526SPatrick Williamsplatform, OEM). 166cb858f7aSGeorge Keishing 1670465b9cdSGeorge Keishing`snmp/`: Contains test cases for SNMP (Simple Network Management Protocol) 1680465b9cdSGeorge Keishingconfiguration testing. 1690465b9cdSGeorge Keishing 170df972ffeSGeorge Keishing`openpower/`: Contains test cases for an OpenPOWER based system. 17138f566bbSGeorge Keishing 1725977d2aeSGeorge Keishing`tools/`: Contains various tools. 1735977d2aeSGeorge Keishing 1745977d2aeSGeorge Keishing`templates/`: Contains sample code examples and setup testing. 175acb3c1efSGeorge Keishing 17612e33526SPatrick Williams`test_list/`: Contains the argument files used for skipping test cases (e.g 17712e33526SPatrick Williams"skip_test", "skip_test_extended", etc.) or grouping them (e.g "HW_CI", 17812e33526SPatrick Williams"CT_basic_run", etc.). 179aba958dcSGeorge Keishing 18012e33526SPatrick Williams## Redfish Test Layout 181acb3c1efSGeorge Keishing 18212e33526SPatrick WilliamsOpenBMC is moving steadily towards DTMF Redfish, which is an open industry 18312e33526SPatrick Williamsstandard specification and schema that meets the expectations of end users for 18412e33526SPatrick Williamssimple, modern and secure management of scalable platform hardware. 185acb3c1efSGeorge Keishing 18612e33526SPatrick Williams`redfish/`: Contains test cases for DMTF Redfish-related feature supported on 18712e33526SPatrick WilliamsOpenBMC. 188acb3c1efSGeorge Keishing 189df972ffeSGeorge Keishing`redfish/extended/`: Contains test cases for combined DMTF Redfish-related 190df972ffeSGeorge Keishingfeature supported on OpenBMC. Some of the test will be deprecated. 1913292d4acSGeorge Keishing 19212e33526SPatrick WilliamsNote: Work in progress test development parameter 19312e33526SPatrick Williams`-v REDFISH_SUPPORT_TRANS_STATE:1` to force the test suites to execute in 19412e33526SPatrick Williamsredfish mode only. 195f32ee4cbSGeorge Keishing 19612e33526SPatrick Williams## Quickstart 197acb3c1efSGeorge Keishing 1985977d2aeSGeorge KeishingTo run openbmc-automation first you need to install the prerequisite Python 19912e33526SPatrick Williamspackages which will help to invoke tests through tox (Note that tox version 20012e33526SPatrick Williams2.3.1 or greater is required) or via Robot CLI command. 2015977d2aeSGeorge Keishing 2025977d2aeSGeorge Keishing**Robot Command Line** 2035977d2aeSGeorge Keishing 20412e33526SPatrick Williams- Execute all test suites for `tests/`: 20512e33526SPatrick Williams 2065977d2aeSGeorge Keishing ``` 2075977d2aeSGeorge Keishing $ robot -v OPENBMC_HOST:xx.xx.xx.xx tests 2085977d2aeSGeorge Keishing ``` 209aba958dcSGeorge Keishing 21012e33526SPatrick Williams- Execute a test suite: 21112e33526SPatrick Williams 2125977d2aeSGeorge Keishing ``` 213088da102SGeorge Keishing $ robot -v OPENBMC_HOST:xx.xx.xx.xx redfish/extended/test_basic_ci.robot 2145977d2aeSGeorge Keishing ``` 215b29d2e84SChris Austen 21612e33526SPatrick Williams- Initialize the following test variables which will be used during test 21712e33526SPatrick Williams execution: 21849a80604SGeorge Keishing 21949a80604SGeorge Keishing User can forward declare as environment variables: 22012e33526SPatrick Williams 221a7c46e39SGeorge Keishing ``` 22249a80604SGeorge Keishing $ export OPENBMC_HOST=<openbmc machine IP address/hostname> 2237a212a09SRahul Maheshwari $ export OPENBMC_USERNAME=<openbmc username> 22449a80604SGeorge Keishing $ export OPENBMC_PASSWORD=<openbmc password> 2257a212a09SRahul Maheshwari $ export IPMI_COMMAND=<Dbus/External> 226dd4e4233SSridevi Ramesh $ export REST_USERNAME=<REST interface username> 227dd4e4233SSridevi Ramesh $ export REST_PASSWORD=<REST interface password> 22849a80604SGeorge Keishing ``` 22949a80604SGeorge Keishing 23049a80604SGeorge Keishing or 23149a80604SGeorge Keishing 23249a80604SGeorge Keishing User can input as robot variables as part of the CLI command: 23312e33526SPatrick Williams 23449a80604SGeorge Keishing ``` 23549a80604SGeorge Keishing -v OPENBMC_HOST:<openbmc machine IP address/hostname> 23649a80604SGeorge Keishing -v OPENBMC_USERNAME:<openbmc username> 23749a80604SGeorge Keishing -v OPENBMC_PASSWORD:<openbmc password> 238359f8039SGeorge Keishing ``` 239b29d2e84SChris Austen 240361200b4SMatt Fischer- Testing in qemu: 241361200b4SMatt Fischer 242361200b4SMatt Fischer Set extra environment variables: 24312e33526SPatrick Williams 244a7c46e39SGeorge Keishing ``` 2454d6c1dabSGeorge Keishing $ export SSH_PORT=<ssh port number> 2464d6c1dabSGeorge Keishing $ export HTTPS_PORT=<https port number> 247a7c46e39SGeorge Keishing ``` 248b29d2e84SChris Austen 249361200b4SMatt Fischer Run the QEMU CI test suite (not all tests will pass in qemu): 250361200b4SMatt Fischer 251361200b4SMatt Fischer ``` 252361200b4SMatt Fischer $ OPENBMC_HOST=x.x.x.x SSH_PORT=<port number> HTTPS_PORT=<port number> robot -A test_lists/QEMU_CI tests/ 253361200b4SMatt Fischer ``` 254361200b4SMatt Fischer 25512e33526SPatrick Williams- Run tests: 25612e33526SPatrick Williams 257a7c46e39SGeorge Keishing ``` 2585e021124SAlvin Wang $ tox tests 259b29d2e84SChris Austen ``` 260b29d2e84SChris Austen 261361200b4SMatt Fischer- How to run an individual test: 26212e33526SPatrick Williams 263a7c46e39SGeorge Keishing ``` 264a7c46e39SGeorge Keishing $ tox -e default -- --include Power_On_Test tests/test_basic_poweron.robot 265a7c46e39SGeorge Keishing ``` 26612e33526SPatrick Williams 267361200b4SMatt Fischer- No preset environment variables, default configuration for all supported 268a7c46e39SGeorge Keishing systems: 26912e33526SPatrick Williams 270a7c46e39SGeorge Keishing ``` 271a7c46e39SGeorge Keishing $ OPENBMC_HOST=x.x.x.x tox -e default -- tests 272a7c46e39SGeorge Keishing ``` 273a7c46e39SGeorge Keishing 274361200b4SMatt Fischer- No preset environment variables, one test case from a test suite: 27512e33526SPatrick Williams 27612e33526SPatrick Williams ``` 27712e33526SPatrick Williams $ OPENBMC_HOST=x.x.x.x tox -e default -- --include Power_On_Test tests/test_basic_poweron.robot 27812e33526SPatrick Williams ``` 27912e33526SPatrick Williams 280361200b4SMatt Fischer- No preset environment variables, the entire test suite: 28112e33526SPatrick Williams 28212e33526SPatrick Williams ``` 28312e33526SPatrick Williams $ OPENBMC_HOST=x.x.x.x tox -e default -- tests 28412e33526SPatrick Williams ``` 28512e33526SPatrick Williams 286361200b4SMatt Fischer- No preset environment variables, the entire test suite excluding test cases 28712e33526SPatrick Williams using argument file: 28812e33526SPatrick Williams 289a7c46e39SGeorge Keishing ``` 290a7c46e39SGeorge Keishing $ OPENBMC_HOST=x.x.x.x tox -e default -- --argumentfile test_lists/skip_test tests 291a7c46e39SGeorge Keishing ``` 292ddf0cc2aSGeorge Keishing 293361200b4SMatt Fischer- Exclude test list for supported systems: 29412e33526SPatrick Williams 295a7c46e39SGeorge Keishing ``` 296ddf0cc2aSGeorge Keishing Palmetto: test_lists/skip_test_palmetto 297ddf0cc2aSGeorge Keishing Witherspoon: test_lists/skip_test_witherspoon 298b29d2e84SChris Austen ``` 299b29d2e84SChris Austen 300361200b4SMatt Fischer Using the exclude lists (example for Witherspoon) 301361200b4SMatt Fischer 302361200b4SMatt Fischer ``` 303361200b4SMatt Fischer $ robot -v OPENBMC_HOST:xx.xx.xx.xx -A test_lists/skip_test_witherspoon tests/ 304361200b4SMatt Fischer ``` 305361200b4SMatt Fischer 30612e33526SPatrick Williams- Run IPMI tests: 3077eea8ed0SRahul Maheshwari 3087eea8ed0SRahul Maheshwari Running only out-of-band IPMI tests: 30912e33526SPatrick Williams 3107eea8ed0SRahul Maheshwari ``` 3117eea8ed0SRahul Maheshwari $ robot -v IPMI_COMMAND:External -v OPENBMC_HOST:x.x.x.x --argumentfile test_lists/witherspoon/skip_inband_ipmi tests/ipmi/ 3127eea8ed0SRahul Maheshwari ``` 3137eea8ed0SRahul Maheshwari 3147eea8ed0SRahul Maheshwari Running only inband IPMI tests: 31512e33526SPatrick Williams 3167eea8ed0SRahul Maheshwari ``` 3177eea8ed0SRahul Maheshwari $ robot -v IPMI_COMMAND:Inband -v OPENBMC_HOST:x.x.x.x -v OS_HOST:x.x.x.x -v OS_USERNAME:xxxx -v OS_PASSWORD:xxxx --argumentfile test_lists/witherspoon/skip_oob_ipmi tests/ipmi/ 3187eea8ed0SRahul Maheshwari ``` 3197eea8ed0SRahul Maheshwari 32012e33526SPatrick Williams- Run GUI tests: 3217eea8ed0SRahul Maheshwari 32212e33526SPatrick Williams By default, GUI runs with Firefox browser and headless mode. Example with 323361200b4SMatt Fischer Chrome browser and header mode: 324dd38aef3SRahul Maheshwari 325dd38aef3SRahul Maheshwari ``` 326eeb93c31SRahul Maheshwari $ robot -v OPENBMC_HOST:x.x.x.x -v GUI_BROWSER:gc -v GUI_MODE:header gui/test/ 327dd38aef3SRahul Maheshwari ``` 328dd38aef3SRahul Maheshwari 3292bd32ff1SRahul Maheshwari Run GUI default CI test bucket: 33012e33526SPatrick Williams 3312bd32ff1SRahul Maheshwari ``` 332eeb93c31SRahul Maheshwari $ robot -v OPENBMC_HOST:x.x.x.x --argumentfile test_lists/BMC_WEB_CI gui/test/ 3332bd32ff1SRahul Maheshwari ``` 3342bd32ff1SRahul Maheshwari 33512e33526SPatrick Williams- Run LDAP tests: 3365d00a3c8SSivas SRR 33712e33526SPatrick Williams Before using LDAP test functions, be sure appropriate LDAP user(s) and 33812e33526SPatrick Williams group(s) have been created on your LDAP server. Note: There are multiple ways 33912e33526SPatrick Williams to create LDAP users / groups and all depend on your LDAP server. One common 34012e33526SPatrick Williams way for openldap is ldapadd / ldapmodify refer 34112e33526SPatrick Williams https://linux.die.net/man/1/ldapadd For ldapsearch, refer to 34212e33526SPatrick Williams "https://linux.die.net/man/1/ldapsearch". Microsoft ADS: refer to 34312e33526SPatrick Williams https://searchwindowsserver.techtarget.com/definition/Microsoft-Active-Directory-Domain-Services-AD-DS 344962ff298SSivas SRR 34512e33526SPatrick Williams Note: Currently, LDAP test automation for Redfish API is in progress. The 34612e33526SPatrick Williams format to invoke LDAP test is as follows: 34712e33526SPatrick Williams 3485d00a3c8SSivas SRR ``` 349962ff298SSivas SRR $ cd redfish/account_service/ 350962ff298SSivas SRR $ robot -v OPENBMC_HOST:x.x.x.x -v LDAP_SERVER_URI:<ldap(s)//LDAP Hostname / IP> -v LDAP_BIND_DN:<LDAP Bind DN> -v LDAP_BASE_DN:<LDAP Base DN> -v LDAP_BIND_DN_PASSWORD:<LDAP Bind password> -v LDAP_SEARCH_SCOPE:<LDAP search scope> -v LDAP_SERVER_TYPE:<LDAP server type> -v LDAP_USER:<LDAP user-id> -v LDAP_USER_PASSWORD:<LDAP PASSWORD> -v GROUP_NAME:<Group Name> -v GROUP_PRIVILEGE:<Privilege> ./test_ldap_configuration.robot 3515d00a3c8SSivas SRR ``` 3525d00a3c8SSivas SRR 35312e33526SPatrick Williams- How to run CI and CT bucket test: 354d7c26840SGeorge Keishing 355d7c26840SGeorge Keishing Default CI test bucket list: 35612e33526SPatrick Williams 357d7c26840SGeorge Keishing ``` 358d7c26840SGeorge Keishing $ OPENBMC_HOST=x.x.x.x tox -e default -- --argumentfile test_lists/HW_CI tests 359d7c26840SGeorge Keishing ``` 360d7c26840SGeorge Keishing 361d7c26840SGeorge Keishing Default CI smoke test bucket list: 36212e33526SPatrick Williams 363d7c26840SGeorge Keishing ``` 364d7c26840SGeorge Keishing $ OPENBMC_HOST=x.x.x.x tox -e default -- --argumentfile test_lists/CT_basic_run tests 365d7c26840SGeorge Keishing ``` 366d7c26840SGeorge Keishing 36712e33526SPatrick Williams- Run extended tests: 368aba958dcSGeorge Keishing 369aba958dcSGeorge Keishing For-loop test (default iteration is 10): 37012e33526SPatrick Williams 371aba958dcSGeorge Keishing ``` 372aba958dcSGeorge Keishing $ robot -v OPENBMC_HOST:x.x.x.x -v OPENBMC_SYSTEMMODEL:xxxxxx -v ITERATION:n -v LOOP_TEST_COMMAND:xxxxxx extended/full_suite_regression.robot 373aba958dcSGeorge Keishing ``` 374aba958dcSGeorge Keishing 375aba958dcSGeorge Keishing Example using tox testing a test suite for 5 iterations "witherspoon": 37612e33526SPatrick Williams 377aba958dcSGeorge Keishing ``` 378aba958dcSGeorge Keishing OPENBMC_HOST=x.x.x.x LOOP_TEST_COMMAND="tests/test_fw_version.robot" ITERATION=5 OPENBMC_SYSTEMMODEL=witherspoon tox -e witherspoon -- ./extended/full_suite_regression.robot 379aba958dcSGeorge Keishing ``` 380aba958dcSGeorge Keishing 38112e33526SPatrick Williams- Host CPU architecture 382d61a64baSKonstantin Aladyshev 38312e33526SPatrick Williams By default openbmc-test-automation framework assumes that host CPU is based on 38412e33526SPatrick Williams the POWER architecture. If your host CPU is x86 add 38512e33526SPatrick Williams `-v PLATFORM_ARCH_TYPE:x86` variable setting to your CLI commands or set an 38612e33526SPatrick Williams environment variable: 38712e33526SPatrick Williams 388c056c2bbSKonstantin Aladyshev ``` 389c056c2bbSKonstantin Aladyshev $ export PLATFORM_ARCH_TYPE=x86 390c056c2bbSKonstantin Aladyshev ``` 391d61a64baSKonstantin Aladyshev 392aba958dcSGeorge Keishing**Jenkins jobs tox commands** 39312e33526SPatrick Williams 39412e33526SPatrick Williams- HW CI tox command: 395361200b4SMatt Fischer 396aba958dcSGeorge Keishing ``` 397aba958dcSGeorge Keishing $ OPENBMC_HOST=x.x.x.x tox -e default -- --argumentfile test_lists/HW_CI tests 398aba958dcSGeorge Keishing ``` 399