uclibc: use shell script testsuite runner

There is no need for GNU make to run the testsuite.
The benefit is you can even try it on noMMU targets as
the script runs with busybox hush.
Parallel build of the testsuite seems to work well.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Waldemar Brodkorb 2016-06-04 22:49:32 +02:00 committed by Thomas Petazzoni
parent 7dcec609ee
commit 2704f23589
2 changed files with 4 additions and 7 deletions

View File

@ -98,8 +98,6 @@ config BR2_UCLIBC_INSTALL_UTILS
config BR2_UCLIBC_INSTALL_TEST_SUITE config BR2_UCLIBC_INSTALL_TEST_SUITE
bool "Compile and install uClibc tests" bool "Compile and install uClibc tests"
select BR2_PACKAGE_MAKE
depends on BR2_USE_MMU # make
help help
Enabling this option will compile and install the uClibc test suite. Enabling this option will compile and install the uClibc test suite.
This is useful if you want to check if the uClibc library is working This is useful if you want to check if the uClibc library is working
@ -107,7 +105,7 @@ config BR2_UCLIBC_INSTALL_TEST_SUITE
The test suite will be installed into /root/uClibc directory. To run The test suite will be installed into /root/uClibc directory. To run
the test suite enter the /root/uClibc/test directory and type the test suite enter the /root/uClibc/test directory and type
"make UCLIBC_ONLY=1 CC=/bin/true check". "sh uclibcng-testrunner.sh".
See the /root/uClibc/test/README for additional information. See the /root/uClibc/test/README for additional information.

View File

@ -444,11 +444,11 @@ endef
ifeq ($(BR2_UCLIBC_INSTALL_TEST_SUITE),y) ifeq ($(BR2_UCLIBC_INSTALL_TEST_SUITE),y)
define UCLIBC_BUILD_TEST_SUITE define UCLIBC_BUILD_TEST_SUITE
$(MAKE1) -C $(@D) \ $(MAKE) -C $(@D) \
$(UCLIBC_MAKE_FLAGS) \ $(UCLIBC_MAKE_FLAGS) \
TEST_INSTALLED_UCLIBC=1 \ TEST_INSTALLED_UCLIBC=1 \
UCLIBC_ONLY=1 \ UCLIBC_ONLY=1 \
test_compile test_compile test_gen
endef endef
endif endif
@ -464,8 +464,7 @@ ifeq ($(BR2_UCLIBC_INSTALL_TEST_SUITE),y)
define UCLIBC_INSTALL_TEST_SUITE define UCLIBC_INSTALL_TEST_SUITE
mkdir -p $(TARGET_DIR)/root/uClibc mkdir -p $(TARGET_DIR)/root/uClibc
cp -rdpf $(@D)/test $(TARGET_DIR)/root/uClibc cp -rdpf $(@D)/test $(TARGET_DIR)/root/uClibc
$(INSTALL) -D -m 0644 $(@D)/Rules.mak $(TARGET_DIR)/root/uClibc/Rules.mak find $(TARGET_DIR)/root/uClibc -name \*.o -exec rm {} \;
$(INSTALL) -D -m 0644 $(@D)/.config $(TARGET_DIR)/root/uClibc/.config
endef endef
endif endif