[llvm-commits] [test-suite] r153653 - /test-suite/trunk/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile

Daniel Dunbar daniel at zuster.org
Thu Mar 29 08:57:07 PDT 2012


Author: ddunbar
Date: Thu Mar 29 10:57:07 2012
New Revision: 153653

URL: http://llvm.org/viewvc/llvm-project?rev=153653&view=rev
Log:
[test-suite] Fix pcompess2 to not create output file in the source directory, by
copying the input to the output directory before running.

Modified:
    test-suite/trunk/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile

Modified: test-suite/trunk/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile?rev=153653&r1=153652&r2=153653&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile (original)
+++ test-suite/trunk/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile Thu Mar 29 10:57:07 2012
@@ -4,9 +4,19 @@
 CPPFLAGS = -DVERSION='"1.00"' -DCOMPDATE="\"today\"" -DCFLAGS='""' -DHOSTNAME="\"thishost\"" 
 #LDFLAGS  = -lm
 ifdef LARGE_PROBLEM_SIZE
-RUN_OPTIONS = $(PROJ_SRC_DIR)/ref.in
+INPUT_FILE := run.in
 else
-RUN_OPTIONS = $(PROJ_SRC_DIR)/test.in
+INPUT_FILE := test.in
 endif
+RUN_OPTIONS = $(PROJ_OBJ_DIR)/$(INPUT_FILE)
+
+# The pcompress2 benchmark wants to write an output file adjacent to the input
+# file. In order to avoid writing back into the source directory, we copy the
+# input file into the output directory.
+GeneratedTestInputs := copy-input-file
+
 include $(LEVEL)/MultiSource/Makefile.multisrc
 
+copy-input-file:
+	cp $(PROJ_SRC_DIR)/$(INPUT_FILE) $(PROJ_OBJ_DIR)/$(INPUT_FILE)
+.PHONY: copy-input-files





More information about the llvm-commits mailing list