Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit f63a413

Browse files
committed
Add/implement "default" reference output, to make it easier to add tests which
just "exit 0". git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@120805 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 9a29bae commit f63a413

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)