Skip to content

Commit ec4741e

Browse files
committed
Add/implement "default" reference output, to make it easier to add tests which
just "exit 0". llvm-svn: 120805
1 parent 26a5ba6 commit ec4741e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

External/SPEC/Makefile.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ Output/%.out-nat: Output/.dir
6666
elif [ -f "$(PROJ_SRC_DIR)/$*.reference_output" ]; then \
6767
cp $(PROJ_SRC_DIR)/$*.reference_output $@; \
6868
else \
69-
printf "ERROR: %s: %s\n" "NO REFERENCE OUTPUT" "$(PROJ_SRC_DIR)/$*.reference_output" > $@; \
69+
printf "WARNING: %s: %s\n" "NO REFERENCE OUTPUT (using default)" "$(PROJ_SRC_DIR)/$*.reference_output" > $@; \
70+
cp $(PROJ_SRC_ROOT)/default.reference_output $@; \
7071
cat $@; \
7172
fi
7273

Makefile.programs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,8 @@ Output/%.out-nat: Output/.dir
870870
elif [ -f "$(PROJ_SRC_DIR)/$*.reference_output" ]; then \
871871
cp $(PROJ_SRC_DIR)/$*.reference_output $@; \
872872
else \
873-
printf "ERROR: %s: %s\n" "NO REFERENCE OUTPUT" "$(PROJ_SRC_DIR)/$*.reference_output" > $@; \
873+
printf "WARNING: %s: %s\n" "NO REFERENCE OUTPUT (using default)" "$(PROJ_SRC_DIR)/$*.reference_output" > $@; \
874+
cp $(PROJ_SRC_ROOT)/default.reference_output $@; \
874875
cat $@; \
875876
fi
876877

default.reference_output

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exit 0

0 commit comments

Comments
 (0)