[llvm-commits] [test-suite] r153652 - /test-suite/trunk/MultiSource/Benchmarks/MiBench/consumer-typeset/Makefile

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


Author: ddunbar
Date: Thu Mar 29 10:57:04 2012
New Revision: 153652

URL: http://llvm.org/viewvc/llvm-project?rev=153652&view=rev
Log:
[test-suite] Fix consumer-typeset to not create output file in the source
directory, by copying some of the inputs to the output directory before running.

Modified:
    test-suite/trunk/MultiSource/Benchmarks/MiBench/consumer-typeset/Makefile

Modified: test-suite/trunk/MultiSource/Benchmarks/MiBench/consumer-typeset/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/MiBench/consumer-typeset/Makefile?rev=153652&r1=153651&r2=153652&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/MiBench/consumer-typeset/Makefile (original)
+++ test-suite/trunk/MultiSource/Benchmarks/MiBench/consumer-typeset/Makefile Thu Mar 29 10:57:04 2012
@@ -3,8 +3,17 @@
 PROG     = consumer-typeset
 CPPFLAGS = -DOS_UNIX=1 -DOS_DOS=0 -DOS_MAC=0 -DDB_FIX=0 -DUSE_STAT=1 -DSAFE_DFT=0 -DCOLLATE=1 -DLIB_DIR=\"lout.lib\" -DFONT_DIR=\"font\" -DMAPS_DIR=\"maps\" -DINCL_DIR=\"include\" -DDATA_DIR=\"data\" -DHYPH_DIR=\"hyph\" -DLOCALE_DIR=\"locale\" -DCHAR_IN=1 -DCHAR_OUT=0 -DLOCALE_ON=1 -DASSERT_ON=1 -DDEBUG_ON=0  -DPDF_COMPRESSION=0
 LDFLAGS  = -lm
-RUN_OPTIONS = -x -I $(PROJ_SRC_DIR)/data/include -D $(PROJ_SRC_DIR)/data/data -F $(PROJ_SRC_DIR)/data/font -C $(PROJ_SRC_DIR)/data/maps -H $(PROJ_SRC_DIR)/data/hyph $(PROJ_SRC_DIR)/large.lout
+RUN_OPTIONS = -x -I $(PROJ_SRC_DIR)/data/include -D $(PROJ_SRC_DIR)/data/data -F $(PROJ_SRC_DIR)/data/font -C $(PROJ_SRC_DIR)/data/maps -H $(PROJ_OBJ_DIR)/data/hyph $(PROJ_SRC_DIR)/large.lout
+
+# The consumer-typeset benchmark wants to write output files (caches derived
+# from the inputs, I think) into the same dir as the hyphenation files. In order
+# to avoid writing back into the source directory, we copy the hyphenation files
+# into the output directory.
+GeneratedTestInputs := copy-hyph-files
+
 include $(LEVEL)/MultiSource/Makefile.multisrc
 
-clean::
-	rm -f $(PROJ_SRC_DIR)/data/hyph/*.lp
+copy-hyph-files:
+	mkdir -p  $(PROJ_OBJ_DIR)/data/hyph/
+	cp $(PROJ_SRC_DIR)/data/hyph/* $(PROJ_OBJ_DIR)/data/hyph/
+.PHONY: copy-hyph-files





More information about the llvm-commits mailing list