Skip to contentSkip to conversation

kselftests: add bash/ncurses runtime dependency for futex test

PATCH In review Fathi Boudra 1 participant 3 messages Mar 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kselftests: add bash/ncurses runtime dependency for futex test

futex test requires tput at runtime.

---
 recipes-kernel/kselftests/kselftests_4.9.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-kernel/kselftests/kselftests_4.9.bb +1 -0
index 3cd12ea6..6e8c2143 100644
@@ -142,6 +142,7 @@ FILES_${PN}-dbg += "${bindir}/kselftests/*/.debug"
 
 RDEPENDS_${PN}-cpu-hotplug += "bash"
 RDEPENDS_${PN}-efivarfs += "bash"
+RDEPENDS_${PN}-futex += "bash ncurses"
 RDEPENDS_${PN}-memory-hotplug += "bash"
 RDEPENDS_${PN}-net += "bash"
 RDEPENDS_${PN}-vm += "bash"
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 kselftests: fix futex functional tests build

Recursive makefile is broken because it's using the same TARGETS variable as selftests topdir and prevent to build futex functional tests:
make[2]: Nothing to be done for `all'.

Rename the variable to F_TARGETS in the futex functional tests Makefile.

---
 recipes-kernel/kselftests/kselftests_4.9.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-kernel/kselftests/kselftests_4.9.bb +1 -0
index 6e8c2143..39188b01 100644
@@ -59,6 +59,7 @@ do_configure () {
 	sed "s|^CC = .*||g" -i ${S}/tools/testing/selftests/memfd/Makefile
 	sed "s|^CC := .*||g" -i ${S}/tools/testing/selftests/powerpc/switch_endian/Makefile
 	sed "s|gcc|\$(CC)|g" -i ${S}/tools/testing/selftests/breakpoints/Makefile
+	sed "s|TARGETS|F_TARGETS|g" -i ${S}/tools/testing/selftests/futex/functional/Makefile
 	sed "s|^LDFLAGS += -lpthread|LDLIBS += -lpthread|g" -i ${S}/tools/testing/selftests/seccomp/Makefile
 	sed "s|^LDFLAGS += -lrt -lpthread|LDLIBS += -lrt -lpthread|g" -i ${S}/tools/testing/selftests/timers/Makefile
 	sed "s|BINARIES|TEST_PROGS|g" -i ${S}/tools/testing/selftests/sigaltstack/Makefile
Signature · 1 line
2.11.0
#2 lore raw
In reply to Fathi Boudra

sorry, resent by mistake.

Quoted 22 lines · Fathi Boudra

futex test requires tput at runtime.

---
 recipes-kernel/kselftests/kselftests_4.9.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-kernel/kselftests/kselftests_4.9.bb +1 -1
index 3cd12ea6..6e8c2143 100644
@@ -142,6 +142,7 @@ FILES_${PN}-dbg += "${bindir}/kselftests/*/.debug"
 
 RDEPENDS_${PN}-cpu-hotplug += "bash"
 RDEPENDS_${PN}-efivarfs += "bash"
+RDEPENDS_${PN}-futex += "bash ncurses"
 RDEPENDS_${PN}-memory-hotplug += "bash"
 RDEPENDS_${PN}-net += "bash"
 RDEPENDS_${PN}-vm += "bash"
--

2.11.0