[llvm-commits] [test-suite] r120805 - in /test-suite/trunk: External/SPEC/Makefile.spec Makefile.programs default.reference_output
Daniel Dunbar
daniel at zuster.org
Fri Dec 3 08:04:03 PST 2010
Author: ddunbar
Date: Fri Dec 3 10:04:03 2010
New Revision: 120805
URL: http://llvm.org/viewvc/llvm-project?rev=120805&view=rev
Log:
Add/implement "default" reference output, to make it easier to add tests which
just "exit 0".
Added:
test-suite/trunk/default.reference_output
Modified:
test-suite/trunk/External/SPEC/Makefile.spec
test-suite/trunk/Makefile.programs
Modified: test-suite/trunk/External/SPEC/Makefile.spec
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/Makefile.spec?rev=120805&r1=120804&r2=120805&view=diff
==============================================================================
--- test-suite/trunk/External/SPEC/Makefile.spec (original)
+++ test-suite/trunk/External/SPEC/Makefile.spec Fri Dec 3 10:04:03 2010
@@ -66,7 +66,8 @@
elif [ -f "$(PROJ_SRC_DIR)/$*.reference_output" ]; then \
cp $(PROJ_SRC_DIR)/$*.reference_output $@; \
else \
- printf "ERROR: %s: %s\n" "NO REFERENCE OUTPUT" "$(PROJ_SRC_DIR)/$*.reference_output" > $@; \
+ printf "WARNING: %s: %s\n" "NO REFERENCE OUTPUT (using default)" "$(PROJ_SRC_DIR)/$*.reference_output" > $@; \
+ cp $(PROJ_SRC_ROOT)/default.reference_output $@; \
cat $@; \
fi
Modified: test-suite/trunk/Makefile.programs
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Makefile.programs?rev=120805&r1=120804&r2=120805&view=diff
==============================================================================
--- test-suite/trunk/Makefile.programs (original)
+++ test-suite/trunk/Makefile.programs Fri Dec 3 10:04:03 2010
@@ -870,7 +870,8 @@
elif [ -f "$(PROJ_SRC_DIR)/$*.reference_output" ]; then \
cp $(PROJ_SRC_DIR)/$*.reference_output $@; \
else \
- printf "ERROR: %s: %s\n" "NO REFERENCE OUTPUT" "$(PROJ_SRC_DIR)/$*.reference_output" > $@; \
+ printf "WARNING: %s: %s\n" "NO REFERENCE OUTPUT (using default)" "$(PROJ_SRC_DIR)/$*.reference_output" > $@; \
+ cp $(PROJ_SRC_ROOT)/default.reference_output $@; \
cat $@; \
fi
Added: test-suite/trunk/default.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/default.reference_output?rev=120805&view=auto
==============================================================================
--- test-suite/trunk/default.reference_output (added)
+++ test-suite/trunk/default.reference_output Fri Dec 3 10:04:03 2010
@@ -0,0 +1 @@
+exit 0
More information about the llvm-commits
mailing list