Skip to contentSkip to conversation

kbd: Add ptest support

PATCH Superseded [email protected] 3 participants 6 messages May 30, 2023 – Jun 12, 2023

v3 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 kbd: Add ptest support

From: Qiu Tingting <[email protected]>

Add a ptest for kbd
- It is taking around 1s to execute with kvm, so added it to PTESTS_FAST
- It contains libkeymap unit tests(27 cases) and libkbdfile unit tests(13 cases)

---
 .../distro/include/ptest-packagelists.inc     |  1 +
 meta/recipes-core/kbd/files/run-ptest         | 11 +++
 meta/recipes-core/kbd/kbd_2.5.1.bb            | 71 ++++++++++++++++++-
 3 files changed, 82 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-core/kbd/files/run-ptest
meta/conf/distro/include/ptest-packagelists.inc +1 -0
index faa9bd6983..366c048cc8 100644
@@ -26,6 +26,7 @@ PTESTS_FAST = "\
     gzip \
     json-c \
     json-glib \
+    kbd \
     libconvert-asn1-perl \
     liberror-perl \
     libgpg-error\
meta/recipes-core/kbd/files/run-ptest new file +11 -0
new file mode 100644
index 0000000000..3b154c4d73
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Define test work dir
+WORKDIR=@PTEST_PATH@/tests/
+
+# Run test
+cd ${WORKDIR}
+
+./testsuite -k unittest | sed -e '/[0-9]:/s/://' \
+    -e '/ ok/s/^/PASS: /;/ FAILED/s/^/FAIL: /;/ skipped/s/^/SKIP: /' \
+    -e '/ ok/s/ ok.*//;/ skipped/s/ skipped.*//;/ FAILED/s/ FAILED.*//'
meta/recipes-core/kbd/kbd_2.5.1.bb +70 -1

86 lines not on this page · raw message

Signature · 1 line
2.25.1
#1 lore raw

Hello,

This still fails to build:

https://autobuilder.yoctoproject.org/typhoon/#/builders/110/builds/6071/steps/12/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/103/builds/6079/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/48/builds/7219/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/106/builds/6151/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/7244/steps/11/logs/errors

| make[1]: Entering directory '/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests/libtswrap'
| /bin/bash ../../libtool  --tag=CC   --mode=compile arm-poky-linux-gnueabi-gcc  -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../../kbd-2.5.1/tests/libtswrap -I../..   -I../../../kbd-2.5.1/tests/libtswrap -I.   -g -O0 -O2 -D_FORTIFY_SOURCE=2  -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0  -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=  -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=  -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native=  -Waggregate-return -Wall -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -c -o ioctl.lo ../../../kbd-2.5.1/tests/libtswrap/ioctl.c
| libtool: compile:  arm-poky-linux-gnueabi-gcc -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../../kbd-2.5.1/tests/libtswrap -I../.. -I../../../kbd-2.5.1/tests/libtswrap -I. -g -O0 -O2 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0 -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot= -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot= -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native= -Waggregate-return -Wall -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -c ../../../kbd-2.5.1/tests/libtswrap/ioctl.c  -fPIC -DPIC -o .libs/ioctl.o
| ../../../kbd-2.5.1/tests/libtswrap/ioctl.c: In function 'print_kbsentry':
| ../../../kbd-2.5.1/tests/libtswrap/ioctl.c:257:55: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
|   257 |         dprintf(outfd, "\t\tunsigned char kb_string[%ld] = {\n", sz);
|       |                                                     ~~^          ~~
|       |                                                       |          |
|       |                                                       long int   size_t {aka unsigned int}
|       |                                                     %d
| /bin/bash ../../libtool  --tag=CC   --mode=link arm-poky-linux-gnueabi-gcc  -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot  -g -O0 -O2 -D_FORTIFY_SOURCE=2  -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0  -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=  -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=  -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native=  -Waggregate-return -Wall -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -export-symbols-regex ^ioctl -version-info 1:0:0 -rpath /nowhere -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map  -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0  -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=  -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=  -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native=  -Wl,-z,relro,-z,now -o libtswrap.la  ioctl.lo -ldl
| libtool: link: arm-poky-linux-gnueabi-gcc-nm  .libs/ioctl.o   | sed -n -e 's/^.*[	 ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[	 ][	 ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | sed 's/.* //' | sort | uniq > .libs/libtswrap.exp
| libtool: link: /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/hosttools/grep -E -e "^ioctl" ".libs/libtswrap.exp" > ".libs/libtswrap.expT"
| libtool: link: mv -f ".libs/libtswrap.expT" ".libs/libtswrap.exp"
| libtool: link: echo "{ global:" > .libs/libtswrap.ver
| libtool: link:  cat .libs/libtswrap.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libtswrap.ver
| libtool: link:  echo "local: *; };" >> .libs/libtswrap.ver
| libtool: link:  arm-poky-linux-gnueabi-gcc  -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot -shared  -fPIC -DPIC  .libs/ioctl.o   -ldl  -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong -O2 --sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot -g -O0 -O2 -O2 -g -fcanon-prefix-map -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0 -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot= -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot= -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native= -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0 -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot= -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot= -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native= -Wl,-z -Wl,relro -Wl,-z -Wl,now   -Wl,-soname -Wl,libtswrap.so.1 -Wl,-version-script -Wl,.libs/libtswrap.ver -o .libs/libtswrap.so.1.0.0
| /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/13.1.1/ld:.libs/libtswrap.ver:2: syntax error in VERSION script
| collect2: error: ld returned 1 exit status
| make[1]: Leaving directory '/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests/libtswrap'
| make[1]: *** [Makefile:390: libtswrap.la] Error 1
| make: *** [Makefile:421: all-recursive] Error 1
| make: Leaving directory '/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests'
| ERROR: oe_runmake failed
Quoted 149 lines · On 30/05/2023 15:05:18+0800, [email protected] wrote:

From: Qiu Tingting <[email protected]>

Add a ptest for kbd
- It is taking around 1s to execute with kvm, so added it to PTESTS_FAST
- It contains libkeymap unit tests(27 cases) and libkbdfile unit tests(13 cases)

---
 .../distro/include/ptest-packagelists.inc     |  1 +
 meta/recipes-core/kbd/files/run-ptest         | 11 +++
 meta/recipes-core/kbd/kbd_2.5.1.bb            | 71 ++++++++++++++++++-
 3 files changed, 82 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-core/kbd/files/run-ptest
meta/conf/distro/include/ptest-packagelists.inc +1 -0
index faa9bd6983..366c048cc8 100644
@@ -26,6 +26,7 @@ PTESTS_FAST = "\
     gzip \
     json-c \
     json-glib \
+    kbd \
     libconvert-asn1-perl \
     liberror-perl \
     libgpg-error\
meta/recipes-core/kbd/files/run-ptest new file +11 -0
new file mode 100644
index 0000000000..3b154c4d73
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Define test work dir
+WORKDIR=@PTEST_PATH@/tests/
+
+# Run test
+cd ${WORKDIR}
+
+./testsuite -k unittest | sed -e '/[0-9]:/s/://' \
+    -e '/ ok/s/^/PASS: /;/ FAILED/s/^/FAIL: /;/ skipped/s/^/SKIP: /' \
+    -e '/ ok/s/ ok.*//;/ skipped/s/ skipped.*//;/ FAILED/s/ FAILED.*//'
meta/recipes-core/kbd/kbd_2.5.1.bb +70 -1
index 7662b8f685..ba7236f67c 100644
@@ -5,7 +5,7 @@ DESCRIPTION = "The kbd project contains tools for managing Linux console (Linux
 LICENSE = "GPL-2.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-inherit autotools gettext pkgconfig
+inherit autotools gettext pkgconfig ptest
 
 DEPENDS += "flex-native"
 
@@ -14,6 +14,7 @@ RPROVIDES:${PN} = "console-tools"
 RCONFLICTS:${PN} = "console-tools"
 
 SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \
+           file://run-ptest \
            "
 
 SRC_URI[sha256sum] = "ccdf452387a6380973d2927363e9cbb939fa2068915a6f937ff9d24522024683"
@@ -45,3 +46,71 @@ ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \
 ALTERNATIVE_PRIORITY = "100"
 
 BBCLASSEXTEND = "native"
+
+do_compile_ptest() {
+    # update DATADIR in Makefile
+    sed -i 's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\" \\,g' ${B}/tests/libkeymap/Makefile
+    sed -i 's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\" \\,g' ${B}/tests/helpers/Makefile
+    sed -i 's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\" \\,g' ${B}/tests/libkbdfile/Makefile
+
+    # recompile tests
+    oe_runmake -C ${B}/tests/ clean
+    oe_runmake -C ${B}/tests/
+}
+
+do_install_ptest() {
+    # install files from build directory
+    install -d ${D}${PTEST_PATH}/tests/
+    install --mode=755 ${B}/tests/atconfig ${D}${PTEST_PATH}/tests/
+    install --mode=755 ${B}/tests/testsuite ${D}${PTEST_PATH}/tests/
+    install -d ${D}${PTEST_PATH}/tests/libkeymap/
+    find ${B}/tests/libkeymap/ -type f -not -name "*.o" -not -name "Makefile" \
+        -exec install --mode=755 {} ${D}${PTEST_PATH}/tests/libkeymap/ \;
+    install -d ${D}${PTEST_PATH}/tests/helpers/
+    find ${B}/tests/helpers/ -type f -not -name "*.o" -not -name "Makefile" \
+        -exec install --mode=755 {} ${D}${PTEST_PATH}/tests/helpers/ \;
+    install -d ${D}${PTEST_PATH}/tests/libkbdfile/
+    find ${B}/tests/libkbdfile/ -type f -not -name "*.o" -not -name "Makefile" \
+        -exec install --mode=755 {} ${D}${PTEST_PATH}/tests/libkbdfile/ \;
+    install -d ${D}${PTEST_PATH}/src/
+    install --mode=755 ${B}/src/loadkeys ${D}${PTEST_PATH}/src/
+
+    # install files from src/data directory
+    install -d ${D}${PTEST_PATH}/data/keymaps/i386/qwerty/
+    install ${S}/data/keymaps/i386/qwerty/defkeymap.map ${D}${PTEST_PATH}/data/keymaps/i386/qwerty/
+
+    # install files from src/tests/data directory
+    install -d ${D}${PTEST_PATH}/tests/data/
+    install -d ${D}${PTEST_PATH}/tests/data/libkeymap/
+    install ${S}/tests/data/libkeymap/* ${D}${PTEST_PATH}/tests/data/libkeymap/
+    install -d ${D}${PTEST_PATH}/tests/data/alt-is-meta/
+    install ${S}/tests/data/alt-is-meta/* ${D}${PTEST_PATH}/tests/data/alt-is-meta/
+    install -d ${D}${PTEST_PATH}/tests/data/bkeymap-2.0.4/
+    install ${S}/tests/data/bkeymap-2.0.4/* ${D}${PTEST_PATH}/tests/data/bkeymap-2.0.4/
+    install -d ${D}${PTEST_PATH}/tests/data/dumpkeys-mktable/
+    install ${S}/tests/data/dumpkeys-mktable/* ${D}${PTEST_PATH}/tests/data/dumpkeys-mktable/
+    install -d ${D}${PTEST_PATH}/tests/data/dumpkeys-fulltable/
+    install ${S}/tests/data/dumpkeys-fulltable/* ${D}${PTEST_PATH}/tests/data/dumpkeys-fulltable/
+    install -d ${D}${PTEST_PATH}/tests/data/findfile/test_1/consolefonts/
+    install ${S}/tests/data/findfile/test_1/consolefonts/* ${D}${PTEST_PATH}/tests/data/findfile/test_1/consolefonts/
+    install -d ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/include/
+    install ${S}/tests/data/findfile/test_0/keymaps/test0.map ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/
+    install ${S}/tests/data/findfile/test_0/keymaps/include/* ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/include/
+    install -d ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/include/
+    install ${S}/tests/data/findfile/test_0/keymaps/i386/include/* ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/include/
+    install -d ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwerty/
+    install ${S}/tests/data/findfile/test_0/keymaps/i386/qwerty/* ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwerty/
+    install -d ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwertz/
+    install ${S}/tests/data/findfile/test_0/keymaps/i386/qwertz/* ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwertz/
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/i386/qwerty/
+    install ${S}/tests/data/keymaps/i386/qwerty/* ${D}${PTEST_PATH}/tests/data/keymaps/i386/qwerty/
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/i386/include/
+    install ${S}/tests/data/keymaps/i386/include/* ${D}${PTEST_PATH}/tests/data/keymaps/i386/include/
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/include/
+    install ${S}/tests/data/keymaps/include/* ${D}${PTEST_PATH}/tests/data/keymaps/include/
+
+
+    # update PTEST_PATH in run-ptest and atconfig
+    sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g" ${D}${PTEST_PATH}/run-ptest
+    sed -i -e 's,${B},${PTEST_PATH},g' -e 's,/\.\./kbd-2.5.1,,g' ${D}${PTEST_PATH}/tests/atconfig
+}
Signature · 11 lines
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181901): https://lists.openembedded.org/g/openembedded-core/message/181901
Mute This Topic: https://lists.openembedded.org/mt/99215235/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

I sent in a patch (which was merged) to disable these tests as they do not build with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64.

/Ola

Quoted 285 lines · Alexandre Belloni via lists.openembedded.org

Hello,

This still fails to build:

https://autobuilder.yoctoproject.org/typhoon/#/builders/110/builds/6071/steps/12/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/103/builds/6079/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/48/builds/7219/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/106/builds/6151/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/7244/steps/11/logs/errors

| make[1]: Entering directory '/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests/libtswrap' | /bin/bash ../../libtool --tag=CC --mode=compile
arm-poky-linux-gnueabi-gcc -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a8

(quoted diff) +0 -20
-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -D_TIME_BITS=64
-D_FILE_OFFSET_BITS=64
--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot
-DHAVE_CONFIG_H -I. -I../../../kbd-2.5.1/tests/libtswrap -I../..
-I../../../kbd-2.5.1/tests/libtswrap -I.  -g -O0 -O2
-D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types
-fcanon-prefix-map
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native=
-Waggregate-return -Wall -Wcast-align -Wconversion
-Wdisabled-optimization -Wextra -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes
-Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings -c -o ioctl.lo

../../../kbd-2.5.1/tests/libtswrap/ioctl.c
| libtool: compile: arm-poky-linux-gnueabi-gcc -mfpu=neon

(quoted diff) +0 -21
-mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong -O2
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64
--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot
-DHAVE_CONFIG_H -I. -I../../../kbd-2.5.1/tests/libtswrap
-I../.. -I../../../kbd-2.5.1/tests/libtswrap -I. -g -O0 -O2
-D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types
-fcanon-prefix-map
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native=
-Waggregate-return -Wall -Wcast-align -Wconversion
-Wdisabled-optimization -Wextra -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes
-Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings -c ../../../kbd-2.5.1/tests/libtswrap/ioctl.c -fPIC
-DPIC -o .libs/ioctl.o
| ../../../kbd-2.5.1/tests/libtswrap/ioctl.c: In function 'print_kbsentry':
| ../../../kbd-2.5.1/tests/libtswrap/ioctl.c:257:55: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
|   257 |         dprintf(outfd, "\t\tunsigned char kb_string[%ld] = {\n", sz);
|       |                                                     ~~^          ~~
|       |                                                       |          |
|       |                                                       long int   size_t {aka unsigned int}
|       |                                                     %d
| /bin/bash ../../libtool --tag=CC --mode=link

arm-poky-linux-gnueabi-gcc -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a8

(quoted diff) +0 -28
-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -D_TIME_BITS=64
-D_FILE_OFFSET_BITS=64
--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot
-g -O0 -O2 -D_FORTIFY_SOURCE=2 -O2 -pipe -g
-feliminate-unused-debug-types -fcanon-prefix-map
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native=
-Waggregate-return -Wall -Wcast-align -Wconversion
-Wdisabled-optimization -Wextra -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes
-Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings -export-symbols-regex ^ioctl -version-info 1:0:0
-rpath /nowhere -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
-fcanon-prefix-map
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native=
-Wl,-z,relro,-z,now -o libtswrap.la ioctl.lo -ldl

| libtool: link: arm-poky-linux-gnueabi-gcc-nm .libs/ioctl.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | sed 's/.* //' | sort | uniq > .libs/libtswrap.exp

| libtool: link: /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/hosttools/grep -E -e "^ioctl" ".libs/libtswrap.exp" > ".libs/libtswrap.expT"
| libtool: link: mv -f ".libs/libtswrap.expT" ".libs/libtswrap.exp"
| libtool: link: echo "{ global:" > .libs/libtswrap.ver
| libtool: link:  cat .libs/libtswrap.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libtswrap.ver
| libtool: link:  echo "local: *; };" >> .libs/libtswrap.ver
| libtool: link: arm-poky-linux-gnueabi-gcc -mfpu=neon
(quoted diff) +0 -25
-mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong -O2
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64
--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot
-shared -fPIC -DPIC .libs/ioctl.o -ldl -mfpu=neon -mfloat-abi=hard
-mcpu=cortex-a8 -fstack-protector-strong -O2
--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot
-g -O0 -O2 -O2 -g -fcanon-prefix-map
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native=
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/usr/src/debug/kbd/2.5.1-r0
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/src/debug/kbd/2.5.1-r0
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=
-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot=
-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native=
-Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,libtswrap.so.1
-Wl,-version-script -Wl,.libs/libtswrap.ver -o

.libs/libtswrap.so.1.0.0
| /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/13.1.1/ld:.libs/libtswrap.ver:2:
syntax error in VERSION script

| collect2: error: ld returned 1 exit status
| make[1]: Leaving directory '/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests/libtswrap'
| make[1]: *** [Makefile:390: libtswrap.la] Error 1
| make: *** [Makefile:421: all-recursive] Error 1
| make: Leaving directory '/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests'
| ERROR: oe_runmake failed
Quoted 143 lines · On 30/05/2023 15:05:18+0800, [email protected] wrote:

From: Qiu Tingting <[email protected]>

Add a ptest for kbd
- It is taking around 1s to execute with kvm, so added it to PTESTS_FAST
- It contains libkeymap unit tests(27 cases) and libkbdfile unit tests(13 cases)

---
 .../distro/include/ptest-packagelists.inc     |  1 +
 meta/recipes-core/kbd/files/run-ptest         | 11 +++
 meta/recipes-core/kbd/kbd_2.5.1.bb            | 71 ++++++++++++++++++-
 3 files changed, 82 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-core/kbd/files/run-ptest
meta/conf/distro/include/ptest-packagelists.inc +1 -0
index faa9bd6983..366c048cc8 100644
@@ -26,6 +26,7 @@ PTESTS_FAST = "\
     gzip \
     json-c \
     json-glib \
+    kbd \
     libconvert-asn1-perl \
     liberror-perl \
     libgpg-error\
meta/recipes-core/kbd/files/run-ptest new file +11 -0
new file mode 100644
index 0000000000..3b154c4d73
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Define test work dir
+WORKDIR=@PTEST_PATH@/tests/
+
+# Run test
+cd ${WORKDIR}
+
+./testsuite -k unittest | sed -e '/[0-9]:/s/://' \
+    -e '/ ok/s/^/PASS: /;/ FAILED/s/^/FAIL: /;/ skipped/s/^/SKIP: /' \
+    -e '/ ok/s/ ok.*//;/ skipped/s/ skipped.*//;/ FAILED/s/ FAILED.*//'
meta/recipes-core/kbd/kbd_2.5.1.bb +70 -1
index 7662b8f685..ba7236f67c 100644
@@ -5,7 +5,7 @@ DESCRIPTION = "The kbd project contains tools for managing Linux console (Linux
 LICENSE = "GPL-2.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-inherit autotools gettext pkgconfig
+inherit autotools gettext pkgconfig ptest
 
 DEPENDS += "flex-native"
 
@@ -14,6 +14,7 @@ RPROVIDES:${PN} = "console-tools"
 RCONFLICTS:${PN} = "console-tools"
 
 SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \
+           file://run-ptest \
            "
 
 SRC_URI[sha256sum] = "ccdf452387a6380973d2927363e9cbb939fa2068915a6f937ff9d24522024683"
@@ -45,3 +46,71 @@ ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \
 ALTERNATIVE_PRIORITY = "100"
 
 BBCLASSEXTEND = "native"
+
+do_compile_ptest() {
+    # update DATADIR in Makefile
+    sed -i 's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\" \\,g' ${B}/tests/libkeymap/Makefile
+    sed -i 's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\" \\,g' ${B}/tests/helpers/Makefile
+    sed -i 's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\" \\,g' ${B}/tests/libkbdfile/Makefile
+
+    # recompile tests
+    oe_runmake -C ${B}/tests/ clean
+    oe_runmake -C ${B}/tests/
+}
+
+do_install_ptest() {
+    # install files from build directory
+    install -d ${D}${PTEST_PATH}/tests/
+    install --mode=755 ${B}/tests/atconfig ${D}${PTEST_PATH}/tests/
+    install --mode=755 ${B}/tests/testsuite ${D}${PTEST_PATH}/tests/
+    install -d ${D}${PTEST_PATH}/tests/libkeymap/
+    find ${B}/tests/libkeymap/ -type f -not -name "*.o" -not -name "Makefile" \
+        -exec install --mode=755 {} ${D}${PTEST_PATH}/tests/libkeymap/ \;
+    install -d ${D}${PTEST_PATH}/tests/helpers/
+    find ${B}/tests/helpers/ -type f -not -name "*.o" -not -name "Makefile" \
+        -exec install --mode=755 {} ${D}${PTEST_PATH}/tests/helpers/ \;
+    install -d ${D}${PTEST_PATH}/tests/libkbdfile/
+    find ${B}/tests/libkbdfile/ -type f -not -name "*.o" -not -name "Makefile" \
+        -exec install --mode=755 {} ${D}${PTEST_PATH}/tests/libkbdfile/ \;
+    install -d ${D}${PTEST_PATH}/src/
+    install --mode=755 ${B}/src/loadkeys ${D}${PTEST_PATH}/src/
+
+    # install files from src/data directory
+    install -d ${D}${PTEST_PATH}/data/keymaps/i386/qwerty/
+    install ${S}/data/keymaps/i386/qwerty/defkeymap.map ${D}${PTEST_PATH}/data/keymaps/i386/qwerty/
+
+    # install files from src/tests/data directory
+    install -d ${D}${PTEST_PATH}/tests/data/
+    install -d ${D}${PTEST_PATH}/tests/data/libkeymap/
+    install ${S}/tests/data/libkeymap/* ${D}${PTEST_PATH}/tests/data/libkeymap/
+    install -d ${D}${PTEST_PATH}/tests/data/alt-is-meta/
+    install ${S}/tests/data/alt-is-meta/* ${D}${PTEST_PATH}/tests/data/alt-is-meta/
+    install -d ${D}${PTEST_PATH}/tests/data/bkeymap-2.0.4/
+    install ${S}/tests/data/bkeymap-2.0.4/* ${D}${PTEST_PATH}/tests/data/bkeymap-2.0.4/
+    install -d ${D}${PTEST_PATH}/tests/data/dumpkeys-mktable/
+    install ${S}/tests/data/dumpkeys-mktable/* ${D}${PTEST_PATH}/tests/data/dumpkeys-mktable/
+    install -d ${D}${PTEST_PATH}/tests/data/dumpkeys-fulltable/
+    install ${S}/tests/data/dumpkeys-fulltable/* ${D}${PTEST_PATH}/tests/data/dumpkeys-fulltable/
+    install -d ${D}${PTEST_PATH}/tests/data/findfile/test_1/consolefonts/
+    install ${S}/tests/data/findfile/test_1/consolefonts/* ${D}${PTEST_PATH}/tests/data/findfile/test_1/consolefonts/
+    install -d ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/include/
+    install ${S}/tests/data/findfile/test_0/keymaps/test0.map ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/
+    install ${S}/tests/data/findfile/test_0/keymaps/include/* ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/include/
+    install -d ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/include/
+    install ${S}/tests/data/findfile/test_0/keymaps/i386/include/* ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/include/
+    install -d ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwerty/
+    install ${S}/tests/data/findfile/test_0/keymaps/i386/qwerty/* ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwerty/
+    install -d ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwertz/
+    install ${S}/tests/data/findfile/test_0/keymaps/i386/qwertz/* ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwertz/
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/i386/qwerty/
+    install ${S}/tests/data/keymaps/i386/qwerty/* ${D}${PTEST_PATH}/tests/data/keymaps/i386/qwerty/
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/i386/include/
+    install ${S}/tests/data/keymaps/i386/include/* ${D}${PTEST_PATH}/tests/data/keymaps/i386/include/
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/include/
+    install ${S}/tests/data/keymaps/include/* ${D}${PTEST_PATH}/tests/data/keymaps/include/
+
+
+    # update PTEST_PATH in run-ptest and atconfig
+    sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g" ${D}${PTEST_PATH}/run-ptest
+    sed -i -e 's,${B},${PTEST_PATH},g' -e 's,/\.\./kbd-2.5.1,,g' ${D}${PTEST_PATH}/tests/atconfig
+}
Signature · 1 line
2.25.1
Signature · 1 line
Ola x Nilsson
#3 lore raw

Hi, Ola

Quoted 11 lines

-----Original Message-----
From: Ola x Nilsson <[email protected]>
Sent: Friday, June 9, 2023 3:59 PM
To: [email protected]
Cc: Qiu, Tingting/仇 婷婷 <[email protected]>; Alexandre Belloni via lists.openembedded.org <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH V3] kbd: Add ptest support

Quoted 3 lines

I sent in a patch (which was merged) to disable these tests as they do not build with
-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64.

I guess your patch is "kbd: Don't build tests". Because of building fail, do not support ptest of kbd. Why do not do a little change for supporting ptest? Could you look at the following patch?
https://lists.openembedded.org/g/openembedded-core/topic/patch_v4_kbd_add_ptest/99258821

Best,
Qiu Tingting

Quoted 585 lines

/Ola

Quoted 17 lines · Alexandre Belloni via lists.openembedded.org

Hello,

This still fails to build:

https://autobuilder.yoctoproject.org/typhoon/#/builders/110/builds/607
1/steps/12/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/103/builds/607
9/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/48/builds/7219
/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/106/builds/615
1/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/7244
/steps/11/logs/errors

Quoted 1 line

| make[1]: Entering directory

'/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8 hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests/libtswrap'

Quoted 2 lines

| /bin/bash ../../libtool --tag=CC --mode=compile arm-poky-linux-gnueabi-gcc -mfpu=neon -mfloat-abi=hard

-mcpu=cortex-a8

Review

Quoted 4 lines
(quoted diff) +0 -3
-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -D_TIME_BITS=64
-D_FILE_OFFSET_BITS=64

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor k

Review

Quoted 6 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot

(quoted diff) +0 -4
-DHAVE_CONFIG_H -I. -I../../../kbd-2.5.1/tests/libtswrap -I../..
-I../../../kbd-2.5.1/tests/libtswrap -I.  -g -O0 -O2
-D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types
-fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Review

Quoted 9 lines

ot-native= -Waggregate-return -Wall -Wcast-align -Wconversion

(quoted diff) +0 -4
-Wdisabled-optimization -Wextra -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes
-Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings -c -o ioctl.lo

../../../kbd-2.5.1/tests/libtswrap/ioctl.c
| libtool: compile: arm-poky-linux-gnueabi-gcc -mfpu=neon

(quoted diff) +0 -2
-mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong -O2
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security

-Werror=format-security

Quoted 2 lines

-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor k

Review

Quoted 6 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot

(quoted diff) +0 -4
-DHAVE_CONFIG_H -I. -I../../../kbd-2.5.1/tests/libtswrap
-I../.. -I../../../kbd-2.5.1/tests/libtswrap -I. -g -O0 -O2
-D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types
-fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 8 lines

ot-native= -Waggregate-return -Wall -Wcast-align -Wconversion

(quoted diff) +0 -5
-Wdisabled-optimization -Wextra -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes
-Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings -c ../../../kbd-2.5.1/tests/libtswrap/ioctl.c -fPIC
-DPIC -o .libs/ioctl.o

| ../../../kbd-2.5.1/tests/libtswrap/ioctl.c: In function 'print_kbsentry':
| ../../../kbd-2.5.1/tests/libtswrap/ioctl.c:257:55: warning: format '%ld'

expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]

Quoted 1 line

| 257 | dprintf(outfd, "\t\tunsigned char kb_string[%ld] = {\n",

sz);

Quoted 1 line

| | ~~^

~~

Quoted 1 line

| | |

|

Quoted 1 line

| | long int

size_t {aka unsigned int}

Quoted 3 lines
|       |                                                     %d
| /bin/bash ../../libtool --tag=CC --mode=link

arm-poky-linux-gnueabi-gcc -mfpu=neon -mfloat-abi=hard

-mcpu=cortex-a8

Review

Quoted 4 lines
(quoted diff) +0 -3
-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -D_TIME_BITS=64
-D_FILE_OFFSET_BITS=64

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor k

Review

Quoted 4 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot

(quoted diff) +0 -2
-g -O0 -O2 -D_FORTIFY_SOURCE=2 -O2 -pipe -g
-feliminate-unused-debug-types -fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Review

Quoted 8 lines

ot-native= -Waggregate-return -Wall -Wcast-align -Wconversion

(quoted diff) +0 -6
-Wdisabled-optimization -Wextra -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes
-Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings -export-symbols-regex ^ioctl -version-info 1:0:0
-rpath /nowhere -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
-fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 6 lines

ot-native= -Wl,-z,relro,-z,now -o libtswrap.la ioctl.lo -ldl | libtool: link: arm-poky-linux-gnueabi-gcc-nm .libs/ioctl.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | sed 's/.* //' | sort | uniq > .libs/libtswrap.exp
| libtool: link:

/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/hosttools/grep -E -e "^ioctl" ".libs/libtswrap.exp" > ".libs/libtswrap.expT"

Review

Quoted 8 lines
| libtool: link: mv -f ".libs/libtswrap.expT" ".libs/libtswrap.exp"
| libtool: link: echo "{ global:" > .libs/libtswrap.ver
| libtool: link:  cat .libs/libtswrap.exp | sed -e "s/\(.*\)/\1;/" >>
| .libs/libtswrap.ver
| libtool: link:  echo "local: *; };" >> .libs/libtswrap.ver
| libtool: link: arm-poky-linux-gnueabi-gcc -mfpu=neon
(quoted diff) +0 -2
-mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong -O2
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security

-Werror=format-security

Quoted 2 lines

-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor k

Review

Quoted 4 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot

(quoted diff) +0 -2
-shared -fPIC -DPIC .libs/ioctl.o -ldl -mfpu=neon -mfloat-abi=hard
-mcpu=cortex-a8 -fstack-protector-strong -O2

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor k

Quoted 3 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot -g -O0 -O2 -O2 -g -fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 3 lines

ot-native=
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 5 lines

ot-native= -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,libtswrap.so.1 -Wl,-version-script -Wl,.libs/libtswrap.ver -o .libs/libtswrap.so.1.0.0
|

/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8 hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native/usr/bin/ar m-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-li nux-gnueabi/13.1.1/ld:.libs/libtswrap.ver:2:

Quoted 3 lines

syntax error in VERSION script
| collect2: error: ld returned 1 exit status
| make[1]: Leaving directory

'/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8 hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests/libtswrap'

Quoted 3 lines
| make[1]: *** [Makefile:390: libtswrap.la] Error 1
| make: *** [Makefile:421: all-recursive] Error 1
| make: Leaving directory

'/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8 hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests'

Quoted 16 lines

| ERROR: oe_runmake failed

Quoted 13 lines · On 30/05/2023 15:05:18+0800, [email protected] wrote:

From: Qiu Tingting <[email protected]>

Add a ptest for kbd
- It is taking around 1s to execute with kvm, so added it to PTESTS_FAST
- It contains libkeymap unit tests(27 cases) and libkbdfile unit tests(13 cases)

---
 .../distro/include/ptest-packagelists.inc     |  1 +
 meta/recipes-core/kbd/files/run-ptest         | 11 +++
 meta/recipes-core/kbd/kbd_2.5.1.bb            | 71

++++++++++++++++++-

Quoted 34 lines
Quoted 34 lines
 3 files changed, 82 insertions(+), 1 deletion(-)  create mode 100644

meta/recipes-core/kbd/files/run-ptest

meta/conf/distro/include/ptest-packagelists.inc +1 -0
index faa9bd6983..366c048cc8 100644
@@ -26,6 +26,7 @@ PTESTS_FAST = "\
     gzip \
     json-c \
     json-glib \
+    kbd \
     libconvert-asn1-perl \
     liberror-perl \
     libgpg-error\
meta/recipes-core/kbd/files/run-ptest new file +11 -0
new file mode 100644
index 0000000000..3b154c4d73
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Define test work dir
+WORKDIR=@PTEST_PATH@/tests/
+
+# Run test
+cd ${WORKDIR}
+
+./testsuite -k unittest | sed -e '/[0-9]:/s/://' \
+    -e '/ ok/s/^/PASS: /;/ FAILED/s/^/FAIL: /;/ skipped/s/^/SKIP: /' \
+    -e '/ ok/s/ ok.*//;/ skipped/s/ skipped.*//;/ FAILED/s/ FAILED.*//'
Quoted 8 lines
Quoted 8 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +0 -0
index 7662b8f685..ba7236f67c 100644
@@ -5,7 +5,7 @@ DESCRIPTION = "The kbd project contains tools for

managing Linux console (Linux LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM =

"file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

Quoted 10 lines

meta/recipes-core/kbd/kbd_2.5.1.bb RPROVIDES:${PN} = "console-tools" · line 16

Quoted 10 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +1 -1
-inherit autotools gettext pkgconfig
+inherit autotools gettext pkgconfig ptest
 
 DEPENDS += "flex-native"
@@ -14,6 +14,7 @@ RPROVIDES:${PN} = "console-tools"
 RCONFLICTS:${PN} = "console-tools"
 
 SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz

\

Quoted 4 lines

meta/recipes-core/kbd/kbd_2.5.1.bb RPROVIDES:${PN} = "console-tools"

Quoted 4 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +1 -0
+           file://run-ptest \
            "
 
 SRC_URI[sha256sum] =

"ccdf452387a6380973d2927363e9cbb939fa2068915a6f937ff9d24522024683"

Quoted 8 lines

meta/recipes-core/kbd/kbd_2.5.1.bb ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \

Quoted 8 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +0 -0
@@ -45,3 +46,71 @@ ALTERNATIVE:${PN} = "chvt deallocvt fgconsole

openvt showkey \ ALTERNATIVE_PRIORITY = "100"

BBCLASSEXTEND = "native"

meta/recipes-core/kbd/kbd_2.5.1.bb +4 -0
+
+do_compile_ptest() {
+    # update DATADIR in Makefile
+    sed -i

's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\" \\,g' ${B}/tests/libkeymap/Makefile

Quoted 1 line
Quoted 1 line

+ sed -i

's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\" \\,g' ${B}/tests/helpers/Makefile

Quoted 1 line
Quoted 1 line

+ sed -i

's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\"

Quoted 4 lines
Quoted 4 lines

+\\,g' ${B}/tests/libkbdfile/Makefile

meta/recipes-core/kbd/kbd_2.5.1.bb +3 -0
+
+    # recompile tests
+    oe_runmake -C ${B}/tests/ clean
Quoted 8 lines

meta/recipes-core/kbd/kbd_2.5.1.bb ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \

Quoted 8 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +8 -0
+    oe_runmake -C ${B}/tests/
+}
+
+do_install_ptest() {
+    # install files from build directory
+    install -d ${D}${PTEST_PATH}/tests/
+    install --mode=755 ${B}/tests/atconfig ${D}${PTEST_PATH}/tests/
+    install --mode=755 ${B}/tests/testsuite

${D}${PTEST_PATH}/tests/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/libkeymap/
+    find ${B}/tests/libkeymap/ -type f -not -name "*.o" -not -name

"Makefile" \

Quoted 1 line
Quoted 1 line

+ -exec install --mode=755 {}

${D}${PTEST_PATH}/tests/libkeymap/ \;

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/helpers/
+    find ${B}/tests/helpers/ -type f -not -name "*.o" -not -name

"Makefile" \

Quoted 1 line
Quoted 1 line

+ -exec install --mode=755 {}

${D}${PTEST_PATH}/tests/helpers/ \;

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/libkbdfile/
+    find ${B}/tests/libkbdfile/ -type f -not -name "*.o" -not -name

"Makefile" \

Quoted 1 line
Quoted 1 line

+ -exec install --mode=755 {}

${D}${PTEST_PATH}/tests/libkbdfile/ \;

Quoted 4 lines
Quoted 4 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +4 -0
+    install -d ${D}${PTEST_PATH}/src/
+    install --mode=755 ${B}/src/loadkeys ${D}${PTEST_PATH}/src/
+
+    # install files from src/data directory
Quoted 8 lines

meta/recipes-core/kbd/kbd_2.5.1.bb ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \

Quoted 8 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +8 -0
+    install -d ${D}${PTEST_PATH}/data/keymaps/i386/qwerty/
+    install ${S}/data/keymaps/i386/qwerty/defkeymap.map
+ ${D}${PTEST_PATH}/data/keymaps/i386/qwerty/
+
+    # install files from src/tests/data directory
+    install -d ${D}${PTEST_PATH}/tests/data/
+    install -d ${D}${PTEST_PATH}/tests/data/libkeymap/
+    install ${S}/tests/data/libkeymap/*

${D}${PTEST_PATH}/tests/data/libkeymap/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/alt-is-meta/
+    install ${S}/tests/data/alt-is-meta/*

${D}${PTEST_PATH}/tests/data/alt-is-meta/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/bkeymap-2.0.4/
+    install ${S}/tests/data/bkeymap-2.0.4/*

${D}${PTEST_PATH}/tests/data/bkeymap-2.0.4/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/dumpkeys-mktable/
+    install ${S}/tests/data/dumpkeys-mktable/*

${D}${PTEST_PATH}/tests/data/dumpkeys-mktable/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/dumpkeys-fulltable/
+    install ${S}/tests/data/dumpkeys-fulltable/*

${D}${PTEST_PATH}/tests/data/dumpkeys-fulltable/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_1/consolefonts/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_1/consolefonts/*

${D}${PTEST_PATH}/tests/data/findfile/test_1/consolefonts/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/include/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/test0.map

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/include/*

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/include/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/include/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/i386/include/*

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/include/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwerty/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/i386/qwerty/*

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwerty/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwertz/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/i386/qwertz/*

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwertz/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/i386/qwerty/
+    install ${S}/tests/data/keymaps/i386/qwerty/*

${D}${PTEST_PATH}/tests/data/keymaps/i386/qwerty/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/i386/include/
+    install ${S}/tests/data/keymaps/i386/include/*

${D}${PTEST_PATH}/tests/data/keymaps/i386/include/

Quoted 7 lines

meta/recipes-core/kbd/kbd_2.5.1.bb ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \

Quoted 7 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +7 -0
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/include/
+    install ${S}/tests/data/keymaps/include/*
+ ${D}${PTEST_PATH}/tests/data/keymaps/include/
+
+
+    # update PTEST_PATH in run-ptest and atconfig
+    sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g"

${D}${PTEST_PATH}/run-ptest

Quoted 9 lines
Quoted 9 lines

+ sed -i -e 's,${B},${PTEST_PATH},g' -e 's,/\.\./kbd-2.5.1,,g'
+${D}${PTEST_PATH}/tests/atconfig }
--
2.25.1

--
Ola x Nilsson

#4 lore raw

Hi,

I did not bother to patch the tests for 64 bit time as the they were not run by ptest at that time. They required changes like those in your patch.

I just wanted to give you a hint as to why the tests did not build on the autobuilder: 64-bit time was enabled. You probably don't have that locally, and for now the code will have to build and run for both 32 and 64 bit targets both with and without 64 bit time enabled.

The v4 patch does not seem to have any fixes for 64 bit time, am I missing something?

/Ola

Quoted 600 lines · Tingting Qiu (Fujitsu)

Hi, Ola

Quoted 11 lines

-----Original Message-----
From: Ola x Nilsson <[email protected]>
Sent: Friday, June 9, 2023 3:59 PM
To: [email protected]
Cc: Qiu, Tingting/仇 婷婷 <[email protected]>; Alexandre Belloni via lists.openembedded.org <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH V3] kbd: Add ptest support

Quoted 3 lines

I sent in a patch (which was merged) to disable these tests as they do not build with
-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64.

I guess your patch is "kbd: Don't build tests". Because of building fail, do not support ptest of kbd. Why do not do a little change for supporting ptest? Could you look at the following patch?
https://lists.openembedded.org/g/openembedded-core/topic/patch_v4_kbd_add_ptest/99258821

Best,
Qiu Tingting

Quoted 576 lines

/Ola

Quoted 17 lines · Alexandre Belloni via lists.openembedded.org

Hello,

This still fails to build:

https://autobuilder.yoctoproject.org/typhoon/#/builders/110/builds/607
1/steps/12/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/103/builds/607
9/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/48/builds/7219
/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/106/builds/615
1/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/7244
/steps/11/logs/errors

Quoted 1 line

| make[1]: Entering directory

'/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8 hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests/libtswrap'

Quoted 2 lines

| /bin/bash ../../libtool --tag=CC --mode=compile arm-poky-linux-gnueabi-gcc -mfpu=neon -mfloat-abi=hard

-mcpu=cortex-a8

Review

Quoted 4 lines
(quoted diff) +0 -3
-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -D_TIME_BITS=64
-D_FILE_OFFSET_BITS=64

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor k

Review

Quoted 6 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot

(quoted diff) +0 -4
-DHAVE_CONFIG_H -I. -I../../../kbd-2.5.1/tests/libtswrap -I../..
-I../../../kbd-2.5.1/tests/libtswrap -I.  -g -O0 -O2
-D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types
-fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Review

Quoted 9 lines

ot-native= -Waggregate-return -Wall -Wcast-align -Wconversion

(quoted diff) +0 -4
-Wdisabled-optimization -Wextra -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes
-Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings -c -o ioctl.lo

../../../kbd-2.5.1/tests/libtswrap/ioctl.c
| libtool: compile: arm-poky-linux-gnueabi-gcc -mfpu=neon

(quoted diff) +0 -2
-mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong -O2
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security

-Werror=format-security

Quoted 2 lines

-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor k

Review

Quoted 6 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot

(quoted diff) +0 -4
-DHAVE_CONFIG_H -I. -I../../../kbd-2.5.1/tests/libtswrap
-I../.. -I../../../kbd-2.5.1/tests/libtswrap -I. -g -O0 -O2
-D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types
-fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 8 lines

ot-native= -Waggregate-return -Wall -Wcast-align -Wconversion

(quoted diff) +0 -5
-Wdisabled-optimization -Wextra -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes
-Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings -c ../../../kbd-2.5.1/tests/libtswrap/ioctl.c -fPIC
-DPIC -o .libs/ioctl.o

| ../../../kbd-2.5.1/tests/libtswrap/ioctl.c: In function 'print_kbsentry':
| ../../../kbd-2.5.1/tests/libtswrap/ioctl.c:257:55: warning: format '%ld'

expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]

Quoted 1 line

| 257 | dprintf(outfd, "\t\tunsigned char kb_string[%ld] = {\n",

sz);

Quoted 1 line

| | ~~^

~~

Quoted 1 line

| | |

|

Quoted 1 line

| | long int

size_t {aka unsigned int}

Quoted 3 lines
|       |                                                     %d
| /bin/bash ../../libtool --tag=CC --mode=link

arm-poky-linux-gnueabi-gcc -mfpu=neon -mfloat-abi=hard

-mcpu=cortex-a8

Review

Quoted 4 lines
(quoted diff) +0 -3
-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -D_TIME_BITS=64
-D_FILE_OFFSET_BITS=64

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor k

Review

Quoted 4 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot

(quoted diff) +0 -2
-g -O0 -O2 -D_FORTIFY_SOURCE=2 -O2 -pipe -g
-feliminate-unused-debug-types -fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Review

Quoted 8 lines

ot-native= -Waggregate-return -Wall -Wcast-align -Wconversion

(quoted diff) +0 -6
-Wdisabled-optimization -Wextra -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes
-Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings -export-symbols-regex ^ioctl -version-info 1:0:0
-rpath /nowhere -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
-fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 6 lines

ot-native= -Wl,-z,relro,-z,now -o libtswrap.la ioctl.lo -ldl | libtool: link: arm-poky-linux-gnueabi-gcc-nm .libs/ioctl.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | sed 's/.* //' | sort | uniq > .libs/libtswrap.exp
| libtool: link:

/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/hosttools/grep -E -e "^ioctl" ".libs/libtswrap.exp" > ".libs/libtswrap.expT"

Review

Quoted 8 lines
| libtool: link: mv -f ".libs/libtswrap.expT" ".libs/libtswrap.exp"
| libtool: link: echo "{ global:" > .libs/libtswrap.ver
| libtool: link:  cat .libs/libtswrap.exp | sed -e "s/\(.*\)/\1;/" >>
| .libs/libtswrap.ver
| libtool: link:  echo "local: *; };" >> .libs/libtswrap.ver
| libtool: link: arm-poky-linux-gnueabi-gcc -mfpu=neon
(quoted diff) +0 -2
-mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong -O2
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security

-Werror=format-security

Quoted 2 lines

-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor k

Review

Quoted 4 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot

(quoted diff) +0 -2
-shared -fPIC -DPIC .libs/ioctl.o -ldl -mfpu=neon -mfloat-abi=hard
-mcpu=cortex-a8 -fstack-protector-strong -O2

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor k

Quoted 3 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot -g -O0 -O2 -O2 -g -fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 3 lines

ot-native=
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysro

Quoted 5 lines

ot-native= -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,libtswrap.so.1 -Wl,-version-script -Wl,.libs/libtswrap.ver -o .libs/libtswrap.so.1.0.0
|

/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8 hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native/usr/bin/ar m-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-li nux-gnueabi/13.1.1/ld:.libs/libtswrap.ver:2:

Quoted 3 lines

syntax error in VERSION script
| collect2: error: ld returned 1 exit status
| make[1]: Leaving directory

'/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8 hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests/libtswrap'

Quoted 3 lines
| make[1]: *** [Makefile:390: libtswrap.la] Error 1
| make: *** [Makefile:421: all-recursive] Error 1
| make: Leaving directory

'/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8 hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests'

Quoted 16 lines

| ERROR: oe_runmake failed

Quoted 13 lines · On 30/05/2023 15:05:18+0800, [email protected] wrote:

From: Qiu Tingting <[email protected]>

Add a ptest for kbd
- It is taking around 1s to execute with kvm, so added it to PTESTS_FAST
- It contains libkeymap unit tests(27 cases) and libkbdfile unit tests(13 cases)

---
 .../distro/include/ptest-packagelists.inc     |  1 +
 meta/recipes-core/kbd/files/run-ptest         | 11 +++
 meta/recipes-core/kbd/kbd_2.5.1.bb            | 71

++++++++++++++++++-

Quoted 34 lines
Quoted 34 lines
 3 files changed, 82 insertions(+), 1 deletion(-)  create mode 100644

meta/recipes-core/kbd/files/run-ptest

meta/conf/distro/include/ptest-packagelists.inc +1 -0
index faa9bd6983..366c048cc8 100644
@@ -26,6 +26,7 @@ PTESTS_FAST = "\
     gzip \
     json-c \
     json-glib \
+    kbd \
     libconvert-asn1-perl \
     liberror-perl \
     libgpg-error\
meta/recipes-core/kbd/files/run-ptest new file +11 -0
new file mode 100644
index 0000000000..3b154c4d73
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Define test work dir
+WORKDIR=@PTEST_PATH@/tests/
+
+# Run test
+cd ${WORKDIR}
+
+./testsuite -k unittest | sed -e '/[0-9]:/s/://' \
+    -e '/ ok/s/^/PASS: /;/ FAILED/s/^/FAIL: /;/ skipped/s/^/SKIP: /' \
+    -e '/ ok/s/ ok.*//;/ skipped/s/ skipped.*//;/ FAILED/s/ FAILED.*//'
Quoted 8 lines
Quoted 8 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +0 -0
index 7662b8f685..ba7236f67c 100644
@@ -5,7 +5,7 @@ DESCRIPTION = "The kbd project contains tools for

managing Linux console (Linux LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM =

"file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

Quoted 10 lines

meta/recipes-core/kbd/kbd_2.5.1.bb RPROVIDES:${PN} = "console-tools" · line 16

Quoted 10 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +1 -1
-inherit autotools gettext pkgconfig
+inherit autotools gettext pkgconfig ptest
 
 DEPENDS += "flex-native"
@@ -14,6 +14,7 @@ RPROVIDES:${PN} = "console-tools"
 RCONFLICTS:${PN} = "console-tools"
 
 SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz

\

Quoted 4 lines

meta/recipes-core/kbd/kbd_2.5.1.bb RPROVIDES:${PN} = "console-tools"

Quoted 4 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +1 -0
+           file://run-ptest \
            "
 
 SRC_URI[sha256sum] =

"ccdf452387a6380973d2927363e9cbb939fa2068915a6f937ff9d24522024683"

Quoted 8 lines

meta/recipes-core/kbd/kbd_2.5.1.bb ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \

Quoted 8 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +0 -0
@@ -45,3 +46,71 @@ ALTERNATIVE:${PN} = "chvt deallocvt fgconsole

openvt showkey \ ALTERNATIVE_PRIORITY = "100"

BBCLASSEXTEND = "native"

meta/recipes-core/kbd/kbd_2.5.1.bb +4 -0
+
+do_compile_ptest() {
+    # update DATADIR in Makefile
+    sed -i

's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\" \\,g' ${B}/tests/libkeymap/Makefile

Quoted 1 line
Quoted 1 line

+ sed -i

's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\" \\,g' ${B}/tests/helpers/Makefile

Quoted 1 line
Quoted 1 line

+ sed -i

's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\"

Quoted 4 lines
Quoted 4 lines

+\\,g' ${B}/tests/libkbdfile/Makefile

meta/recipes-core/kbd/kbd_2.5.1.bb +3 -0
+
+    # recompile tests
+    oe_runmake -C ${B}/tests/ clean
Quoted 8 lines

meta/recipes-core/kbd/kbd_2.5.1.bb ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \

Quoted 8 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +8 -0
+    oe_runmake -C ${B}/tests/
+}
+
+do_install_ptest() {
+    # install files from build directory
+    install -d ${D}${PTEST_PATH}/tests/
+    install --mode=755 ${B}/tests/atconfig ${D}${PTEST_PATH}/tests/
+    install --mode=755 ${B}/tests/testsuite

${D}${PTEST_PATH}/tests/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/libkeymap/
+    find ${B}/tests/libkeymap/ -type f -not -name "*.o" -not -name

"Makefile" \

Quoted 1 line
Quoted 1 line

+ -exec install --mode=755 {}

${D}${PTEST_PATH}/tests/libkeymap/ \;

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/helpers/
+    find ${B}/tests/helpers/ -type f -not -name "*.o" -not -name

"Makefile" \

Quoted 1 line
Quoted 1 line

+ -exec install --mode=755 {}

${D}${PTEST_PATH}/tests/helpers/ \;

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/libkbdfile/
+    find ${B}/tests/libkbdfile/ -type f -not -name "*.o" -not -name

"Makefile" \

Quoted 1 line
Quoted 1 line

+ -exec install --mode=755 {}

${D}${PTEST_PATH}/tests/libkbdfile/ \;

Quoted 4 lines
Quoted 4 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +4 -0
+    install -d ${D}${PTEST_PATH}/src/
+    install --mode=755 ${B}/src/loadkeys ${D}${PTEST_PATH}/src/
+
+    # install files from src/data directory
Quoted 8 lines

meta/recipes-core/kbd/kbd_2.5.1.bb ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \

Quoted 8 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +8 -0
+    install -d ${D}${PTEST_PATH}/data/keymaps/i386/qwerty/
+    install ${S}/data/keymaps/i386/qwerty/defkeymap.map
+ ${D}${PTEST_PATH}/data/keymaps/i386/qwerty/
+
+    # install files from src/tests/data directory
+    install -d ${D}${PTEST_PATH}/tests/data/
+    install -d ${D}${PTEST_PATH}/tests/data/libkeymap/
+    install ${S}/tests/data/libkeymap/*

${D}${PTEST_PATH}/tests/data/libkeymap/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/alt-is-meta/
+    install ${S}/tests/data/alt-is-meta/*

${D}${PTEST_PATH}/tests/data/alt-is-meta/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/bkeymap-2.0.4/
+    install ${S}/tests/data/bkeymap-2.0.4/*

${D}${PTEST_PATH}/tests/data/bkeymap-2.0.4/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/dumpkeys-mktable/
+    install ${S}/tests/data/dumpkeys-mktable/*

${D}${PTEST_PATH}/tests/data/dumpkeys-mktable/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/dumpkeys-fulltable/
+    install ${S}/tests/data/dumpkeys-fulltable/*

${D}${PTEST_PATH}/tests/data/dumpkeys-fulltable/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_1/consolefonts/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_1/consolefonts/*

${D}${PTEST_PATH}/tests/data/findfile/test_1/consolefonts/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/include/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/test0.map

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/include/*

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/include/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/include/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/i386/include/*

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/include/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwerty/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/i386/qwerty/*

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwerty/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwertz/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/i386/qwertz/*

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwertz/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/i386/qwerty/
+    install ${S}/tests/data/keymaps/i386/qwerty/*

${D}${PTEST_PATH}/tests/data/keymaps/i386/qwerty/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/i386/include/
+    install ${S}/tests/data/keymaps/i386/include/*

${D}${PTEST_PATH}/tests/data/keymaps/i386/include/

Quoted 7 lines

meta/recipes-core/kbd/kbd_2.5.1.bb ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \

Quoted 7 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +7 -0
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/include/
+    install ${S}/tests/data/keymaps/include/*
+ ${D}${PTEST_PATH}/tests/data/keymaps/include/
+
+
+    # update PTEST_PATH in run-ptest and atconfig
+    sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g"

${D}${PTEST_PATH}/run-ptest

Quoted 4 lines
Quoted 4 lines

+ sed -i -e 's,${B},${PTEST_PATH},g' -e 's,/\.\./kbd-2.5.1,,g'
+${D}${PTEST_PATH}/tests/atconfig }
--
2.25.1

#5 lore raw

Hi, Ola

Thanks for your reply, and I have understood why 32-bit did not compile the tests. The v4 patch is just for 32bit, because 64 bit has no problem in building and running tests.

Best,
Qiu Tingting

Quoted 790 lines

-----Original Message-----
From: Ola x Nilsson <[email protected]>
Sent: Friday, June 9, 2023 4:56 PM
To: Qiu, Tingting/仇 婷婷 <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [OE-core] [PATCH V3] kbd: Add ptest support

Hi,

I did not bother to patch the tests for 64 bit time as the they were not run by ptest at that time. They required changes like those in your patch.

I just wanted to give you a hint as to why the tests did not build on the
autobuilder: 64-bit time was enabled. You probably don't have that locally, and for now the code will have to build and run for both 32 and 64 bit targets both with and without 64 bit time enabled.

The v4 patch does not seem to have any fixes for 64 bit time, am I missing something?

/Ola

Quoted 13 lines · Tingting Qiu (Fujitsu)

Hi, Ola

Quoted 11 lines

-----Original Message-----
From: Ola x Nilsson <[email protected]>
Sent: Friday, June 9, 2023 3:59 PM
To: [email protected]
Cc: Qiu, Tingting/仇 婷婷 <[email protected]>; Alexandre Belloni via lists.openembedded.org <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH V3] kbd: Add ptest support

Quoted 8 lines
Quoted 3 lines

I sent in a patch (which was merged) to disable these tests as they do not build with
-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64.

I guess your patch is "kbd: Don't build tests". Because of building fail, do not support ptest of kbd. Why do not do a little change for supporting ptest? Could you look at the following patch?

https://lists.openembedded.org/g/openembedded-core/topic/patch_v4_kbd
_

Quoted 33 lines

add_ptest/99258821

Best,
Qiu Tingting

Quoted 29 lines

/Ola

Quoted 23 lines · Alexandre Belloni via lists.openembedded.org

Hello,

This still fails to build:

https://autobuilder.yoctoproject.org/typhoon/#/builders/110/builds/
607
1/steps/12/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/103/builds/
607
9/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/48/builds/7
219
/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/106/builds/
615
1/steps/11/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/7
244
/steps/11/logs/errors

| make[1]: Entering directory

'/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa

Quoted 9 lines
Quoted 9 lines

8 hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests/libtswrap'

Quoted 2 lines

| /bin/bash ../../libtool --tag=CC --mode=compile arm-poky-linux-gnueabi-gcc -mfpu=neon -mfloat-abi=hard

-mcpu=cortex-a8

Review

Quoted 4 lines
(quoted diff) +0 -3
-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -D_TIME_BITS=64
-D_FILE_OFFSET_BITS=64

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor

Quoted 5 lines
Quoted 5 lines

k

Review

Quoted 4 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot

(quoted diff) +0 -3
-DHAVE_CONFIG_H -I. -I../../../kbd-2.5.1/tests/libtswrap -I../..
-I../../../kbd-2.5.1/tests/libtswrap -I.  -g -O0 -O2
-D_FORTIFY_SOURCE=2 -O2 -pipe -g

-feliminate-unused-debug-types

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

-fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/

Quoted 4 lines
Quoted 4 lines

u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/

Quoted 4 lines
Quoted 4 lines

u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/

Quoted 4 lines
Quoted 4 lines

s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/

Quoted 4 lines
Quoted 4 lines

s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 4 lines
Quoted 4 lines

o

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 4 lines
Quoted 4 lines

o

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 11 lines
Quoted 11 lines

o

Review

Quoted 9 lines

ot-native= -Waggregate-return -Wall -Wcast-align -Wconversion

(quoted diff) +0 -4
-Wdisabled-optimization -Wextra -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes
-Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings -c -o ioctl.lo

../../../kbd-2.5.1/tests/libtswrap/ioctl.c
| libtool: compile: arm-poky-linux-gnueabi-gcc -mfpu=neon

(quoted diff) +0 -2
-mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong -O2
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security

-Werror=format-security

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor

Quoted 5 lines
Quoted 5 lines

k

Review

Quoted 4 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot

(quoted diff) +0 -3
-DHAVE_CONFIG_H -I. -I../../../kbd-2.5.1/tests/libtswrap
-I../.. -I../../../kbd-2.5.1/tests/libtswrap -I. -g -O0 -O2
-D_FORTIFY_SOURCE=2 -O2 -pipe -g

-feliminate-unused-debug-types

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

-fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/

Quoted 4 lines
Quoted 4 lines

u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/

Quoted 4 lines
Quoted 4 lines

u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/

Quoted 4 lines
Quoted 4 lines

s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/

Quoted 4 lines
Quoted 4 lines

s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 4 lines
Quoted 4 lines

o

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 4 lines
Quoted 4 lines

o

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 11 lines
Quoted 11 lines

o

Quoted 8 lines

ot-native= -Waggregate-return -Wall -Wcast-align -Wconversion

(quoted diff) +0 -5
-Wdisabled-optimization -Wextra -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes
-Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings -c ../../../kbd-2.5.1/tests/libtswrap/ioctl.c -fPIC
-DPIC -o .libs/ioctl.o

| ../../../kbd-2.5.1/tests/libtswrap/ioctl.c: In function 'print_kbsentry':
| ../../../kbd-2.5.1/tests/libtswrap/ioctl.c:257:55: warning: format '%ld'

expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]

Quoted 1 line
Quoted 1 line
Quoted 1 line

| 257 | dprintf(outfd, "\t\tunsigned char kb_string[%ld] =

{\n",

Quoted 6 lines
Quoted 6 lines

sz);

Quoted 1 line

| | ~~^

~~

Quoted 1 line

| | |

|

Quoted 1 line

| | long

int

Quoted 10 lines
Quoted 10 lines

size_t {aka unsigned int}

Quoted 3 lines
|       |                                                     %d
| /bin/bash ../../libtool --tag=CC --mode=link

arm-poky-linux-gnueabi-gcc -mfpu=neon -mfloat-abi=hard

-mcpu=cortex-a8

Review

Quoted 4 lines
(quoted diff) +0 -3
-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -D_TIME_BITS=64
-D_FILE_OFFSET_BITS=64

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor

Quoted 6 lines
Quoted 6 lines

k

Review

Quoted 4 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot

(quoted diff) +0 -2
-g -O0 -O2 -D_FORTIFY_SOURCE=2 -O2 -pipe -g
-feliminate-unused-debug-types -fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/

Quoted 4 lines
Quoted 4 lines

u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/

Quoted 4 lines
Quoted 4 lines

u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/

Quoted 4 lines
Quoted 4 lines

s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/

Quoted 4 lines
Quoted 4 lines

s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 4 lines
Quoted 4 lines

o

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 4 lines
Quoted 4 lines

o

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 10 lines
Quoted 10 lines

o

Review

Quoted 8 lines

ot-native= -Waggregate-return -Wall -Wcast-align -Wconversion

(quoted diff) +0 -6
-Wdisabled-optimization -Wextra -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes
-Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings -export-symbols-regex ^ioctl -version-info 1:0:0
-rpath /nowhere -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
-fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/

Quoted 4 lines
Quoted 4 lines

u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/

Quoted 4 lines
Quoted 4 lines

u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/

Quoted 4 lines
Quoted 4 lines

s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/

Quoted 4 lines
Quoted 4 lines

s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 4 lines
Quoted 4 lines

o

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 4 lines
Quoted 4 lines

o

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 10 lines
Quoted 10 lines

o

Quoted 8 lines

ot-native= -Wl,-z,relro,-z,now -o libtswrap.la ioctl.lo -ldl

| libtool: link: arm-poky-linux-gnueabi-gcc-nm .libs/ioctl.o | sed
| -n

-e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | sed
's/.* //' | sort | uniq > .libs/libtswrap.exp
| libtool: link:

/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/hosttools/gre

Quoted 10 lines
Quoted 10 lines

p -E -e "^ioctl" ".libs/libtswrap.exp" > ".libs/libtswrap.expT"

Review

Quoted 8 lines
| libtool: link: mv -f ".libs/libtswrap.expT" ".libs/libtswrap.exp"
| libtool: link: echo "{ global:" > .libs/libtswrap.ver
| libtool: link:  cat .libs/libtswrap.exp | sed -e "s/\(.*\)/\1;/"
| >> .libs/libtswrap.ver
| libtool: link:  echo "local: *; };" >> .libs/libtswrap.ver
| libtool: link: arm-poky-linux-gnueabi-gcc -mfpu=neon
(quoted diff) +0 -2
-mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong -O2
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security

-Werror=format-security

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor

Quoted 6 lines
Quoted 6 lines

k

Review

Quoted 4 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot

(quoted diff) +0 -2
-shared -fPIC -DPIC .libs/ioctl.o -ldl -mfpu=neon -mfloat-abi=hard
-mcpu=cortex-a8 -fstack-protector-strong -O2

--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/wor

Quoted 5 lines
Quoted 5 lines

k

Quoted 3 lines

/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot -g -O0 -O2 -O2 -g -fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/

Quoted 4 lines
Quoted 4 lines

u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/

Quoted 4 lines
Quoted 4 lines

u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/

Quoted 4 lines
Quoted 4 lines

s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/

Quoted 4 lines
Quoted 4 lines

s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 4 lines
Quoted 4 lines

o

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 4 lines
Quoted 4 lines

o

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 5 lines
Quoted 5 lines

o

Quoted 3 lines

ot-native=
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/

Quoted 4 lines
Quoted 4 lines

u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/kbd-2.5.1=/

Quoted 4 lines
Quoted 4 lines

u

Quoted 2 lines

sr/src/debug/kbd/2.5.1-r0

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/

Quoted 4 lines
Quoted 4 lines

s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build=/usr/

Quoted 4 lines
Quoted 4 lines

s

Quoted 2 lines

rc/debug/kbd/2.5.1-r0

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 4 lines
Quoted 4 lines

o

Quoted 2 lines

ot=

-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 4 lines
Quoted 4 lines

o

Quoted 2 lines

ot=

-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/buil

Quoted 3 lines
Quoted 3 lines

d

Quoted 1 line

/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysr

Quoted 7 lines
Quoted 7 lines

o

Quoted 5 lines

ot-native= -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,libtswrap.so.1 -Wl,-version-script -Wl,.libs/libtswrap.ver -o .libs/libtswrap.so.1.0.0
|

/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8

Quoted 3 lines
Quoted 3 lines

hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/recipe-sysroot-native/usr/bin /ar

m-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-pok

Quoted 6 lines
Quoted 6 lines

y-li
nux-gnueabi/13.1.1/ld:.libs/libtswrap.ver:2:

Quoted 3 lines

syntax error in VERSION script
| collect2: error: ld returned 1 exit status
| make[1]: Leaving directory

'/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa

Quoted 5 lines
Quoted 5 lines

8 hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests/libtswrap'

Quoted 3 lines
| make[1]: *** [Makefile:390: libtswrap.la] Error 1
| make: *** [Makefile:421: all-recursive] Error 1
| make: Leaving directory

'/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa

Quoted 43 lines
Quoted 43 lines

8 hf-neon-poky-linux-gnueabi/kbd/2.5.1-r0/build/tests'

Quoted 16 lines

| ERROR: oe_runmake failed

Quoted 13 lines · On 30/05/2023 15:05:18+0800, [email protected] wrote:

From: Qiu Tingting <[email protected]>

Add a ptest for kbd
- It is taking around 1s to execute with kvm, so added it to PTESTS_FAST
- It contains libkeymap unit tests(27 cases) and libkbdfile unit tests(13 cases)

---
 .../distro/include/ptest-packagelists.inc     |  1 +
 meta/recipes-core/kbd/files/run-ptest         | 11 +++
 meta/recipes-core/kbd/kbd_2.5.1.bb            | 71

++++++++++++++++++-

Quoted 25 lines
Quoted 25 lines
 3 files changed, 82 insertions(+), 1 deletion(-)  create mode

100644 meta/recipes-core/kbd/files/run-ptest

meta/conf/distro/include/ptest-packagelists.inc +1 -0
index faa9bd6983..366c048cc8 100644
@@ -26,6 +26,7 @@ PTESTS_FAST = "\
     gzip \
     json-c \
     json-glib \
+    kbd \
     libconvert-asn1-perl \
     liberror-perl \
     libgpg-error\
meta/recipes-core/kbd/files/run-ptest new file +2 -0
new file mode 100644
index 0000000000..3b154c4d73
@@ -0,0 +1,11 @@
+#!/bin/sh
+
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta/recipes-core/kbd/files/run-ptest

Quoted 8 lines
meta/recipes-core/kbd/files/run-ptest new file +8 -0
+# Define test work dir
+WORKDIR=@PTEST_PATH@/tests/
+
+# Run test
+cd ${WORKDIR}
+
+./testsuite -k unittest | sed -e '/[0-9]:/s/://' \
+    -e '/ ok/s/^/PASS: /;/ FAILED/s/^/FAIL: /;/ skipped/s/^/SKIP: /'

\

Quoted 1 line
Quoted 1 line
Quoted 1 line

meta/recipes-core/kbd/files/run-ptest line 11

Quoted 1 line
meta/recipes-core/kbd/files/run-ptest new file +1 -0
+    -e '/ ok/s/ ok.*//;/ skipped/s/ skipped.*//;/ FAILED/s/

FAILED.*//'

Quoted 13 lines
Quoted 13 lines
Quoted 8 lines
Quoted 8 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +0 -0
index 7662b8f685..ba7236f67c 100644
@@ -5,7 +5,7 @@ DESCRIPTION = "The kbd project contains tools for

managing Linux console (Linux LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM =

"file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

Quoted 4 lines
Quoted 4 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +1 -1
-inherit autotools gettext pkgconfig
+inherit autotools gettext pkgconfig ptest
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

meta/recipes-core/kbd/kbd_2.5.1.bb RPROVIDES:${PN} = "console-tools" · line 16

Quoted 6 lines

DEPENDS += "flex-native"

meta/recipes-core/kbd/kbd_2.5.1.bb +0 -0
@@ -14,6 +14,7 @@ RPROVIDES:${PN} = "console-tools"
 RCONFLICTS:${PN} = "console-tools"
 
 SRC_URI =

"${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz

Quoted 6 lines
Quoted 6 lines

\

Quoted 4 lines
Quoted 4 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +1 -0
+           file://run-ptest \
            "
 
 SRC_URI[sha256sum] =

"ccdf452387a6380973d2927363e9cbb939fa2068915a6f937ff9d24522024683"

Quoted 15 lines
Quoted 15 lines
Quoted 8 lines

meta/recipes-core/kbd/kbd_2.5.1.bb ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \

Quoted 8 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +0 -0
@@ -45,3 +46,71 @@ ALTERNATIVE:${PN} = "chvt deallocvt fgconsole

openvt showkey \ ALTERNATIVE_PRIORITY = "100"

BBCLASSEXTEND = "native"

meta/recipes-core/kbd/kbd_2.5.1.bb +4 -0
+
+do_compile_ptest() {
+    # update DATADIR in Makefile
+    sed -i

's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\" \\,g' ${B}/tests/libkeymap/Makefile

Quoted 1 line
Quoted 1 line

+ sed -i

's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\" \\,g' ${B}/tests/helpers/Makefile

Quoted 1 line
Quoted 1 line

+ sed -i

's,-DDATADIR=.*,-DDATADIR=\\\"${PTEST_PATH}/tests\\\"

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

meta/recipes-core/kbd/kbd_2.5.1.bb ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \

Quoted 11 lines

+\\,g' ${B}/tests/libkbdfile/Makefile

meta/recipes-core/kbd/kbd_2.5.1.bb +10 -0
+
+    # recompile tests
+    oe_runmake -C ${B}/tests/ clean
+    oe_runmake -C ${B}/tests/
+}
+
+do_install_ptest() {
+    # install files from build directory
+    install -d ${D}${PTEST_PATH}/tests/
+    install --mode=755 ${B}/tests/atconfig

${D}${PTEST_PATH}/tests/

Quoted 13 lines
Quoted 13 lines
Quoted 1 line
Quoted 1 line

+ install --mode=755 ${B}/tests/testsuite

${D}${PTEST_PATH}/tests/

Quoted 3 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 3 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +3 -0
+    install -d ${D}${PTEST_PATH}/tests/libkeymap/
+    find ${B}/tests/libkeymap/ -type f -not -name "*.o" -not
+ -name

"Makefile" \

Quoted 1 line
Quoted 1 line

+ -exec install --mode=755 {}

${D}${PTEST_PATH}/tests/libkeymap/ \;

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/helpers/
+    find ${B}/tests/helpers/ -type f -not -name "*.o" -not -name

"Makefile" \

Quoted 1 line
Quoted 1 line

+ -exec install --mode=755 {}

${D}${PTEST_PATH}/tests/helpers/ \;

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 3 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +3 -0
+    install -d ${D}${PTEST_PATH}/tests/libkbdfile/
+    find ${B}/tests/libkbdfile/ -type f -not -name "*.o" -not
+ -name

"Makefile" \

Quoted 1 line
Quoted 1 line

+ -exec install --mode=755 {}

${D}${PTEST_PATH}/tests/libkbdfile/ \;

Quoted 2 lines
Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/src/
+    install --mode=755 ${B}/src/loadkeys

${D}${PTEST_PATH}/src/

Quoted 39 lines
Quoted 39 lines
Quoted 10 lines

meta/recipes-core/kbd/kbd_2.5.1.bb ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \

Quoted 10 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +10 -0
+
+    # install files from src/data directory
+    install -d ${D}${PTEST_PATH}/data/keymaps/i386/qwerty/
+    install ${S}/data/keymaps/i386/qwerty/defkeymap.map
+ ${D}${PTEST_PATH}/data/keymaps/i386/qwerty/
+
+    # install files from src/tests/data directory
+    install -d ${D}${PTEST_PATH}/tests/data/
+    install -d ${D}${PTEST_PATH}/tests/data/libkeymap/
+    install ${S}/tests/data/libkeymap/*

${D}${PTEST_PATH}/tests/data/libkeymap/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/alt-is-meta/
+    install ${S}/tests/data/alt-is-meta/*

${D}${PTEST_PATH}/tests/data/alt-is-meta/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/bkeymap-2.0.4/
+    install ${S}/tests/data/bkeymap-2.0.4/*

${D}${PTEST_PATH}/tests/data/bkeymap-2.0.4/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/dumpkeys-mktable/
+    install ${S}/tests/data/dumpkeys-mktable/*

${D}${PTEST_PATH}/tests/data/dumpkeys-mktable/

Quoted 2 lines

meta/recipes-core/kbd/kbd_2.5.1.bb

Quoted 2 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +2 -0
+    install -d ${D}${PTEST_PATH}/tests/data/dumpkeys-fulltable/
+    install ${S}/tests/data/dumpkeys-fulltable/*

${D}${PTEST_PATH}/tests/data/dumpkeys-fulltable/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_1/consolefonts/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_1/consolefonts/*

${D}${PTEST_PATH}/tests/data/findfile/test_1/consolefonts/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/include/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/test0.map

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/include/*

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/include/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/include/

Quoted 2 lines
Quoted 2 lines

+ install
+ ${S}/tests/data/findfile/test_0/keymaps/i386/include/*

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/include/

Quoted 1 line
Quoted 1 line

+ install -d

Quoted 8 lines
Quoted 8 lines

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwerty/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/i386/qwerty/*

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwerty/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwertz/

Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/findfile/test_0/keymaps/i386/qwertz/*

${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/i386/qwertz/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/keymaps/i386/qwerty/

Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/keymaps/i386/qwerty/*

${D}${PTEST_PATH}/tests/data/keymaps/i386/qwerty/

Quoted 1 line
Quoted 1 line

+ install -d

${D}${PTEST_PATH}/tests/data/keymaps/i386/include/

Quoted 14 lines
Quoted 14 lines
Quoted 1 line
Quoted 1 line

+ install ${S}/tests/data/keymaps/i386/include/*

${D}${PTEST_PATH}/tests/data/keymaps/i386/include/

Quoted 7 lines

meta/recipes-core/kbd/kbd_2.5.1.bb ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \

Quoted 7 lines
meta/recipes-core/kbd/kbd_2.5.1.bb +7 -0
+    install -d ${D}${PTEST_PATH}/tests/data/keymaps/include/
+    install ${S}/tests/data/keymaps/include/*
+ ${D}${PTEST_PATH}/tests/data/keymaps/include/
+
+
+    # update PTEST_PATH in run-ptest and atconfig
+    sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g"

${D}${PTEST_PATH}/run-ptest

Quoted 4 lines
Quoted 4 lines

+ sed -i -e 's,${B},${PTEST_PATH},g' -e 's,/\.\./kbd-2.5.1,,g'
+${D}${PTEST_PATH}/tests/atconfig }
--
2.25.1