/openbmc-automation

Test OpenBMC Distribution

Primary LanguageRobotFramework

#openbmc-automation

Quickstart

To run openbmc-automation first you need to install the prerequisite python packages which will help to invoke tests through tox.

Install the python dependencies for tox

    $ easy_install tox==2.1.1
    $ easy_install pip

Initilize the following environment variable which will used while testing

    $ export OPENBMC_HOST=<openbmc machine ip address>
    $ export OPENBMC_PASSWORD=<openbmc username>
    $ export OPENBMC_USERNAME=<openbmc password>

    Use following parameters for PDU:
    $ export PDU_IP=<PDU IP address>
    $ export PDU_USERNAME=<PDU username>
    $ export PDU_PASSWORD=<PDU password>
    $ export PDU_TYPE=<PDU type>
    $ export PDU_SLOT_NO=<SLOT number>

    for PDU_TYPE we support only synaccess at the moment
    

Run tests

    $ tox -e tests

How to test individual test

    $ tox -e custom <test file>
    e.g:
    $ tox -e custom tests/test_buster.robot

It can also be run by pasing variables from the cli...

    $  pybot -v OPENBMC_HOST:<ip> -v OPENBMC_USERNAME:root -v OPENBMC_PASSWORD:0penBmc