Commit 93add29b authored by panne's avatar panne
Browse files

[project @ 2000-06-12 16:20:31 by panne]

Only add -o? FOO.stdBAR when it exists. I'm not sure if this
foreach-hack is the most elegant way to go though...
parent 044b45b0
......@@ -3,7 +3,9 @@
HS_SRCS = $(wildcard *.hs)
SRC_RUNTEST_OPTS += -o1 $*.stdout -o2 $*.stderr -x 0
SRC_RUNTEST_OPTS += -x 0 \
$(foreach i,$(wildcard $*.stdout),-o1 $(i)) \
$(foreach i,$(wildcard $*.stderr),-o2 $(i))
%.o : %.hs
@echo ---- Testing for successful compilation of $<
......
......@@ -3,7 +3,9 @@
HS_SRCS = $(wildcard *.hs)
SRC_RUNTEST_OPTS += -o1 $*.stdout -o2 $*.stderr -x 1
SRC_RUNTEST_OPTS += -x 1 \
$(foreach i,$(wildcard $*.stdout),-o1 $(i)) \
$(foreach i,$(wildcard $*.stderr),-o2 $(i))
%.o : %.hs
@echo ---- Testing for failure to compile $<
......
......@@ -5,7 +5,9 @@ HS_SRCS = $(wildcard *.hs)
BINS = $(patsubst %.o,%.bin,$(HS_OBJS))
RUNTESTS = $(filter-out $(OMITTED_RUNTESTS), $(patsubst %.bin,%.run,$(BINS)))
SRC_RUNTEST_OPTS += -o1 $*.stdout -o2 $*.stderr -x 0
SRC_RUNTEST_OPTS += -x 0 \
$(foreach i,$(wildcard $*.stdout),-o1 $(i)) \
$(foreach i,$(wildcard $*.stderr),-o2 $(i))
all :: $(RUNTESTS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment