* [PATCH 0/2] Fixes for systemd's ptest
@ 2013-12-23 8:36 Qi.Chen
2013-12-23 8:36 ` [PATCH 1/2] busybox: enable SEAMLESS_XZ by default Qi.Chen
2013-12-23 8:36 ` [PATCH 2/2] systemd: fix ptest to make it able to run on target Qi.Chen
0 siblings, 2 replies; 5+ messages in thread
From: Qi.Chen @ 2013-12-23 8:36 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <Qi.Chen@windriver.com>
The current status for systemd's ptest is not good. It has only two test cases.
However, it's better to have something than nothing. So we need to make these
two test cases actually have effect. This is what this patchset is trying to achieve.
//Chen Qi
The following changes since commit 005af45191ded6185c618c708181b31281e43092:
bitbake: fetch2: avoid printing "no checksum" error message twice (2013-12-22 14:29:13 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib ChenQi/systemd-ptest
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/systemd-ptest
Chen Qi (2):
busybox: enable SEAMLESS_XZ by default
systemd: fix ptest to make it able to run on target
meta/recipes-core/busybox/busybox/defconfig | 2 +-
meta/recipes-core/systemd/systemd/run-ptest | 1 +
meta/recipes-core/systemd/systemd_208.bb | 12 ++++++++++--
3 files changed, 12 insertions(+), 3 deletions(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] busybox: enable SEAMLESS_XZ by default
2013-12-23 8:36 [PATCH 0/2] Fixes for systemd's ptest Qi.Chen
@ 2013-12-23 8:36 ` Qi.Chen
2013-12-23 19:33 ` Saul Wold
2013-12-23 8:36 ` [PATCH 2/2] systemd: fix ptest to make it able to run on target Qi.Chen
1 sibling, 1 reply; 5+ messages in thread
From: Qi.Chen @ 2013-12-23 8:36 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <Qi.Chen@windriver.com>
We have enabled SEAMLESS_GZ and SEAMLESS_BZ2 in defconfig, it's
reasonable for us to enable SEAMLESS_XZ as well. Otherwise, we
couldn't extract tar.xz file while we could extract tar.gz file.
Such situation would be somewhat confusing.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/recipes-core/busybox/busybox/defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/busybox/busybox/defconfig b/meta/recipes-core/busybox/busybox/defconfig
index f0e63c2..20cd147 100644
--- a/meta/recipes-core/busybox/busybox/defconfig
+++ b/meta/recipes-core/busybox/busybox/defconfig
@@ -125,7 +125,7 @@ CONFIG_FEATURE_HWIB=y
#
# Archival Utilities
#
-# CONFIG_FEATURE_SEAMLESS_XZ is not set
+CONFIG_FEATURE_SEAMLESS_XZ=y
CONFIG_FEATURE_SEAMLESS_LZMA=y
CONFIG_FEATURE_SEAMLESS_BZ2=y
CONFIG_FEATURE_SEAMLESS_GZ=y
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] busybox: enable SEAMLESS_XZ by default
2013-12-23 8:36 ` [PATCH 1/2] busybox: enable SEAMLESS_XZ by default Qi.Chen
@ 2013-12-23 19:33 ` Saul Wold
2013-12-24 1:31 ` ChenQi
0 siblings, 1 reply; 5+ messages in thread
From: Saul Wold @ 2013-12-23 19:33 UTC (permalink / raw)
To: Qi.Chen, openembedded-core
On 12/23/2013 12:36 AM, Qi.Chen@windriver.com wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> We have enabled SEAMLESS_GZ and SEAMLESS_BZ2 in defconfig, it's
> reasonable for us to enable SEAMLESS_XZ as well. Otherwise, we
> couldn't extract tar.xz file while we could extract tar.gz file.
> Such situation would be somewhat confusing.
>
It's also important to note how much bigger the busybox image grows when
adding a new config options, so what's the increase in # of bytes?
Thanks
Sau!
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> meta/recipes-core/busybox/busybox/defconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/busybox/busybox/defconfig b/meta/recipes-core/busybox/busybox/defconfig
> index f0e63c2..20cd147 100644
> --- a/meta/recipes-core/busybox/busybox/defconfig
> +++ b/meta/recipes-core/busybox/busybox/defconfig
> @@ -125,7 +125,7 @@ CONFIG_FEATURE_HWIB=y
> #
> # Archival Utilities
> #
> -# CONFIG_FEATURE_SEAMLESS_XZ is not set
> +CONFIG_FEATURE_SEAMLESS_XZ=y
> CONFIG_FEATURE_SEAMLESS_LZMA=y
> CONFIG_FEATURE_SEAMLESS_BZ2=y
> CONFIG_FEATURE_SEAMLESS_GZ=y
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] busybox: enable SEAMLESS_XZ by default
2013-12-23 19:33 ` Saul Wold
@ 2013-12-24 1:31 ` ChenQi
0 siblings, 0 replies; 5+ messages in thread
From: ChenQi @ 2013-12-24 1:31 UTC (permalink / raw)
To: Saul Wold, openembedded-core
On 12/24/2013 03:33 AM, Saul Wold wrote:
> On 12/23/2013 12:36 AM, Qi.Chen@windriver.com wrote:
>> From: Chen Qi <Qi.Chen@windriver.com>
>>
>> We have enabled SEAMLESS_GZ and SEAMLESS_BZ2 in defconfig, it's
>> reasonable for us to enable SEAMLESS_XZ as well. Otherwise, we
>> couldn't extract tar.xz file while we could extract tar.gz file.
>> Such situation would be somewhat confusing.
>>
> It's also important to note how much bigger the busybox image grows
> when adding a new config options, so what's the increase in # of bytes?
>
Hi Saul,
The total size increase is (511116 + 47184 - 499980 - 47184 = 11136) bytes.
Here's more data.
*) Before the change:
-rwxr-xr-x 2 chenqi chenqi 511116 Dec 23 02:44
tmp/work/i586-poky-linux/busybox/1.21.1-r0/packages-split/busybox/bin/busybox.nosuid
-rwsr-xr-x 2 chenqi chenqi 47184 Dec 23 02:44
tmp/work/i586-poky-linux/busybox/1.21.1-r0/packages-split/busybox/bin/busybox.suid
*) After the change:
-rwxr-xr-x 2 chenqi chenqi 499980 Dec 23 20:25
tmp/work/i586-poky-linux/busybox/1.21.1-r0/packages-split/busybox/bin/busybox.nosuid
-rwsr-xr-x 2 chenqi chenqi 47184 Dec 23 20:25
tmp/work/i586-poky-linux/busybox/1.21.1-r0/packages-split/busybox/bin/busybox.suid
Best Regards,
Chen Qi
> Thanks
> Sau!
>
>> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
>> ---
>> meta/recipes-core/busybox/busybox/defconfig | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-core/busybox/busybox/defconfig
>> b/meta/recipes-core/busybox/busybox/defconfig
>> index f0e63c2..20cd147 100644
>> --- a/meta/recipes-core/busybox/busybox/defconfig
>> +++ b/meta/recipes-core/busybox/busybox/defconfig
>> @@ -125,7 +125,7 @@ CONFIG_FEATURE_HWIB=y
>> #
>> # Archival Utilities
>> #
>> -# CONFIG_FEATURE_SEAMLESS_XZ is not set
>> +CONFIG_FEATURE_SEAMLESS_XZ=y
>> CONFIG_FEATURE_SEAMLESS_LZMA=y
>> CONFIG_FEATURE_SEAMLESS_BZ2=y
>> CONFIG_FEATURE_SEAMLESS_GZ=y
>>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] systemd: fix ptest to make it able to run on target
2013-12-23 8:36 [PATCH 0/2] Fixes for systemd's ptest Qi.Chen
2013-12-23 8:36 ` [PATCH 1/2] busybox: enable SEAMLESS_XZ by default Qi.Chen
@ 2013-12-23 8:36 ` Qi.Chen
1 sibling, 0 replies; 5+ messages in thread
From: Qi.Chen @ 2013-12-23 8:36 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <Qi.Chen@windriver.com>
This patch mainly involves four changes.
1. Ship the sys.tar.xz and extract it on target to avoid ELOOP error.
2. Make systemd-ptest rdepend on bash and perl as the test cases need them.
3. Fix paths in Makefile so that the test cases could run on target.
4. Install ${libdir}/udev/rules.d directory to make udev-test.pl work.
[YOCTO #5664]
[YOCTO #5673]
[YOCTO #5674]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/recipes-core/systemd/systemd/run-ptest | 1 +
meta/recipes-core/systemd/systemd_208.bb | 12 ++++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-core/systemd/systemd/run-ptest b/meta/recipes-core/systemd/systemd/run-ptest
index 0418bc9..2f6bd93 100644
--- a/meta/recipes-core/systemd/systemd/run-ptest
+++ b/meta/recipes-core/systemd/systemd/run-ptest
@@ -1,2 +1,3 @@
+tar -C test -xJf test/sys.tar.xz
make test/rules-test.sh.log
make test/udev-test.pl.log
diff --git a/meta/recipes-core/systemd/systemd_208.bb b/meta/recipes-core/systemd/systemd_208.bb
index 372e73d..248a898 100644
--- a/meta/recipes-core/systemd/systemd_208.bb
+++ b/meta/recipes-core/systemd/systemd_208.bb
@@ -120,11 +120,15 @@ do_install_ptest () {
install ${S}/test/* ${D}${PTEST_PATH}/test
install -m 0755 ${B}/test-udev ${D}${PTEST_PATH}/
install -d ${D}${PTEST_PATH}/build-aux
+ cp ${S}/build-aux/test-driver ${D}${PTEST_PATH}/build-aux/
cp -rf ${B}/rules ${D}${PTEST_PATH}/
+ # This directory needs to be there for udev-test.pl to work.
+ install -d ${D}${libdir}/udev/rules.d
cp ${B}/Makefile ${D}${PTEST_PATH}/
- cp ${S}/build-aux/test-driver ${D}${PTEST_PATH}/build-aux/
- tar -C ${D}${PTEST_PATH}/test -xJf ${S}/test/sys.tar.xz
+ cp ${S}/test/sys.tar.xz ${D}${PTEST_PATH}/test
sed -i 's/"tree"/"ls"/' ${D}${PTEST_PATH}/test/udev-test.pl
+ sed -i 's#${S}#${PTEST_PATH}#g' ${D}${PTEST_PATH}/Makefile
+ sed -i 's#${B}#${PTEST_PATH}#g' ${D}${PTEST_PATH}/Makefile
}
python populate_packages_prepend (){
@@ -147,6 +151,10 @@ FILES_${PN}-analyze = "${bindir}/systemd-analyze"
FILES_${PN}-initramfs = "/init"
RDEPENDS_${PN}-initramfs = "${PN}"
+# The test cases need perl and bash to run correctly.
+RDEPENDS_${PN}-ptest += "perl bash"
+FILES_${PN}-ptest += "${libdir}/udev/rules.d"
+
FILES_${PN}-gui = "${bindir}/systemadm"
FILES_${PN}-vconsole-setup = "${rootlibexecdir}/systemd/systemd-vconsole-setup \
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-12-24 1:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-23 8:36 [PATCH 0/2] Fixes for systemd's ptest Qi.Chen
2013-12-23 8:36 ` [PATCH 1/2] busybox: enable SEAMLESS_XZ by default Qi.Chen
2013-12-23 19:33 ` Saul Wold
2013-12-24 1:31 ` ChenQi
2013-12-23 8:36 ` [PATCH 2/2] systemd: fix ptest to make it able to run on target Qi.Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox