| Summary: | Some strace ptests fail | ||
|---|---|---|---|
| Product: | [QA/Testing] Runtime Testing | Reporter: | dawei <daweix.wu> |
| Component: | general | Assignee: | dengke <dengke.du> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | randy.macleod |
| Version: | 1.6.4 | ||
| Target Milestone: | 2.2 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
Strace ptests fail because when run the ptest on the target, the run-ptest invoke the /usr/lib/strace/ptest/tests/init.sh, this file find the necessary files using the varibale "srcdir", this variable define in the /usr/lib/strace/ptest/tests/Makefile, after the do_install_ptest function, in the Makefile this varibale was "srcdir = ../../strace-4.11/tests", but on the target the necessary files was under the directory /usr/lib/strace/ptest/tests, so using the string "ptest" replace the string "strace-4.11" to the variable srcdir in the Makefile. Now, the strace ptest results doesn't contain those fails. https://wiki.yoctoproject.org/wiki/Ptest_36feb38045b7a2af86ece147fec54b0db3bf491f //dengke |
image arch: x86-64 From the log the failure due to file missing ---------------------------------------------------------------------------- awk: fatal: can't open source file `/var/lib/jenkins/build-iot-os/build/tmp-glibc/work/corei7-64-iotos-linux/strace/4.10-r0/strace-4.10/tests/caps.awk' for reading (No such file or directory) capget({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_CHOWN|CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_FOWNER|CAP_FSETID|CAP_KILL|CAP_SETGID|CAP_SETUID|CAP_SETPCAP|CAP_LINUX_IMMUTABLE|CAP_NET_BIND_SERVICE|CAP_NET_BROADCAST|CAP_NET_ADMIN|CAP_NET_RAW|CAP_IPC_LOCK|CAP_IPC_OWNER|CAP_SYS_MODULE|CAP_SYS_RAWIO|CAP_SYS_CHROOT|CAP_SYS_PTRACE|CAP_SYS_PACCT|CAP_SYS_ADMIN|CAP_SYS_BOOT|CAP_SYS_NICE|CAP_SYS_RESOURCE|CAP_SYS_TIME|CAP_SYS_TTY_CONFIG|CAP_MKNOD|CAP_LEASE|CAP_AUDIT_WRITE|CAP_AUDIT_CONTROL|CAP_SETFCAP|CAP_MAC_OVERRIDE|CAP_MAC_ADMIN|CAP_SYSLOG|CAP_WAKE_ALARM|CAP_BLOCK_SUSPEND|CAP_AUDIT_READ, CAP_CHOWN|CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_FOWNER|CAP_FSETID|CAP_KILL|CAP_SETGID|CAP_SETUID|CAP_SETPCAP|CAP_LINUX_IMMUTABLE|CAP_NET_BIND_SERVICE|CAP_NET_BROADCAST|CAP_NET_ADMIN|CAP_NET_RAW|CAP_IPC_LOCK|CAP_IPC_OWNER|CAP_SYS_MODULE|CAP_SYS_RAWIO|CAP_SYS_CHROOT|CAP_SYS_PTRACE|CAP_SYS_PACCT|CAP_SYS_ADMIN|CAP_SYS_BOOT|CAP_SYS_NICE|CAP_SYS_RESOURCE|CAP_SYS_TIME|CAP_SYS_TTY_CONFIG|CAP_MKNOD|CAP_LEASE|CAP_AUDIT_WRITE|CAP_AUDIT_CONTROL|CAP_SETFCAP|CAP_MAC_OVERRIDE|CAP_MAC_ADMIN|CAP_SYSLOG|CAP_WAKE_ALARM|CAP_BLOCK_SUSPEND|CAP_AUDIT_READ, 0}) = 0 capset({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_DAC_OVERRIDE|CAP_WAKE_ALARM, CAP_DAC_READ_SEARCH|CAP_BLOCK_SUSPEND, 0}) = -1 EPERM (Operation not permitted) +++ exited with 0 +++ caps.test: failed test: unexpected output FAIL: caps.test ---------------------------------------------------------------------------- awk: fatal: can't open source file `/var/lib/jenkins/build-iot-os/build/tmp-glibc/work/corei7-64-iotos-linux/strace/4.10-r0/strace-4.10/tests/getrandom.awk' for reading (No such file or directory) getrandom("\xbf\xe0\x54", 3, 0) = 3 getrandom("\x1d\x54\xd2"..., 4, GRND_NONBLOCK) = 4 getrandom(0x7ffd3640cd90, 4, GRND_NONBLOCK|GRND_RANDOM|0x3000) = -1 EINVAL (Invalid argument) +++ exited with 0 +++ getrandom.test: failed test: unexpected output FAIL: getrandom.test ---------------------------------------------------------------------------- awk: fatal: can't open source file `/var/lib/jenkins/build-iot-os/build/tmp-glibc/work/corei7-64-iotos-linux/strace/4.10-r0/strace-4.10/tests/select.awk' for reading (No such file or directory) select(2, [0 1], [0 1], [0 1], NULL) = 1 () select(-1, NULL, 0x55813c76f040, NULL, NULL) = -1 EINVAL (Invalid argument) select(1025, [0], [], NULL, {0, 100}) = 0 (Timeout) +++ exited with 0 +++ select.test: failed test: unexpected output FAIL: select.test ---------------------------------------------------------------------------- ./net-yy.test: line 36: /var/lib/jenkins/build-iot-os/build/tmp-glibc/work/corei7-64-iotos-linux/strace/4.10-r0/strace-4.10/tests/../strace-log-merge: No such file or directory net-yy.test: failed test: strace-log-merge failed FAIL: net-yy.test ---------------------------------------------------------------------------- ./sun_path.test: line 19: /var/lib/jenkins/build-iot-os/build/tmp-glibc/work/corei7-64-iotos-linux/strace/4.10-r0/strace-4.10/tests/../strace-log-merge: No such file or directory sun_path.test: failed test: strace-log-merge failed FAIL: sun_path.test ---------------------------------------------------------------------------- gawk: fatal: can't open source file `/var/lib/jenkins/build-iot-os/build/tmp-glibc/work/corei7-64-iotos-linux/strace/4.10-r0/strace-4.10/tests/uid.awk' for reading (No such file or directory) getuid() = 0 setuid(0) = 0 getresuid([0], [0], [0]) = 0 setreuid(-1, -1) = 0 setresuid(0, -1, -1) = 0 chown(".", -1, -1) = 0 getgroups(0, NULL) = 1 getgroups(1, [0]) = 1 +++ exited with 0 +++ uid.test: failed test: unexpected output FAIL: uid.test ----------------------------------------------------------------------------