[llvm-commits] [test-suite] r103416 - /test-suite/trunk/Makefile.programs

Chris Lattner sabre at nondot.org
Mon May 10 10:49:52 PDT 2010


Author: lattner
Date: Mon May 10 12:49:52 2010
New Revision: 103416

URL: http://llvm.org/viewvc/llvm-project?rev=103416&view=rev
Log:
add support for REFERENCE_OUTPUT_FILE back, even if treeadd can't use it.

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=103416&r1=103415&r2=103416&view=diff
==============================================================================
--- test-suite/trunk/Makefile.programs (original)
+++ test-suite/trunk/Makefile.programs Mon May 10 12:49:52 2010
@@ -73,6 +73,12 @@
   RUNTIMELIMIT := 500
 endif
 
+# If the program specified a REFERENCE_OUTPUT_FILE, they obviously want to
+# USE_REFERENCE_OUTPUT.
+ifdef REFERENCE_OUTPUT_FILE
+USE_REFERENCE_OUTPUT := 1
+endif
+
 # RUNSAFELY - This program simply runs another program.  If the program works
 # correctly, this script has no effect, otherwise it will do things like print a
 # stack trace of a core dump.  It always returns "successful" so that tests will
@@ -181,9 +187,7 @@
   DISABLE_DIFFS := 1
 endif
 
-ifndef DISABLE_LLC
-all:: $(LLCCODEGEN)
-else
+ifdef DISABLE_LLC
 DISABLE_LLC_DIFFS = 1
 endif
 
@@ -758,10 +762,17 @@
 	cp $< $@
 else 
 ifdef USE_REFERENCE_OUTPUT
+
+# If the app wants to USE_REFERENCE_OUTPUT, but hasn't specified a file
+# containing the reference output, default to programname.reference_output.
+ifndef REFERENCE_OUTPUT_FILE
+REFERENCE_OUTPUT_FILE = $(PROJ_SRC_DIR)/%.reference_output
+endif
+
 # In this case, we opt out of generating the native output and just
 # copy it from a reference output
 $(PROGRAMS_TO_TEST:%=Output/%.out-nat): \
-Output/%.out-nat: $(PROJ_SRC_DIR)/%.reference_output Output/.dir
+Output/%.out-nat: $(REFERENCE_OUTPUT_FILE) Output/.dir
 	cp $< $@
 endif
 endif





More information about the llvm-commits mailing list