Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #858 from klickverbot/test-out-of-source
Browse files Browse the repository at this point in the history
test/*/Makefile: Do not assume that $(ROOT) is a relative path.
  • Loading branch information
braddr committed Jul 2, 2014
2 parents c661eea + d07d493 commit 2ab86f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/exceptions/Makefile
Expand Up @@ -7,7 +7,7 @@ DRUNTIMESO:=
QUIET:=

SRC:=src
ROOT:=obj/$(OS)/$(MODEL)
ROOT:=./obj/$(OS)/$(MODEL)
TESTS:=stderr_msg unittest_assert

ifneq (default,$(MODEL))
Expand All @@ -21,7 +21,7 @@ all: $(addprefix $(ROOT)/,$(addsuffix .done,$(TESTS)))

$(ROOT)/%.done: $(ROOT)/%
@echo Testing $*
$(QUIET)./$(ROOT)/$* $(RUN_ARGS)
$(QUIET)$(ROOT)/$* $(RUN_ARGS)
@touch $@

$(ROOT)/stderr_msg.done: $(ROOT)/stderr_msg
Expand Down
4 changes: 2 additions & 2 deletions test/init_fini/Makefile
Expand Up @@ -7,7 +7,7 @@ DRUNTIMESO:=
QUIET:=

SRC:=src
ROOT:=obj/$(OS)/$(MODEL)
ROOT:=./obj/$(OS)/$(MODEL)
TESTS:=thread_join runtime_args

ifneq (default,$(MODEL))
Expand All @@ -21,7 +21,7 @@ all: $(addprefix $(ROOT)/,$(addsuffix .done,$(TESTS)))

$(ROOT)/%.done: $(ROOT)/%
@echo Testing $*
$(QUIET)./$(ROOT)/$* $(RUN_ARGS)
$(QUIET)$(ROOT)/$* $(RUN_ARGS)
@touch $@

$(ROOT)/%: $(SRC)/%.d
Expand Down
4 changes: 2 additions & 2 deletions test/shared/Makefile
Expand Up @@ -7,7 +7,7 @@ DRUNTIMESO:=
QUIET:=

SRC:=src
ROOT:=obj/$(OS)/$(MODEL)
ROOT:=./obj/$(OS)/$(MODEL)
TESTS:=link load linkD linkDR loadDR host finalize
TESTS+=link_linkdep load_linkdep link_loaddep load_loaddep

Expand All @@ -24,7 +24,7 @@ $(ROOT)/loadDR.done: RUN_ARGS:=$(DRUNTIMESO)

$(ROOT)/%.done: $(ROOT)/%
@echo Testing $*
$(QUIET)./$(ROOT)/$* $(RUN_ARGS)
$(QUIET)$(ROOT)/$* $(RUN_ARGS)
@touch $@

$(ROOT)/link: $(SRC)/link.d $(ROOT)/lib.so $(DRUNTIMESO)
Expand Down

0 comments on commit 2ab86f5

Please sign in to comment.