Bug 5880 - oe-selftest : add an option for random arch
Summary: oe-selftest : add an option for random arch
Status: VERIFIED FIXED
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Low enhancement
Target Milestone: 2.1 M2
Assignee: Daniel Istrate
QA Contact: Bogdan Alexandru Voiculescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-02-26 07:06 UTC by Yi Zhao
Modified: 2016-01-15 16:26 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2014-02-26 07:06:33 UTC
Currently we only can run oe-selftest for an arch defined in conf/local.conf. We can add an option for oe-selftest to choose a random arch or all arch.

For example:
./scripts/oe-selftest --arch=random   # this will choose a random arch to test
./scripts/oe-selftest --arch=all      # this will run the test on all of the archs.
Comment 1 Stoicescu Cornel 2014-09-19 11:28:40 UTC
oe-selftest now has option parsing features; we now only need implement the MACHINE randomisation.

Moving to 1.8 and assigning to Costin.
Comment 2 Daniel Istrate 2015-12-16 16:30:23 UTC
Sent patch to ML:
http://lists.openembedded.org/pipermail/openembedded-core/2015-December/114225.html
http://lists.openembedded.org/pipermail/openembedded-core/2015-December/114224.html

Hi, 

Please give it a try and let me know if you are happy with the results.

Thanks,
--Daniel
Comment 3 Daniel Istrate 2015-12-17 14:50:56 UTC
Patch resent to ML: 
http://lists.openembedded.org/pipermail/openembedded-core/2015-December/114271.html
http://lists.openembedded.org/pipermail/openembedded-core/2015-December/114270.html

Hi,

Added warning messages to tests that override MACHINE set by --arch option.
Also noted that not all oe-selftest test cases can run on all architectures (eg. wic)

Thanks,
--Daniel
Comment 4 Daniel Istrate 2015-12-18 15:16:49 UTC
Resent patches to ML:
http://lists.openembedded.org/pipermail/openembedded-core/2015-December/114403.html
http://lists.openembedded.org/pipermail/openembedded-core/2015-December/114404.html

Hi,

Updated the patches according to RP, Ross feedback.

I renamed the --arch option to --machine.

Usage:
oe-selftest --run-tests signing --machine random
oe-selftest --run-tests signing --machine all
oe-selftest --run-all-tests --machine random

Thanks,
--Daniel
Comment 5 Daniel Istrate 2016-01-08 07:28:20 UTC
Fixed in oe-core 0f3ad7c77aa0f8bb7641af1886e1420cdfa8419f
Comment 6 Bogdan Alexandru Voiculescu 2016-01-15 16:26:07 UTC
Verified on master: da43a56d3533db37592a1698777af08f51a5800f