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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/oetest.py | 4 ++--
1 file
Adding setUpModule in order to skip the module when gtk+ is not installed in
the toolchain.
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
meta/lib/oeqa/sdk/buildsudoku.py | 4
1 file changed, 4 insertions(+)
diff --git a/meta/lib/oeqa/sdk/buildsudoku.py b/meta/lib
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
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 corneliux.stoice...@intel.com
---
meta/classes/populate_sdk_base.bbclass | 12
1 file changed, 12 insertions(+)
diff
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 corneliux.stoice...@intel.com
---
meta/classes
- Introducing new SDKBuildProject that extends the abstract BuildProjct class
NOTE: Original patch made by: Richard Purdie
richard.pur...@linuxfoundation.org
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
meta/lib/oeqa/utils/targetbuild.py | 94
- add support for sdk tests in the loadTests and runTests methods
- add new oeSDKTest test object
NOTE: Original patch made by: Richard Purdie
richard.pur...@linuxfoundation.org
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
meta/lib/oeqa/oetest.py | 29
Add test modules for sdk tests.
NOTE: Original patch made by: Richard Purdie
richard.pur...@linuxfoundation.org
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
meta/lib/oeqa/sdk/__init__.py | 3 +++
meta/lib/oeqa/sdk/buildcvs.py | 25
-download them every time)
- 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
- 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
richard.pur...@linuxfoundation.org
Signed-off-by: Corneliu Stoicescu
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
Signed-off-by: Richard Purdie richard.pur...@linuxfoundation.org
---
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
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/utils
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/buildoptions.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions
[YOCTO #6453]
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
scripts/oe-selftest | 81 +++--
1 file changed, 53 insertions(+), 28 deletions(-)
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 8c4ea92..2332b22
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 corneliux.stoice...@intel.com
---
scripts/test-remote-image | 14 --
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git
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 corneliux.stoice...@intel.com
---
scripts/test-remote-image | 27 ---
1 file changed
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 corneliux.stoice...@intel.com
---
meta/recipes-core/initrdscripts/files/init-install-testfs.sh | 2 +-
1 file changed, 1
for the get_controller() method.
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
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
.
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/targetcontrol.py | 11
scripts can get the image
fstype.
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
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
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/controllers/testtargetloader.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta
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 corneliux.stoice...@intel.com
---
scripts/test-remote-image
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
YB: #6375
Adding support for get_image_fstype() in the MasterImageHardwareTarget and
GummibootTarget classes.
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
meta/lib/oeqa/controllers/masterimage.py | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
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 determination
YB: #6375
Some test image fstypes require bzip2 decompression.
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
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
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/controllers/testtargetloader.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta
scripts can get the image
fstype.
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
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
.
This is usefull also to outside scripts that want to anticipate the kernel file
name for all target controllers.
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
meta/lib/oeqa/controllers/masterimage.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oeqa
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
YB: #6375
Some test image fstypes require bzip2 decompression.
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
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
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 corneliux.stoice...@intel.com
---
scripts/test-remote-image
YB: #6375
Adding support for get_image_fstype() in the MasterImageHardwareTarget and
GummibootTarget classes.
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
meta/lib/oeqa/controllers/masterimage.py | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
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 bzip2 to image
targetcontrol.py
()
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
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..802bc2f
/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 corneliux.stoice...@intel.com
---
meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py | 4 ++--
1 file changed, 2 insertions
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: Corneliu
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/sstatetests.py | 4 ++--
1 file changed, 2 insertions(+), 2
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/bbtests.py | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/bbtests.py | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/_sstatetests_noauto.py | 19 ---
1 file
of ported files to secondary build directories
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
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
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/sstatetests.py | 17 +++--
1 file changed
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/buildoptions.py | 12 +---
1 file changed, 9 insertions(+), 3 deletions(-)
diff
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/buildoptions.py |3
Added new tests:
- sstate relocation stress testing
- rebuild from sstate stress testing
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/_sstatetests_noauto.py | 96 +
1 file changed, 96 insertions(+)
create mode 100644 meta
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/sstatetests.py | 35 +
1
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 corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/sstatetests.py | 28 +++-
1 file
- SStateBase object contains basic methods used to run sstate related tests
- SStateTests now contains only sstate-related tests
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/sstate.py |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
.../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
- 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
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
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
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
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
---
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
---
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
+++
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
Added a new module meta/lib/oeqa/selftest/oescripts.py containing tests
for scripts from ${COREBASE}/scripts
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
meta/lib/oeqa/selftest/oescripts.py | 60 +++
1 file changed, 60 insertions
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
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
Signed-off-by: Corneliu Stoicescu corneliux.stoice...@intel.com
---
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
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 corneliux.stoice...@intel.com
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 corneliux.stoice...@intel.com
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 corneliux.stoice...@intel.com
---
meta/classes/buildhistory.bbclass |1
62 matches
Mail list logo