Bug 5697

Summary: busybox: ptest cases failed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Chong Lu <chong.lu>
Component: coreAssignee: Changqing Li <changqing.li>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: ajay.gju, alexandru.c.georgescu, jair.de.jesus.gonzalez.plascencia, liezhi.yang, manish.das, mark.hatle, markus.boos, meta.mr.watcher, meta.watcher, sgw, yi.zhao
Version: 1.6   
Target Milestone: 2.7 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
busybox ptest log none

Description Chong Lu 2013-12-31 08:25:00 UTC
Created attachment 1698 [details]
busybox ptest log

Many busybox ptest cases failed

FAIL: cpio lists hardlinks
FAIL: echo-prints-dash
FAIL: echo-prints-non-opts
FAIL: echo-prints-slash-zero
FAIL: echo-prints-slash_00041
FAIL: echo-prints-slash_0041
FAIL: echo-prints-slash_041
FAIL: echo-prints-slash_41
FAIL: hostname-d-works
FAIL: mount -o remount,mand
FAIL: mount RO loop
FAIL: sed n (flushes pattern space, terminates early)
FAIL: sed embedded NUL
FAIL: sed NUL in command
FAIL: sed nonexistent label
FAIL: sort key range with numeric option and global reverse
FAIL: sort key range with multiple options
FAIL: unzip (subdir only)

18 test cases fail. Please check the attachment log.
Comment 1 dengke 2016-08-23 09:18:31 UTC
The cpio test case fail, because the cpio in busybox can't understand hardlinks in archives, the upstream didn't fix it now. We can check the upstream bug at:

https://bugs.busybox.net/show_bug.cgi?id=6680
Comment 2 dengke 2016-08-23 09:28:40 UTC
The busybox have upgrade to 1.24.1, the all echo failed cases have passed now.
Comment 3 dengke 2016-09-17 09:37:01 UTC
Testcase: "sed n (flushes pattern space, terminates early) " have been fixed by my patch that have been send to upstream:

https://git.busybox.net/busybox/commit/?id=76d72376e0244a5cafd4880cdc623e37d86a75e4
Comment 4 dengke 2016-11-29 01:35:03 UTC
The following failed case were upstream known bugs.
Comment 5 Jair Gonzalez 2017-04-06 20:08:07 UTC
*** Bug 8831 has been marked as a duplicate of this bug. ***
Comment 6 Jair Gonzalez 2017-04-06 20:09:19 UTC
Tests were executed on 2.3 M3 rc2 observing 8 failures on the results:

********** Failures *******

FAIL: cpio lists hardlinks
FAIL: hostname-d-works
FAIL: ls-l-works
FAIL: ls-s-works
FAIL: sed embedded NUL
FAIL: sed NUL in command
FAIL: sed append autoinserts newline
FAIL: sed nonexistent label

***************************

Results:
https://wiki.yoctoproject.org/wiki/Ptest_415b72ffcbd26e5f3664370d8b2a9b8105fb6342
Comment 7 Ross Burton 2017-07-05 10:51:29 UTC
Waiting For Upstream status is being removed, changing to Accepted.
Comment 8 Changqing Li 2018-12-05 06:45:03 UTC
fixed oe commit  
eg: 223e5c3e1f7cb4001961347c85505d88a52d221f