[OE-core] [PATCH 1/1] multiconfig.py: added testsuite for multiconfig

2017-07-27 Thread Humberto Ibarra
Multiconfig was not being tested at all. This adds a few basic tests for multiconfig, including globbing. [Yocto #11612] Signed-off-by: Humberto Ibarra --- meta/lib/oeqa/selftest/cases/multiconfig.py | 100 1 file changed, 100 insertions(+) create mode 100644 meta

[OE-core] [PATCH 0/1] multiconfig.py: added testsuite for multiconfig

2017-07-27 Thread Humberto Ibarra
at: git://git.yoctoproject.org/poky-contrib humberto/Multiconfig http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=humberto/Multiconfig Humberto Ibarra (1): multiconfig.py: added testsuite for multiconfig meta/lib/oeqa/selftest/cases/multiconfig.py | 100

[OE-core] [PATCH 1/1] imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS

2017-06-29 Thread Humberto Ibarra
Add new testcase to check varibale IMAGE_GEN_DEBUGFS. Test makes sure that debug filesystem is created accordingly. [YOCTO #10906] Signed-off-by: Humberto Ibarra --- meta/lib/oeqa/selftest/cases/imagefeatures.py | 21 + 1 file changed, 21 insertions(+) diff --git a/meta

[OE-core] [PATCH v3 0/1] imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS

2017-06-29 Thread Humberto Ibarra
: git://git.yoctoproject.org/poky-contrib humberto/ImageGenDebugfs http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=humberto/ImageGenDebugfs Humberto Ibarra (1): imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS meta/lib/oeqa/selftest/cases/imagefeatures.py | 21

[OE-core] [PATCH v2 1/1] imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS

2017-06-20 Thread Humberto Ibarra
Add new testcase to check varibale IMAGE_GEN_DEBUGFS. Test makes sure that debug filesystem is created accordingly. [YOCTO #10906] Signed-off-by: Humberto Ibarra --- meta/lib/oeqa/selftest/cases/imagefeatures.py | 26 ++ 1 file changed, 26 insertions(+) diff --git a

[OE-core] [PATCH v2 0/1] imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS

2017-06-20 Thread Humberto Ibarra
: git://git.yoctoproject.org/poky-contrib humberto/ImageGenDebugfs http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=humberto/ImageGenDebugfs Humberto Ibarra (1): imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS meta/lib/oeqa/selftest/cases/imagefeatures.py | 26

[OE-core] [PATCH 1/1] imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS

2017-06-16 Thread Humberto Ibarra
Add new testcase to check varibale IMAGE_GEN_DEBUGFS. Test makes sure that debug filesystem and packages are created accordingly. [YOCTO #10906] Signed-off-by: Humberto Ibarra --- meta/lib/oeqa/selftest/cases/imagefeatures.py | 33 +++ 1 file changed, 33 insertions

[OE-core] [PATCH 0/1] imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS

2017-06-16 Thread Humberto Ibarra
repository at: git://git.yoctoproject.org/poky-contrib humberto/ImageGenDebugfs http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=humberto/ImageGenDebugfs Humberto Ibarra (1): imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS meta/lib/oeqa/selftest/cases/imagefeatures.py

[OE-core] [PATCH 1/1] runtime-test.py: Split different tests inside selftest.py

2017-06-05 Thread Humberto Ibarra
for dnf-runtime and also has an extra time added to running the tests, but it is minimal since the builds reuse data from previuous build. [YOCTO #11436] Signed-off-by: Humberto Ibarra --- .../lib/oeqa/runtime/cases/dnf-runtime.py | 42 ++ meta-selftest/lib/oeqa

[OE-core] [PATCH 0/1] runtime-test.py: Split different tests inside selftest.py

2017-06-05 Thread Humberto Ibarra
repository at: git://git.yoctoproject.org/poky-contrib humberto/SplitDnfTestimage http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=humberto/SplitDnfTestimage Humberto Ibarra (1): runtime-test.py: Split different tests inside selftest.py .../lib/oeqa/runtime/cases/dnf-runtime.py

[OE-core] [PATCH v2 1/1] oelib/buildhistory.py: Add unittest for buildhistory_analysis

2017-02-27 Thread Humberto Ibarra
The buildhistory_analysis module (in which buildhistory-diff is based) was lacking unittest for its functions. Created selftest module for this and a few testcases to cover basic cases. [YOCTO #10727] Signed-off-by: Humberto Ibarra --- meta/lib/oeqa/selftest/oelib/buildhistory.py | 88

[OE-core] [PATCH 1/1] oelib/buildhistory.py: Add unittest for buildhistory_analysis

2017-02-24 Thread Humberto Ibarra
The buildhistory_analysis module (in which buildhistory-diff is based) was lacking unittest for its functions. Created selftest module for this and a few testcases to cover basic cases. [YOCTO #10727] Signed-off-by: Humberto Ibarra --- meta/lib/oeqa/selftest/oelib/buildhistory.py | 88

[OE-core] [PATCH 1/1] selftest/runtime-test.py: Add test to check PACKAGE_FEED_URIS var

2017-02-20 Thread Humberto Ibarra
environment were set in runtime-perf.py and the actual test is done in a new testcase added to meta-selftest layer. [YOCTO #10872] Signed-off-by: Humberto Ibarra --- meta-selftest/lib/oeqa/runtime/cases/selftest.py | 32 meta/lib/oeqa/selftest/runtime-test.py | 3

[OE-core] [PATCH] oeqa: fix typo

2017-02-13 Thread Humberto Ibarra
The word 'uninstall' was spelled incorrectly in various parts of oeqa files. Signed-off-by: Humberto Ibarra --- meta-selftest/lib/oeqa/runtime/cases/selftest.py | 6 +++--- meta/lib/oeqa/oetest.py | 12 ++-- meta/lib/oeqa/selftest/runtime-test.py

[OE-core] [PATCH] oe-selftest: check for coverage version before starting tests

2016-09-12 Thread Humberto Ibarra
python coverage versions lower than 4.x have problems with some distros. Adding the 4.x version as requirement to continue with coverage tracking. [YOCTO #10207] Signed-off-by: Humberto Ibarra --- scripts/oe-selftest | 4 1 file changed, 4 insertions(+) diff --git a/scripts/oe-selftest

[OE-core] [PATCH v4 2/2] oe-selftest: Add syntax version tracking to oe-selftest

2016-09-01 Thread Humberto Ibarra
Add a version field and option to argparse so the sntax version can be tracked [YOCTO #8938] Signed-off-by: Humberto Ibarra --- scripts/oe-selftest | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts/oe-selftest b/scripts/oe-selftest index e0ef0c1

[OE-core] [PATCH v4 1/2] oe-selftest: reorganize syntax to use subcommands

2016-09-01 Thread Humberto Ibarra
The current syntax of oe-selftest is messy. This patch reorganizes it in a clearer way by grouping all functions in a 'run' subcommand and a 'list' subcommand. [YOCTO #8938] Signed-off-by: Humberto Ibarra --- scripts/oe-selftest | 362 ++-

[OE-core] [PATCH v4 0/2] oe-selftest refactoring

2016-09-01 Thread Humberto Ibarra
Refactoring of oe-selftest and adding version tracking for its syntax. These patches need to be integrated at the same time as the corresponding change for autobuilder to aovid breaking anything. [YOCTO #8938] Humberto Ibarra (2): oe-selftest: reorganize syntax to use subcommands oe

[OE-core] [PATCH v3] The current syntax of oe-selftest is messy. This patch reorganizes it in a clearer way by grouping all functions in a 'run' subcommand and a 'list' subcommand.

2016-08-26 Thread Humberto Ibarra
A different patch is going to be send to avoid this syntax change from breaking autobuilder. Both patches belong to same bug (8938) and should be integrated together. [YOCTO #8938] --- scripts/oe-selftest | 362 ++-- 1 file changed, 184 insertions

[OE-core] [PATCH v2] oe-selftest: reorganize syntax to use subcommands

2016-08-02 Thread Humberto Ibarra
The current syntax of oe-selftest is messy. This patch reorganizes it in a clearer way by grouping all functions in a 'run' subcommand and a 'list' subcommand. [YOCTO #8938] --- scripts/oe-selftest | 362 ++-- 1 file changed, 184 insertions(+), 17

[OE-core] [PATCH] oe-selftest: reorganize syntax to use subcommands

2016-08-02 Thread Humberto Ibarra
The current syntax of oe-selftest is messy. This patch reorganizes it in a clearer way by grouping all functions in a 'run' subcommand and a 'list' subcommand. [YOCTO #8938] --- scripts/oe-selftest | 362 ++-- 1 file changed, 184 insertions(+), 17

[OE-core] [PATCH] oe-selftest: reorganize syntax to use subcommands

2016-07-13 Thread Humberto Ibarra
The current syntax of oe-selftest is messy. This patch reorganizes it in a clearer way by grouping all functions in a 'run' subcommand and a 'list' subcommand. [YOCTO #8938] Signed-off-by: Humberto Ibarra --- scripts/oe-selftest | 358 +++

[OE-core] [PATCH] scripts: Fixed typo in parameter that was causing exception

2016-07-01 Thread Humberto Ibarra
There is a typo in the logging parameters, "filname" is being used instead of "filename" for yocto-kernel, yocto-layer and wic scripts. This didn't cause issues before since python 2 didn't validate unused parameters but with python >= 3.4.3 an exception is thrown. This patch fixes this paramete

[OE-core] [PATCH 3/3] scripts/lib/bsp/engine.py: Added missing parentheses to string formatting

2016-06-09 Thread Humberto Ibarra
Commit ab75075e7941c8c2ec429c180976702cd311c978 broke the string formatting for multiple arguments. Since parentheses were removed the formatting considers only first argument instead of all of them. Fixed parentheses on the formatting. [YOCTO #9723] Signed-off-by: Humberto Ibarra --- scripts

[OE-core] [PATCH 2/3] scripts/lib/bsp/kernel.py: python3: use explicit relative imports

2016-06-09 Thread Humberto Ibarra
Have to convert implicit relative imports to explicit imports since implicit relative imports are not supported on python3. [YOCTO #9723] Signed-off-by: Humberto Ibarra --- scripts/lib/bsp/kernel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/bsp/kernel.py b

[OE-core] [PATCH 1/3] scripts/lib/bsp/engine.py: Rename raw_input commands to input

2016-06-09 Thread Humberto Ibarra
According to https://docs.python.org/3/whatsnew/3.0.html python3 renamed 'raw_input' to 'input'. Making the appropiate changes for this. [YOCTO #9723] Signed-off-by: Humberto Ibarra --- scripts/lib/bsp/engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[OE-core] [PATCH 0/3] Fixed yocto-bsp create after python3 failures

2016-06-09 Thread Humberto Ibarra
Python3 introduced a few errors that avoided yocto-bsp from being able to create a BSP. This patch set solves these issues. [YOCTO #9723] Humberto Ibarra (3): scripts/lib/bsp/engine.py: Rename raw_input commands to input scripts/lib/bsp/kernel.py: python3: use explicit relative imports

[OE-core] [PATCH] scripts/yocto-bsp: Fixed typo in parameter that was causing exception

2016-06-09 Thread Humberto Ibarra
There is a typo in the logging parameters, "filname" is being used instead of "filename". This didn't cause issues before since python 2 didn't validate unused parameters but with python >= 3.4.3 an exception is thrown. This patch fixes this parameter name. [Yoct

[OE-core] [PATCH] scripts/lib/bsp/engine.py: Added missing keyword to fix syntax error

2016-06-06 Thread Humberto Ibarra
Commit af9f6b88fcc5d7fddff01595f9bcf2aba548720 introduced a syntax error in engine.py by removing keyword "in". This patch adds it back. [Yocto #9719] Signed-off-by: Humberto Ibarra --- scripts/lib/bsp/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s

[OE-core] [PATCH] scripts/bitbake-whatchanged: migrate from optparse to argparse

2016-05-19 Thread Humberto Ibarra
The script bitbake-whatchanged uses optparse library, which is deprecated since python 2.7. This migrates to argparse library. [Yocto #9634] Signed-off-by: Humberto Ibarra --- scripts/bitbake-whatchanged | 32 1 file changed, 12 insertions(+), 20 deletions

[OE-core] [PATCH v2] scripts/oe-selftest: Improve listing by reducing unneeded spacing

2016-05-18 Thread Humberto Ibarra
The --list-tests option assumes a terminal of 150 characters wide, which is clearly wrong. The output for this command is messy and hard to understand for lower widths. Every command should look good in a 80 characters terminal. Unfortunately, this can't be done at the moment. The bad naming of te

[OE-core] [PATCH] scripts/oe-selftest: Improve listing by reducing unneeded spacing

2016-05-17 Thread Humberto Ibarra
The --list-tests option assumes a terminal of 150 characters wide, which is clearly wrong. The output for this command is messy and hard to understand for lower widths. Every command should look good in a 80 characters terminal. Unfortunately, this can't be done at the moment. The bad naming of te

[OE-core] [PATCH 0/3] handle issues with coverage file when coverage is not installed

2016-04-05 Thread Humberto Ibarra
introduced in that bug (8930). This series handles all these issues caused by #8930. Humberto Ibarra (3): scripts/oe-selftest: remove unneeded coverage warning scripts/oe-selftest: remove coverage file if any coverage option is given scripts/oe-selftest: avoid the creation of coverage file

[OE-core] [PATCH 2/3] scripts/oe-selftest: remove coverage file if any coverage option is given

2016-04-05 Thread Humberto Ibarra
coverage option was given. Signed-off-by: Humberto Ibarra --- scripts/oe-selftest | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/scripts/oe-selftest b/scripts/oe-selftest index 2348b47..375ba5c 100755 --- a/scripts/oe-selftest +++ b/scripts/oe

[OE-core] [PATCH 3/3] scripts/oe-selftest: avoid the creation of coverage file when coverage not installed

2016-04-05 Thread Humberto Ibarra
installed. [Yocto #9334] Signed-off-by: Humberto Ibarra --- scripts/oe-selftest | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/scripts/oe-selftest b/scripts/oe-selftest index 375ba5c..3d2dffb 100755 --- a/scripts/oe-selftest +++ b/scripts/o

[OE-core] [PATCH 1/3] scripts/oe-selftest: remove unneeded coverage warning

2016-04-05 Thread Humberto Ibarra
There is a message that warns the user about enabling subprocessing for coverage to work. After the fix for Yocto #8930, this task is done automatically, so the warning is not needed anymore. Signed-off-by: Humberto Ibarra --- scripts/oe-selftest | 4 +--- 1 file changed, 1 insertion(+), 3

[OE-core] [PATCH] scripts:/oe-selftest: Use timestamp instead of test names in coverage data file

2016-03-23 Thread Humberto Ibarra
data file name won't have any identifier, causing following runs to overwrite themselves. On the other hand, if too many tests are given, the file name exceeds linux limits and fails to store the coverage data all together. [Yocto #9253] Signed-off-by: Humberto Ibarra --- scripts/oe-selftest

[OE-core] [PATCH] scripts/lib/bsp/help.py: Add missing options to yocto-bsp help and usage

2016-03-14 Thread humberto . ibarra . lopez
From: Humberto Ibarra Add the options --codedump and --skip-git-check to the yocto-bsp help and yocto-bsp usage, since they are currently missing. [YOCTO #8322] Signed-off-by: Humberto Ibarra --- scripts/lib/bsp/help.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/lib/bsp

[OE-core] [PATCH] scripts/oe-selftest: Add short names to most common options

2016-03-11 Thread humberto . ibarra . lopez
From: Humberto Ibarra Add short names to most common options in oe-selftest. The options changed were --run-tests, --run-all-tests, --list-tests and --list-modules. [Yocto #9079] Signed-off-by: Humberto Ibarra --- scripts/oe-selftest | 8 1 file changed, 4 insertions(+), 4 deletions

[OE-core] [PATCH] scripts/oe-selftest: Add search expression matching to run/list options

2016-03-11 Thread humberto . ibarra . lopez
From: Humberto Ibarra The oe-selftest script required an exact matching for the parameters passed to its run-tests-by and list-tests-by options. Many tests can be retrieved here and filtering is a must. This patch add this filtering functionality by enabling the use of wildcards such as

[OE-core] [PATCH v3 2/2] scripts/oe-selftest: Use site.USER_SITE to run coverage configuration code for sub-process

2016-02-19 Thread humberto . ibarra . lopez
From: Humberto Ibarra Coverage in oe-selftest currently requires to create or modify a sitecustomize.py file according the coverage tool setup instructions (http://coverage.readthedocs.org/). This file has to be located in the system's python folder, which is not a good solution since

[OE-core] [PATCH v3 1/2] scripts/oe-selftest: Add filtering to the coverage data gathered by oe-selftest

2016-02-19 Thread humberto . ibarra . lopez
From: Humberto Ibarra When --coverage is used, oe-selftest gathers coverage data from the testcases executed. The command lacks a way of filtering which files to gather coverage data from. This patch adds three options to specify which files should be considered. The --coverage-source option

[OE-core] [PATCH v3 0/2] Coverage filtering and configuration file for sub-process in $HOME

2016-02-19 Thread humberto . ibarra . lopez
From: Humberto Ibarra Enables filtering to the files to be measured with coverage and adds temporal file to enable subprocessing Humberto Ibarra (2): scripts/oe-selftest: Add filtering to the coverage data gathered by oe-selftest scripts/oe-selftest: Use site.USER_SITE to run

[OE-core] [PATCH v2 0/2] Coverage filtering and configuration file for sub-process in $HOME

2016-02-17 Thread humberto . ibarra . lopez
From: Humberto Ibarra Enables filtering to the files to be measured with coverage and adds temporal file to enable subprocessing Humberto Ibarra (2): scripts/oe-selftest: Add filtering to the coverage data gathered by oe-selftest scripts/oe-selftest: Use site.USER_SITE to run

[OE-core] [PATCH v2 2/2] scripts/oe-selftest: Use site.USER_SITE to run coverage configuration code for sub-process

2016-02-17 Thread humberto . ibarra . lopez
From: Humberto Ibarra Coverage in oe-selftest currently requires to create or modify a sitecustomize.py file according the coverage tool setup instructions (http://coverage.readthedocs.org/). This file has to be located in the system's python folder, which is not a good solution since

[OE-core] [PATCH v2 1/2] scripts/oe-selftest: Add filtering to the coverage data gathered by oe-selftest

2016-02-17 Thread humberto . ibarra . lopez
From: Humberto Ibarra When --coverage is used, oe-selftest gathers coverage data from the testcases executed. The command lacks a way of filtering which files to gather coverage data from. This patch adds three options to specify which files should be considered. The --coverage-source option

[OE-core] [PATCH 2/2] scripts/oe-selftest: Use site.USER_SITE to run coverage configuration code for sub-process

2016-02-16 Thread humberto . ibarra . lopez
From: Humberto Ibarra Coverage in oe-selftest currently requires to create or modify a sitecustomize.py file according the coverage tool setup instructions (http://coverage.readthedocs.org/). This file has to be located in the system's python folder, which is not a good solution since

[OE-core] [PATCH 1/2] scripts/oe-selftest: Add filtering to the coverage data gathered by oe-selftest

2016-02-16 Thread humberto . ibarra . lopez
From: Humberto Ibarra When --coverage is used, oe-selftest gathers coverage data from the testcases executed. The command lacks a way of filtering which files to gather coverage data from. This patch adds three options to specify which files should be considered. The --coverage-source option

[OE-core] [PATCH 0/2] Coverage filering and configuration file for sub-process in $HOME

2016-02-16 Thread humberto . ibarra . lopez
From: Humberto Ibarra Enables filtering to the files to be measured with coverage and adds temporal file to enable subprocessing Humberto Ibarra (2): scripts/oe-selftest: Add filtering to the coverage data gathered by oe-selftest scripts/oe-selftest: Use site.USER_SITE to run

[OE-core] [PATCH] scripts/oe-selftest: Remove extra coverage data added to unittests

2015-12-23 Thread humberto . ibarra . lopez
From: Humberto Ibarra Coverage data tracking initiates too early, causing coverage data from the oe-selftest environment setting to be added to each run. Even when no tests are run oe-selftest reports around 24% of coverage due to this extra data. Change the custom resultclass used by the

[OE-core] [PATCH v3] scripts/yocto-layer: Avoids duplication of "meta-" prefix

2015-12-09 Thread humberto . ibarra . lopez
From: Humberto Ibarra The yocto-layer script puts and extra "meta-" prefix on the given layer name even when the prefix is already there. This fix avoids duplicating the prefix in these situations. The change was done inside the create subcommand since this is a parsing specific to

[OE-core] [PATCH v2] scripts/yocto-layer Change to the yocto-layer script. The fix avoids the duplication of the "meta-" prefix on the layer directory when creating a new layer with the prefix already

2015-12-08 Thread humberto . ibarra . lopez
From: Humberto Ibarra Before the change: $ yocto-layer create meta-layer2 ... New layer created in meta-meta-layer2. - After the change: $ yocto-layer create meta-layer2 ... New layer created in meta-layer2. Signed-off-by: Humberto Ibarra --- scripts/yocto-layer | 6 +- 1 file

[OE-core] [scripts][PATCH] yocto-layer: Stops duplication of "meta-" prefix

2015-07-29 Thread humberto . ibarra . lopez
From: Humberto Ibarra The yocto-layer script puts an extra "meta-" prefix to the given layer name even when the prefix is already there. This fix avoids duplicating the prefix in these situations. [YOCTO #8050] Signed-off-by: Humberto Ibarra --- scripts/yocto-layer | 2 ++ 1 file