summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/busybox/busybox.inc14
-rw-r--r--meta/recipes-core/busybox/files/run-ptest5
2 files changed, 17 insertions, 2 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index 6abbb5492f..f7455d301f 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -349,6 +349,20 @@ do_install_ptest () {
349 cp -r ${B}/testsuite ${D}${PTEST_PATH}/ 349 cp -r ${B}/testsuite ${D}${PTEST_PATH}/
350 cp ${B}/.config ${D}${PTEST_PATH}/ 350 cp ${B}/.config ${D}${PTEST_PATH}/
351 ln -s /bin/busybox ${D}${PTEST_PATH}/busybox 351 ln -s /bin/busybox ${D}${PTEST_PATH}/busybox
352
353 mkdir ${D}${PTEST_PATH}/bin
354 if [ "${BUSYBOX_SPLIT_SUID}" = "1" ]; then
355 while read link; do
356 ln -s ${base_bindir}/busybox.suid ${D}${PTEST_PATH}/bin/$(basename $link)
357 done <${D}${sysconfdir}/busybox.links.suid
358 while read link; do
359 ln -s ${base_bindir}/busybox.nosuid ${D}${PTEST_PATH}/bin/$(basename $link)
360 done <${D}${sysconfdir}/busybox.links.nosuid
361 else
362 while read link; do
363 ln -s ${base_bindir}/busybox ${D}${PTEST_PATH}/bin/$(basename $link)
364 done <${D}${sysconfdir}/busybox.links
365 fi
352} 366}
353 367
354inherit update-alternatives 368inherit update-alternatives
diff --git a/meta/recipes-core/busybox/files/run-ptest b/meta/recipes-core/busybox/files/run-ptest
index 8b99bedc06..b19e5b5343 100644
--- a/meta/recipes-core/busybox/files/run-ptest
+++ b/meta/recipes-core/busybox/files/run-ptest
@@ -1,7 +1,8 @@
1#!/bin/sh 1#!/bin/sh
2 2
3current_dir=$(readlink -f $0) 3current_path=$(readlink -f $0)
4export bindir=$(dirname $current_dir) 4export bindir=$(dirname $current_path)
5export PATH=$bindir/bin:$PATH
5export SKIP_KNOWN_BUGS=1 6export SKIP_KNOWN_BUGS=1
6 7
7cd testsuite || exit 1 8cd testsuite || exit 1