[llvm-commits] CVS: llvm/test/Programs/Makefile.programs

Chris Lattner lattner at cs.uiuc.edu
Thu May 8 23:13:01 PDT 2003


Changes in directory llvm/test/Programs:

Makefile.programs updated: 1.38 -> 1.39

---
Log message:

Allow non-deterministic programs to not botch diffs


---
Diffs of the changes:

Index: llvm/test/Programs/Makefile.programs
diff -u llvm/test/Programs/Makefile.programs:1.38 llvm/test/Programs/Makefile.programs:1.39
--- llvm/test/Programs/Makefile.programs:1.38	Sat May  3 00:49:03 2003
+++ llvm/test/Programs/Makefile.programs	Thu May  8 23:12:12 2003
@@ -226,22 +226,27 @@
 #
 # Rules to diff test output...
 #
+ifdef PROGRAM_IS_NONDETERMINISTIC
+# If the program is non-deterministic, just save the diff to the .diff file,
+# don't print out a bunch of stuff.
+HIDEDIFF = > /dev/null 2>&1 
+endif
+
 $(PROGRAMS_TO_TEST:%=Output/%.diff-lli): \
 Output/%.diff-lli: Output/%.out-nat Output/%.out-lli
-	$(DIFFPROG) lli $*
+	$(DIFFPROG) lli $*  $(HIDEDIFF)
 
 $(PROGRAMS_TO_TEST:%=Output/%.diff-jit): \
 Output/%.diff-jit: Output/%.out-nat Output/%.out-jit
-	$(DIFFPROG) jit $*
+	$(DIFFPROG) jit $* $(HIDEDIFF)
 
 $(PROGRAMS_TO_TEST:%=Output/%.diff-llc): \
 Output/%.diff-llc: Output/%.out-nat Output/%.out-llc
-	$(DIFFPROG) llc $*
+	$(DIFFPROG) llc $* $(HIDEDIFF)
 
 $(PROGRAMS_TO_TEST:%=Output/%.diff-cbe): \
 Output/%.diff-cbe: Output/%.out-nat Output/%.out-cbe
-	$(DIFFPROG) cbe $*
-
+	$(DIFFPROG) cbe $* $(HIDEDIFF)
 
 # Rules to support the USE_PRECOMPILED_BYTECODE setting If set, submakefiles
 # will not know how to make output bytecode files for the programs in this





More information about the llvm-commits mailing list