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
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
---
meta/classes/populate_sdk_base.bbclass | 12
1 file changed, 12 insertions(+)
diff --git a/meta/classes
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
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
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
- 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
)
- 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
- 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
- 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
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
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
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
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
[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
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
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(+),
.
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
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
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
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
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
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
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
---
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
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
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
---
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
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
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
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
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
---
meta/lib/oeqa/controllers/masterimage.py | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/meta/lib/oeqa/controllers
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
---
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..
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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
- 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
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
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
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
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
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
---
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
---
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
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
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
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
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.
62 matches
Mail list logo