[OE-core] [PATCH 2/4] classes/testimage.bbclass: add more fields to the sdk TestContext

2014-08-26 Thread Corneliu Stoicescu
In order to use hasFeature and hasPackage methods in sdk test modules, we need specific fields to be set in the TestContext object. Adding pkgmanifest, imagefeatures and distrofeatures to the TestContext. Signed-off-by: Corneliu Stoicescu --- meta/classes/testimage.bbclass | 8 1 file

[OE-core] [PATCH 0/4] Create target sdk manifest file and use it for automated sdk testing

2014-08-26 Thread Corneliu Stoicescu
In order to automatically determine what packages are present in the target sdk, we needed a target sdk manifest file, similar to the one created for machine images rootfs. Also, in order to enable the testsdk task to skip modules, some changes and additions had to be made. Corneliu Stoicescu

[OE-core] [PATCH 1/4] classes/populate_sdk_base.bbclass: add a manifest for target sdk

2014-08-26 Thread Corneliu Stoicescu
Similar to the way BSP images have rootfs a manifest, the toolchain now also has a manifest file created alongside the sdk image. Signed-off-by: Corneliu Stoicescu --- meta/classes/populate_sdk_base.bbclass | 12 1 file changed, 12 insertions(+) diff --git a/meta/classes

[OE-core] [PATCH 4/4] oeqa/sdk/buildsudoku.py: add setUpModule method to run only when gtk+ in installed.

2014-08-26 Thread Corneliu Stoicescu
Adding setUpModule in order to skip the module when gtk+ is not installed in the toolchain. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/sdk/buildsudoku.py | 4 1 file changed, 4 insertions(+) diff --git a/meta/lib/oeqa/sdk/buildsudoku.py b/meta/lib/oeqa/sdk/buildsudoku.py index

[OE-core] [PATCH 3/4] oeqa/oetest.py: enable sdk tests to use hasFeature and hasPackage methods.

2014-08-26 Thread Corneliu Stoicescu
In order to use the hasFeature and hasPackage methods, we need to make oeSDKTest extend oeTest and also set the test context (tc) attribute in the oeTest class when loading the tests. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/oetest.py | 4 ++-- 1 file changed, 2 insertions(+), 2

[OE-core] [PATCH] oeqa/runtime: add new cpp test and file

2014-08-09 Thread Corneliu Stoicescu
Signed-off-by: Corneliu Stoicescu Signed-off-by: Richard Purdie --- meta/lib/oeqa/runtime/files/test.cpp | 3 +++ meta/lib/oeqa/runtime/gcc.py | 7 +++ 2 files changed, 10 insertions(+) create mode 100644 meta/lib/oeqa/runtime/files/test.cpp diff --git a/meta/lib/oeqa/runtime

[OE-core] [PATCH 1/4] meta/classes/testimage.bbclass: add testsdk task and enable functionality for it.

2014-08-09 Thread Corneliu Stoicescu
- add new testsdk task for meta-toolchain testing. - enable the get_tests_list method to work with sdk tests. - add default TEST_SUITES value for meta-toolchain package NOTE: Original patch made by: Richard Purdie Signed-off-by: Corneliu Stoicescu --- meta/classes/testimage.bbclass | 97

[OE-core] [PATCH 0/4] Enable automated sdk tests

2014-08-09 Thread Corneliu Stoicescu
) - investigate: unify the files/ directory for all tests (now we have a specific runtime/files/ directory for example) Corneliu Stoicescu (4): meta/classes/testimage.bbclass: add testsdk task and enable functionality for it. oeqa/oetest.py: enable sdk testing oeqa/utils/targetbuild.py: add support

[OE-core] [PATCH 3/4] oeqa/utils/targetbuild.py: add support for sdk tests

2014-08-09 Thread Corneliu Stoicescu
- Introducing new SDKBuildProject that extends the abstract BuildProjct class NOTE: Original patch made by: Richard Purdie Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/utils/targetbuild.py | 94 -- 1 file changed, 79 insertions(+), 15 deletions(-) diff --git

[OE-core] [PATCH 2/4] oeqa/oetest.py: enable sdk testing

2014-08-09 Thread Corneliu Stoicescu
- add support for sdk tests in the loadTests and runTests methods - add new oeSDKTest test object NOTE: Original patch made by: Richard Purdie Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/oetest.py | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions

[OE-core] [PATCH 4/4] oeqa/sdk/: add sdk tests for sudoku, iptables and cvs

2014-08-09 Thread Corneliu Stoicescu
Add test modules for sdk tests. NOTE: Original patch made by: Richard Purdie Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/sdk/__init__.py | 3 +++ meta/lib/oeqa/sdk/buildcvs.py | 25 + meta/lib/oeqa/sdk/buildiptables.py | 26

[OE-core] [PATCH] oeqa/utils/decorators.py: add import os

2014-07-30 Thread Corneliu Stoicescu
An 'import os' was omitted here while testing the previous decorators using runtime tests that import the os module before this one. Unfortunately oe-selftest fails because of this missing import. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/utils/decorators.py | 1 + 1 file

[OE-core] [PATCH] selftest/buildoptions.py: fix QA_WARN test and add more output when failing

2014-07-28 Thread Corneliu Stoicescu
The -ccleansstate should be done before building the package for the second time. Also printing the command output when failing. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/buildoptions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa

[OE-core] [PATCH] scripts/test-remote-image: use the scriptpath module

2014-07-17 Thread Corneliu Stoicescu
Use the scripts/lib/scriptpath module in order to standardize the adding of bitbake/lib and meta/lib to sys.path. Signed-off-by: Corneliu Stoicescu --- scripts/test-remote-image | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/test-remote-image b

[OE-core] [PATCH] scripts/oe-selftest: add command-line parsing and options

2014-07-17 Thread Corneliu Stoicescu
[YOCTO #6453] Signed-off-by: Corneliu Stoicescu --- scripts/oe-selftest | 81 +++-- 1 file changed, 53 insertions(+), 28 deletions(-) diff --git a/scripts/oe-selftest b/scripts/oe-selftest index 8c4ea92..2332b22 100755 --- a/scripts/oe-selftest

[OE-core] [PATCH] scripts/test-remote-image: add --skip-download option

2014-07-11 Thread Corneliu Stoicescu
Adding the possibility to skip the download phase completely. This is useful for repeating runs with the same image types and similar configurations. Signed-off-by: Corneliu Stoicescu --- scripts/test-remote-image | 27 --- 1 file changed, 16 insertions(+), 11 deletions

[OE-core] [PATCH] init-install-testfs.sh: add '--hotkey x' to 'test' menuentry

2014-07-03 Thread Corneliu Stoicescu
Add a hotkey for the GRUB 'test' menuentry. This can be used by expect scripts to boot into 'test' when doing runtime hardware tests. Signed-off-by: Corneliu Stoicescu --- meta/recipes-core/initrdscripts/files/init-install-testfs.sh | 2 +- 1 file changed, 1 insertion(+),

[OE-core] [PATCH 1/2] oeqa/targetcontrol.py: Separate the matching of supported image fstypes from the resulting value check.

2014-06-23 Thread Corneliu Stoicescu
. The matching is done within a new classmethod and the latter keeps the old method name and internal functionality, this way we don't have to change any other target controllers code. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/targetcontrol.py | 11 +-- 1 file chang

[OE-core] [PATCH 2/2] scripts/test-remote-image: add value check for rootfs fstype, change method name used.

2014-06-23 Thread Corneliu Stoicescu
nt for the get_controller() method. Signed-off-by: Corneliu Stoicescu --- scripts/test-remote-image | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/test-remote-image b/scripts/test-remote-image index 6da6672..7d02a84 100755 --- a/scripts/test-remote-image +++ b/sc

[OE-core] [PATCH V2 0/7] YB #6375 #6254

2014-06-06 Thread Corneliu Stoicescu
pport for postconfig option" allready on the mailing list. *** BLURB HERE *** Corneliu Stoicescu (7): targetcontrol.py: make possible dynamical determination of rootfs type masterimage.py: enable dynamical determination of rootfs type core-image-testmaster.bb: add bzip

[OE-core] [PATCH V2 2/7] masterimage.py: enable dynamical determination of rootfs type

2014-06-06 Thread Corneliu Stoicescu
YB: #6375 Adding support for get_image_fstype() in the MasterImageHardwareTarget and GummibootTarget classes. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/controllers/masterimage.py | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa/controllers

[OE-core] [PATCH V2 7/7] scripts/test-remote-image: Add script for running runtime tests on remotely built images

2014-06-06 Thread Corneliu Stoicescu
YB: #6254 Adding a new script that will fetch image files from a remote images repository. These images will then be used for local runtime testing. Use the '-h' option for more details on usage. Signed-off-by: Corneliu Stoicescu --- scripts/test-remote-i

[OE-core] [PATCH V2 6/7] controllers/masterimage.py: Make testimage kernel naming pattern universal

2014-06-06 Thread Corneliu Stoicescu
ing scheme. This is usefull also to outside scripts that want to anticipate the kernel file name for all target controllers. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/controllers/masterimage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/controlle

[OE-core] [PATCH V2 4/7] targetcontrol.py: Add a classmethod to get extra files needed by the target controllers

2014-06-06 Thread Corneliu Stoicescu
YB: #6254 Add a new classmethod that can be used by outside scripts to get the extra files needed by the target controllers. An outside script can predict rootfs, manifest and kernel files needed by a target controller, but sometimes there are other files needed. Signed-off-by: Corneliu

[OE-core] [PATCH V2 3/7] core-image-testmaster.bb: add bzip2 to image

2014-06-06 Thread Corneliu Stoicescu
YB: #6375 Some test image fstypes require bzip2 decompression. Signed-off-by: Corneliu Stoicescu --- meta/recipes-extended/images/core-image-testmaster.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-extended/images/core-image-testmaster.bb b/meta/recipes

[OE-core] [PATCH V2 5/7] oeqa/controllers/testtargetloader.py: add 'import os'

2014-06-06 Thread Corneliu Stoicescu
YB: #6254 This module uses os but relies on other modules to import it. Adding 'import os' in order to be self-sustained. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/controllers/testtargetloader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/lib/oeqa/c

[OE-core] [PATCH V2 1/7] targetcontrol.py: make possible dynamical determination of rootfs type

2014-06-06 Thread Corneliu Stoicescu
ns outside scripts can get the image fstype. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/targetcontrol.py | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py index ff1bb89..866c414 100644 ---

[OE-core] [PATCH 3/6] core-image-testmaster.bb: add bzip2 to image

2014-06-06 Thread Corneliu Stoicescu
YB: #6375 Some test image fstypes require bzip2 decompression. Signed-off-by: Corneliu Stoicescu --- meta/recipes-extended/images/core-image-testmaster.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-extended/images/core-image-testmaster.bb b/meta/recipes

[OE-core] [PATCH 0/6] YB #6375 #6254

2014-06-06 Thread Corneliu Stoicescu
that could use the above, run the runtime tests and return the results NOTE: This script relies on the merge of "[PATCH] oeqa/utils/commands.py: add support for postconfig option" allready on the mailing list. Corneliu Stoicescu (6): targetcontrol.py: make possible dynamical determ

[OE-core] [PATCH 5/6] oeqa/controllers/testtargetloader.py: add 'import os'

2014-06-06 Thread Corneliu Stoicescu
YB: #6254 This module uses os but relies on other modules to import it. Adding 'import os' in order to be self-sustained. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/controllers/testtargetloader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/lib/oeqa/c

[OE-core] [PATCH 6/6] scripts/test-remote-image: Add script for running runtime tests on remotely built images

2014-06-06 Thread Corneliu Stoicescu
YB: #6254 Adding a new script that will fetch image files from a remote images repository. These images will then be used for local runtime testing. Use the '-h' option for more details on usage. Signed-off-by: Corneliu Stoicescu --- scripts/test-remote-i

[OE-core] [PATCH 4/6] targetcontrol.py: Add a classmethod to get extra files needed by the target controllers

2014-06-06 Thread Corneliu Stoicescu
YB: #6254 Add a new classmethod that can be used by outside scripts to get the extra files needed by the target controllers. An outside script can predict rootfs, manifest and kernel files needed by a target controller, but sometimes there are other files needed. Signed-off-by: Corneliu

[OE-core] [PATCH 2/6] masterimage.py: enable dynamical determination of rootfs type

2014-06-06 Thread Corneliu Stoicescu
YB: #6375 Adding support for get_image_fstype() in the MasterImageHardwareTarget and GummibootTarget classes. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/controllers/masterimage.py | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa/controllers

[OE-core] [PATCH 1/6] targetcontrol.py: make possible dynamical determination of rootfs type

2014-06-06 Thread Corneliu Stoicescu
ns outside scripts can get the image fstype. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/targetcontrol.py | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py index ff1bb89..d4aaf3c 100644 ---

[OE-core] [PATCH] oeqa/utils/commands.py: add support for postconfig option

2014-06-05 Thread Corneliu Stoicescu
thods affected: get_bb_env(), get_bb_var() Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/utils/commands.py | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 7637b9d..

[OE-core] [PATCH] oeqa/controllers/beaglebonetarget.py: fix conditions for files copied to /boot

2014-05-27 Thread Corneliu Stoicescu
return exit status 0 if [ ! -e /mnt/testrootfs/boot/uImage ] returns exit code 1. Without this if the file existance check would fail then the image deploy task would stop. Signed-off-by: Corneliu Stoicescu --- meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py | 4 ++-- 1 file changed, 2

[OE-core] [PATCH] oeqa/controllers/beaglebonetarget.py: add conditions for files copied to /boot

2014-05-26 Thread Corneliu Stoicescu
Sometimes the rootfs archive contains the kernel file (core-image-full-cmdline) or the dtbs files (core-image-sato). Adding verification to add them if they don't allready exist. Without this, the first condition would fail and the image deploy task would stop. Signed-off-by: Cor

[OE-core] [PATCH] selftest/sstatetests.py: Added 'populate_lic' to ignore_patterns

2014-04-03 Thread Corneliu Stoicescu
Because the sstate-cache-management script does not remove populate_lic sstate files, we should ignore them when checking for removed files. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/sstatetests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta

[OE-core] [PATCH v2] selftest/bbtests.py: Fixed regex and added bitbake output to test_warnings_errors

2014-03-27 Thread Corneliu Stoicescu
The test failed when more than 1 error or 1 warning is present. Also pasting the bitbake output when the test fails. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/bbtests.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/lib/oeqa/selftest

[OE-core] [PATCH] selftest/bbtests.py: Fixed regex and added bitbake output to test_warnings_errors

2014-03-26 Thread Corneliu Stoicescu
The test failed when more than 1 error or 1 warning is present. Also pasting the bitbake output when the test fails. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/bbtests.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/lib/oeqa/selftest

[OE-core] [PATCH 2/2] oe-selftest: force some values in local.conf for _sstatetests_noauto.py

2014-03-06 Thread Corneliu Stoicescu
of ported files to secondary build directories Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/_sstatetests_noauto.py | 10 ++ 1 file changed, 10 insertions(+) diff --git a/meta/lib/oeqa/selftest/_sstatetests_noauto.py b/meta/lib/oeqa/selftest/_sstatetests_noauto.py index

[OE-core] [PATCH 1/2] oe-selftest: optimize code in _sstatetests_noauto.py module

2014-03-06 Thread Corneliu Stoicescu
to after they are created. This makes more sense and prevents deletion of these directories if they allready exist and may contain useful data. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/_sstatetests_noauto.py | 19 --- 1 file changed, 4 insertions(+), 15

[OE-core] [PATCH] oe-selftest: Fix test_sstate_cache_management_script*

2014-02-28 Thread Corneliu Stoicescu
Fixed tests for sstate-cache-management.sh that ware failing due to: - recent changes to sstate-cache structure - recent changes to the script itself Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/sstatetests.py | 17 +++-- 1 file changed, 11 insertions(+), 6

[OE-core] [PATCH] oe-selftest: Fix for test_rm_old_image

2014-02-27 Thread Corneliu Stoicescu
After recent changes in poky this test was not working as it should. This commit fixes and improves the test logic. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/buildoptions.py | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa

[OE-core] [PATCH] oe-selftest: Fixed "test_rm_old_image" that was outdated

2014-02-17 Thread Corneliu Stoicescu
This test used the old format of IMAGE_LINK_NAME that used to contain DATETIME information. Now it uses IMAGE_LINK_NAME and DATETIME variables to determine the path to the image. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/buildoptions.py |3 ++- 1 file changed, 2

[OE-core] [PATCH] oe-selftest: New tests for sstate relocation

2014-01-24 Thread Corneliu Stoicescu
Added new tests: - sstate relocation stress testing - rebuild from sstate stress testing Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/_sstatetests_noauto.py | 96 + 1 file changed, 96 insertions(+) create mode 100644 meta/lib/oeqa/selftest

[OE-core] [PATCH V2] oe-selftest: Patch sstate tests to work with new sstate-cache naming and content

2014-01-17 Thread Corneliu Stoicescu
Made modifications to account for: - .siginfo files present in sstate-cache from non sstate-enabled tasks - new naming format for sstate files Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/sstatetests.py | 28 +++- 1 file changed, 15 insertions(+), 13

[OE-core] [PATCH] oe-selftest: Patch sstate tests to work with new sstate-cache naming and content

2014-01-17 Thread Corneliu Stoicescu
Made modifications to account for: - .siginfo files present in sstate-cache from non sstate-enabled tasks - new naming format for sstate files Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/sstatetests.py | 35 + 1 file changed, 22 insertions

[OE-core] [PATCH 2/3] oe-selftest: renamed sstate.py module to sstatetests.py

2014-01-14 Thread Corneliu Stoicescu
Signed-off-by: Corneliu Stoicescu --- .../oeqa/selftest/{sstate.py => sstatetests.py}|0 1 file changed, 0 insertions(+), 0 deletions(-) rename meta/lib/oeqa/selftest/{sstate.py => sstatetests.py} (100%) diff --git a/meta/lib/oeqa/selftest/sstate.py b/meta/lib/oeqa/se

[OE-core] [PATCH 1/3] oe-selftest: New object SStateBase cut off from SStateTests.

2014-01-14 Thread Corneliu Stoicescu
- SStateBase object contains basic methods used to run sstate related tests - SStateTests now contains only sstate-related tests Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/sstate.py |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest

[OE-core] [PATCH V2] Modify buildstats to be merged inside buildhistory

2014-01-06 Thread Corneliu Stoicescu
- added buildstats inheritance inside buildhistory - when buildhisory is used, buildstats will be moved inside the buildhistory directory --- meta/classes/buildhistory.bbclass |3 +++ meta/classes/buildstats.bbclass |2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/me

[OE-core] [PATCH V2] oe-selftest: New tests for sstate related operations

2013-12-19 Thread Corneliu Stoicescu
Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/sstate.py | 226 ++ 1 file changed, 226 insertions(+) create mode 100644 meta/lib/oeqa/selftest/sstate.py diff --git a/meta/lib/oeqa/selftest/sstate.py b/meta/lib/oeqa/selftest/sstate.py new file

[OE-core] [PATCH V2 1/3] oe-selftest: New BuildhistoryBase object for buildhistory testing.

2013-12-17 Thread Corneliu Stoicescu
Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/buildhistory.py | 45 1 file changed, 45 insertions(+) create mode 100644 meta/lib/oeqa/selftest/buildhistory.py diff --git a/meta/lib/oeqa/selftest/buildhistory.py b/meta/lib/oeqa/selftest

[OE-core] [PATCH V2 3/3] oe-selftest: added buildhistory buildtime tests in module buildoptions.py

2013-12-17 Thread Corneliu Stoicescu
Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/buildoptions.py | 20 1 file changed, 20 insertions(+) diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py index 5fb69d8..ef6579b 100644 --- a/meta/lib/oeqa/selftest

[OE-core] [PATCH V2 2/3] oe-selftest: New test module for OE scripts.

2013-12-17 Thread Corneliu Stoicescu
Added a new module meta/lib/oeqa/selftest/oescripts.py containing tests for scripts from ${COREBASE}/scripts Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/oescripts.py | 60 +++ 1 file changed, 60 insertions(+) create mode 100644 meta/lib/oeqa

[OE-core] [PATCH 2/3] oe-selftest: New test module for OE scripts.

2013-12-17 Thread Corneliu Stoicescu
Added a new module meta/lib/oeqa/selftest/oescripts.py containing tests for scripts from ${COREBASE}/scripts --- meta/lib/oeqa/selftest/oescripts.py | 60 +++ 1 file changed, 60 insertions(+) create mode 100644 meta/lib/oeqa/selftest/oescripts.py diff --git a/me

[OE-core] [PATCH 3/3] oe-selftest: added buildhistory buildtime tests in module buildoptions.py

2013-12-17 Thread Corneliu Stoicescu
--- meta/lib/oeqa/selftest/buildoptions.py | 20 1 file changed, 20 insertions(+) diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py index 5fb69d8..ef6579b 100644 --- a/meta/lib/oeqa/selftest/buildoptions.py +++ b/meta/lib/oeqa/sel

[OE-core] [PATCH 1/3] oe-selftest: New BuildhistoryBase object for buildhistory testing.

2013-12-17 Thread Corneliu Stoicescu
--- meta/lib/oeqa/selftest/buildhistory.py | 45 1 file changed, 45 insertions(+) create mode 100644 meta/lib/oeqa/selftest/buildhistory.py diff --git a/meta/lib/oeqa/selftest/buildhistory.py b/meta/lib/oeqa/selftest/buildhistory.py new file mode 100644 index

[OE-core] [PATCH] oe-selftest: New tests for sstate related operations

2013-12-17 Thread Corneliu Stoicescu
Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest/sstate.py | 226 ++ 1 file changed, 226 insertions(+) create mode 100644 meta/lib/oeqa/selftest/sstate.py diff --git a/meta/lib/oeqa/selftest/sstate.py b/meta/lib/oeqa/selftest/sstate.py new file

[OE-core] [PATCH 2/2] oe-selftest: Add track_for_cleanup method to be used in cleanup tasks

2013-12-11 Thread Corneliu Stoicescu
Added a track_for_cleanup(path) method that removes the given path in the tearDown method. This mechanism can be used to make sure a file or directory we created will be removed at the end of a test, regardless of what happens. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest

[OE-core] [PATCH 1/2] oe-selftest: implement add_command_to_tearDown method

2013-12-11 Thread Corneliu Stoicescu
Add a new method that can be used by the tester to add a command to the executed in the tearDown stage of the test. This mechanism can be used to make sure certain test-specific cleanup tasks are done in the case of a test failure. Signed-off-by: Corneliu Stoicescu --- meta/lib/oeqa/selftest

[OE-core] [PATCH] Modify buildstats to be merged inside buildhistory

2013-11-01 Thread Corneliu Stoicescu
onf). I believe this should be made default. I made some tests with the buildhistory-diff tool and it is compatible with the changes. We can add further functionality to it in order to make it interpret buildstats data. Signed-off-by: Corneliu Stoicescu --- meta/classes/buildhistory.