How can I test my changes to the test cases?#

How can I test my changes to the test cases?

I’ve written some changes to some test cases and I want to test them locally, how is that possible?

Run tests against a live target

When using a real piece of hardware you can run the following from a scotty shell environment

$ devtool simplecore-test-target <image-name> <ip of the target> <ip of your host>

runtime cases only

This method applies only the test cases defined under lib/oeqa/runtime/cases

Grab a coffee

Depending on how many test cases are configured for the chosen image, running the test suite can take a while. So it might be the perfect time to grab a coffee.

Run tests against a qemu target

When using QEMU you can run the following from a scotty shell environment

$ bitbake <image-name> -c testimage

runtime cases only

This method applies only the test cases defined under lib/oeqa/runtime/cases

Grab a coffee

Depending on how many test cases are configured for the chosen image, running the test suite can take a while. So it might be the perfect time to grab a coffee.