summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-17 07:59:05 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-17 20:35:21 +0100
commit7ccac5e8a4a0fd123eb8c035225ee12d30c0bb00 (patch)
treec078d9fc259faa15abcacd2a0ac0e368e8a8ad6c
parentce64875415e7d50da86379b48f04f96d633b4e9d (diff)
testsuite subdir fix
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com> Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
-rw-r--r--test/Test.mak4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Test.mak b/test/Test.mak
index 52992a70a..a82505f2b 100644
--- a/test/Test.mak
+++ b/test/Test.mak
@@ -45,6 +45,9 @@ U_TARGETS += $(TESTS_DISABLED)
G_TARGETS += $(addsuffix _glibc,$(TESTS_DISABLED)) $(GLIBC_TESTS_DISABLED)
TARGETS += $(SHELL_TESTS)
CFLAGS += $(CFLAGS_$(notdir $(CURDIR)))
+ifeq (1,$(UCLIBCNG_GENERATE_TESTRUNNER))
+UCLIBCNG_TEST_SUBDIR ?= $(patsubst $(realpath $(TESTDIR))/%,%,$(CURDIR))
+endif
define binary_name
$(patsubst %.exe,%,$@)
@@ -92,6 +95,7 @@ $(addsuffix .exe,$(U_TARGETS)): SIMULATOR:=$(SIMULATOR_uclibc)
$(addsuffix .exe,$(G_TARGETS)): SIMULATOR:=$(SIMULATOR_glibc)
$(RUN_TARGETS):
ifeq (1,$(UCLIBCNG_GENERATE_TESTRUNNER))
+ $(Q)\
expected_ret="$(RET_$(tst_src_name))"; echo \
"$${expected_ret:-0}" \
$(call shellescape,$(tst_src_name)) \