diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2015-03-26 22:51:16 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2015-03-27 00:08:45 +0100 |
commit | 560f416794403be952e850756d7e8b23e8fa92ac (patch) | |
tree | 0b6a976847080bb3465dda956ad6c22ff7cc1aa9 /test/Test.mak | |
parent | cf80a7fc2db30364ac98be40483e599c2c243e87 (diff) |
test: Add SIMULATOR_uclibc and SIMULATOR_glibc
where SIMULATOR_glibc is an optional simulator to run host binaries and
SIMULATOR_uclibc is an optional simulator to run target (uClibc)
binaries.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'test/Test.mak')
-rw-r--r-- | test/Test.mak | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Test.mak b/test/Test.mak index ee43a0fcd..a56a20165 100644 --- a/test/Test.mak +++ b/test/Test.mak @@ -69,7 +69,7 @@ endef define exec_test $(showtest) $(Q)\ - $(WRAPPER) $(WRAPPER_$(tst_src_name)) \ + $(SIMULATOR) $(WRAPPER) $(WRAPPER_$(tst_src_name)) \ ./$(binary_name) $(OPTS) $(OPTS_$(tst_src_name)) > "$(binary_name).out" 2>&1 ; \ ret=$$? ; \ expected_ret="$(RET_$(tst_src_name))" ; \ @@ -85,6 +85,9 @@ endef test check all: run run: $(RUN_TARGETS) + +$(addsuffix .exe,$(U_TARGETS)): SIMULATOR:=$(SIMULATOR_uclibc) +$(addsuffix .exe,$(G_TARGETS)): SIMULATOR:=$(SIMULATOR_glibc) $(RUN_TARGETS): $(exec_test) $(diff_test) |