[test-suite] r180647 - Add support for endian-specific reference outputs.

Daniel Dunbar daniel at zuster.org
Fri Apr 26 16:39:50 PDT 2013


Author: ddunbar
Date: Fri Apr 26 18:39:50 2013
New Revision: 180647

URL: http://llvm.org/viewvc/llvm-project?rev=180647&view=rev
Log:
Add support for endian-specific reference outputs.
 - Use naming convention such as ".reference_output.big-endian" or, for type
   specific outputs, something like ".reference_output.big-endian.small".

Modified:
    test-suite/trunk/Makefile.programs

Modified: test-suite/trunk/Makefile.programs
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Makefile.programs?rev=180647&r1=180646&r2=180647&view=diff
==============================================================================
--- test-suite/trunk/Makefile.programs (original)
+++ test-suite/trunk/Makefile.programs Fri Apr 26 18:39:50 2013
@@ -822,8 +822,12 @@ else
 #
 # Note that this rule needs to be in both Makefile.programs and Makefile.spec.
 Output/%.out-nat: Output/.dir $(PROJ_SRC_ROOT)/instant.txt
-	-if [ -f "$(PROJ_SRC_DIR)/$*.reference_output.$(REFERENCE_OUTPUT_KEY)" ]; then \
+	-if [ -f "$(PROJ_SRC_DIR)/$*.reference_output.$(ENDIAN)-endian.$(REFERENCE_OUTPUT_KEY)" ]; then \
+	  cp $(PROJ_SRC_DIR)/$*.reference_output.$(ENDIAN)-endian.$(REFERENCE_OUTPUT_KEY) $@; \
+	elif [ -f "$(PROJ_SRC_DIR)/$*.reference_output.$(REFERENCE_OUTPUT_KEY)" ]; then \
 	  cp $(PROJ_SRC_DIR)/$*.reference_output.$(REFERENCE_OUTPUT_KEY) $@; \
+	elif [ -f "$(PROJ_SRC_DIR)/$*.reference_output.$(ENDIAN)-endian" ]; then \
+	  cp $(PROJ_SRC_DIR)/$*.reference_output.$(ENDIAN)-endian $@; \
 	elif [ -f "$(PROJ_SRC_DIR)/$*.reference_output" ]; then \
 	  cp $(PROJ_SRC_DIR)/$*.reference_output $@; \
 	else \





More information about the llvm-commits mailing list