test: Support for non-Guix[SD]: cater for missing CC/CC32 compilers.
[mes.git] / make / check.make
1 ifneq ($(CC),)
2 ifeq ($(TEST),)
3 TEST:=$(TARGET)-check
4 $(TEST): EXPECT:=$(EXPECT)
5 $(TEST): SHELL:=$(SHELL)
6 $(TEST): $(OUT)/$(TARGET)
7         @export SHELL=$(SHELL)
8 ifeq ($(EXPECT),)
9         $<
10 else
11         $<; r=$$?; [ $$r = $(EXPECT) ]
12 endif
13 endif
14 CHECK+=$(TEST)
15 $(TEST): TEST:=$(TEST)
16 $(DIR)-check: $(TEST)
17 endif
18 include make/reset.make
19