2017-06-20 17:07:31 +00:00
|
|
|
ifneq ($(CC),)
|
2017-04-12 19:27:59 +00:00
|
|
|
ifeq ($(TEST),)
|
|
|
|
TEST:=$(TARGET)-check
|
|
|
|
$(TEST): EXPECT:=$(EXPECT)
|
2017-05-21 20:25:02 +00:00
|
|
|
$(TEST): SHELL:=$(SHELL)
|
2017-04-12 19:27:59 +00:00
|
|
|
$(TEST): $(OUT)/$(TARGET)
|
2017-05-21 20:25:02 +00:00
|
|
|
@export SHELL=$(SHELL)
|
2017-04-12 19:27:59 +00:00
|
|
|
ifeq ($(EXPECT),)
|
|
|
|
$<
|
|
|
|
else
|
|
|
|
$<; r=$$?; [ $$r = $(EXPECT) ]
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
CHECK+=$(TEST)
|
|
|
|
$(TEST): TEST:=$(TEST)
|
|
|
|
$(DIR)-check: $(TEST)
|
2017-06-20 17:07:31 +00:00
|
|
|
endif
|
2017-04-12 19:27:59 +00:00
|
|
|
include make/reset.make
|
2017-06-20 17:07:31 +00:00
|
|
|
|