|
[PATCH 23/23] oeqa/selftest: generalise test_devtool_virtual_kernel_modify
Generalise this test so that it works on more than qemux86-64:
- Don't edit a file in arch/x86 to cause a rebuild, instead use init/
- Look for the edits in the build tree, as the deployed kernel
Generalise this test so that it works on more than qemux86-64:
- Don't edit a file in arch/x86 to cause a rebuild, instead use init/
- Look for the edits in the build tree, as the deployed kernel
|
By
Ross Burton <ross@...>
·
#163864
·
|
|
[PATCH 22/23] oeqa/selftest/wic: use self.td instead of get_bb_var to save on bitbake calls
When a test case starts, self.td is populated with all the variables in
the data store. Typically this can be used instead of get_bb_var(),
which saves a bitbake call per variable lookup.
The only
When a test case starts, self.td is populated with all the variables in
the data store. Typically this can be used instead of get_bb_var(),
which saves a bitbake call per variable lookup.
The only
|
By
Ross Burton <ross@...>
·
#163863
·
|
|
[PATCH 21/23] oeqa/selftest/wic: use os.path.join to join paths
Instead of using string concatenation, use os.path.join.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/selftest/cases/wic.py | 92 ++++++++++++++---------------
1 file changed,
Instead of using string concatenation, use os.path.join.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/selftest/cases/wic.py | 92 ++++++++++++++---------------
1 file changed,
|
By
Ross Burton <ross@...>
·
#163862
·
|
|
[PATCH 20/23] oeqa/selftest/wic: rearrange tests
Split the tests into further classes: one which exercises the CLI and
doesn't need to build images at all, and another which is just the
tests that manipulate existing images.
Signed-off-by: Ross
Split the tests into further classes: one which exercises the CLI and
doesn't need to build images at all, and another which is just the
tests that manipulate existing images.
Signed-off-by: Ross
|
By
Ross Burton <ross@...>
·
#163861
·
|
|
[PATCH 19/23] oeqa/selftest/wic: cleanup WicTestCase.setUpLocal
Use os.path.join to construct paths, and invoke bitbake once instead of
three times.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/selftest/cases/wic.py | 12 ++++--------
1
Use os.path.join to construct paths, and invoke bitbake once instead of
three times.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/selftest/cases/wic.py | 12 ++++--------
1
|
By
Ross Burton <ross@...>
·
#163860
·
|
|
[PATCH 18/23] oeqa/selftest/oescripts: refactor skipping logic
OEScriptTests currently skips if cairo isn't present, and does a build
of core-image-minimal. This is only required for the
OEPybootchartguyTests tests, so move that logic there so that
OEScriptTests currently skips if cairo isn't present, and does a build
of core-image-minimal. This is only required for the
OEPybootchartguyTests tests, so move that logic there so that
|
By
Ross Burton <ross@...>
·
#163859
·
|
|
[PATCH 17/23] oeqa: rationalise skipifqemu decorators
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/core/decorator/data.py | 44 ++++---------------
meta/lib/oeqa/runtime/cases/boot.py | 2 +-
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/core/decorator/data.py | 44 ++++---------------
meta/lib/oeqa/runtime/cases/boot.py | 2 +-
|
By
Ross Burton <ross@...>
·
#163858
·
|
|
[PATCH 16/23] oeqa/selftest: tag tests that use runqemu
There may be environments or machines which don't have working runqemu,
so tag all of the tests which use runqemu() so that they can be skipped.
Signed-off-by: Ross Burton <ross.burton@...>
---
There may be environments or machines which don't have working runqemu,
so tag all of the tests which use runqemu() so that they can be skipped.
Signed-off-by: Ross Burton <ross.burton@...>
---
|
By
Ross Burton <ross@...>
·
#163857
·
|
|
[PATCH 15/23] oeqa/core/decorators/data: improve has_* logic
has_feature() should be splitting the feature string into substrings and
then looking for membership instead of looking for simple substrings.
has_machine() should be using equality instead of
has_feature() should be splitting the feature string into substrings and
then looking for membership instead of looking for simple substrings.
has_machine() should be using equality instead of
|
By
Ross Burton <ross@...>
·
#163856
·
|
|
[PATCH 14/23] oeqa/selftest: remove unused imports
---
meta/lib/oeqa/selftest/cases/_sstatetests_noauto.py | 2 +-
meta/lib/oeqa/selftest/cases/binutils.py | 5 +----
meta/lib/oeqa/selftest/cases/buildoptions.py | 2 +-
---
meta/lib/oeqa/selftest/cases/_sstatetests_noauto.py | 2 +-
meta/lib/oeqa/selftest/cases/binutils.py | 5 +----
meta/lib/oeqa/selftest/cases/buildoptions.py | 2 +-
|
By
Ross Burton <ross@...>
·
#163855
·
|
|
[PATCH 13/23] oeqa/core/utils/misc: remove redundant file
This file dates back to 2016. Half of the functions have never been used,
the rest are used in one place and have now been replaced.
Signed-off-by: Ross Burton <ross.burton@...>
---
This file dates back to 2016. Half of the functions have never been used,
the rest are used in one place and have now been replaced.
Signed-off-by: Ross Burton <ross.burton@...>
---
|
By
Ross Burton <ross@...>
·
#163854
·
|
|
[PATCH 12/23] testimage: inline updateTestData()
updateTestData() is just a simple loop that is only used here, so just
inline it.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/classes/testimage.bbclass | 4 ++--
1 file changed, 2
updateTestData() is just a simple loop that is only used here, so just
inline it.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/classes/testimage.bbclass | 4 ++--
1 file changed, 2
|
By
Ross Burton <ross@...>
·
#163853
·
|
|
[PATCH 11/23] oeqa/core/decorator: remove redundant code
There's no need to wrap *tags in a potential list, as *tags will always
be a tuple.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/core/decorator/__init__.py | 11 +++--------
1
There's no need to wrap *tags in a potential list, as *tags will always
be a tuple.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/core/decorator/__init__.py | 11 +++--------
1
|
By
Ross Burton <ross@...>
·
#163852
·
|
|
[PATCH 10/23] oeqa/runtime/decorator/package.py: remove use of strToSet
There's no need to use a series of over-generalised functions to just
wrap a string in a tuple.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/runtime/decorator/package.py | 9
There's no need to use a series of over-generalised functions to just
wrap a string in a tuple.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/runtime/decorator/package.py | 9
|
By
Ross Burton <ross@...>
·
#163851
·
|
|
[PATCH 09/23] oeqa/selftest/buildoptions: set PACKAGE_CLASSES in test_arch_work_dir_and_export_source
test_arch_work_dir_and_export_source uses the archiver to generate SRPMS,
so explicitly set PACKAGE_CLASSES to ensure that package_rpm is used.
Signed-off-by: Ross Burton <ross.burton@...>
---
test_arch_work_dir_and_export_source uses the archiver to generate SRPMS,
so explicitly set PACKAGE_CLASSES to ensure that package_rpm is used.
Signed-off-by: Ross Burton <ross.burton@...>
---
|
By
Ross Burton <ross@...>
·
#163850
·
|
|
[PATCH 08/23] oeqa/selftest/wic: add more arch-specific annotations
Some tests which are marked as x86-specific will actually work on
aarch64 (e.g. use EFI), whilst some other tests really are x86-specific
(e.g. use syslinux).
Signed-off-by: Ross Burton
Some tests which are marked as x86-specific will actually work on
aarch64 (e.g. use EFI), whilst some other tests really are x86-specific
(e.g. use syslinux).
Signed-off-by: Ross Burton
|
By
Ross Burton <ross@...>
·
#163849
·
|
|
[PATCH 07/23] oeqa/selftest/wic: don't hardcode kernel image type in test_wic_rm
Don't assume bzImage, resepct KERNEL_IMAGETYPE.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/selftest/cases/wic.py | 10 ++++++----
1 file changed, 6 insertions(+), 4
Don't assume bzImage, resepct KERNEL_IMAGETYPE.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/selftest/cases/wic.py | 10 ++++++----
1 file changed, 6 insertions(+), 4
|
By
Ross Burton <ross@...>
·
#163848
·
|
|
[PATCH 06/23] oeqa/selftest/wic: clean up only_for_arch decorator
There's no need to pass a recipe name when determining the target
architecture, there's no need to cap the size of the lru_cache as it
will only have one entry, and __name__ is set by
There's no need to pass a recipe name when determining the target
architecture, there's no need to cap the size of the lru_cache as it
will only have one entry, and __name__ is set by
|
By
Ross Burton <ross@...>
·
#163847
·
|
|
[PATCH 05/23] oeqa/selftest/wic: remove redundant asserts
By default bitbake() will raise an assertion if it fails, so there's no
need to wrap it in a further assert.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/selftest/cases/wic.py
By default bitbake() will raise an assertion if it fails, so there's no
need to wrap it in a further assert.
Signed-off-by: Ross Burton <ross.burton@...>
---
meta/lib/oeqa/selftest/cases/wic.py
|
By
Ross Burton <ross@...>
·
#163846
·
|
|
[PATCH 04/23] oeqa/selftest/wic: use os.rename instead of bb.utils.rename
bb.utils.rename() only exists to handle moves across filesystems. As
these moves are within the same directory we can just use os.rename().
Signed-off-by: Ross Burton <ross.burton@...>
---
bb.utils.rename() only exists to handle moves across filesystems. As
these moves are within the same directory we can just use os.rename().
Signed-off-by: Ross Burton <ross.burton@...>
---
|
By
Ross Burton <ross@...>
·
#163845
·
|