[llvm-commits] [poolalloc] r104527 - /poolalloc/trunk/test/TEST.dsgraph.Makefile

John Criswell criswell at uiuc.edu
Mon May 24 11:35:20 PDT 2010


Author: criswell
Date: Mon May 24 13:35:19 2010
New Revision: 104527

URL: http://llvm.org/viewvc/llvm-project?rev=104527&view=rev
Log:
Use the watchdog program to ensure that programs don't consume too many
resources on Mac OS X.

Modified:
    poolalloc/trunk/test/TEST.dsgraph.Makefile

Modified: poolalloc/trunk/test/TEST.dsgraph.Makefile
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/TEST.dsgraph.Makefile?rev=104527&r1=104526&r2=104527&view=diff
==============================================================================
--- poolalloc/trunk/test/TEST.dsgraph.Makefile (original)
+++ poolalloc/trunk/test/TEST.dsgraph.Makefile Mon May 24 13:35:19 2010
@@ -16,6 +16,9 @@
 # Pathame to the DSA pass dynamic library
 DSA_SO   := $(PADIR)/$(CONFIGURATION)/lib/libLLVMDataStructure$(SHLIBEXT)
 
+# Command for running the opt program
+RUNOPT := $(LLVM_OBJ_ROOT)/projects/poolalloc/$(CONFIGURATION)/bin/watchdog $(LOPT) -load $(DSA_SO)
+
 # PASS - The dsgraph pass to run: ds, bu, td
 PASS := td
 
@@ -27,10 +30,10 @@
 $(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \
 Output/%.$(TEST).report.txt: Output/%.llvm.bc Output/%.LOC.txt $(LOPT)
 	@# Gather data
-	-($(LOPT) -load $(DSA_SO) -analyze -dsa-$(PASS) $(ANALYZE_OPTS) $<)> $@.time.1 2>&1
-	-($(LOPT) -load $(DSA_SO) -analyze $(MEM) -dsa-$(PASS) -disable-verify $<)> $@.mem.1 2>&1
-	-($(LOPT) -load $(DSA_SO) -steens-aa -time-passes -disable-output $<) > $@.time.2 2>&1
-	-($(LOPT) -load $(DSA_SO) -steens-aa $(MEM) -disable-output $<) > $@.mem.2 2>&1
+	-($(RUNOPT) -analyze -dsa-$(PASS) $(ANALYZE_OPTS) $<)> $@.time.1 2>&1
+	-($(RUNOPT) -analyze $(MEM) -dsa-$(PASS) -disable-verify $<)> $@.mem.1 2>&1
+	-($(RUNOPT) -steens-aa -time-passes -disable-output $<) > $@.time.2 2>&1
+	-($(RUNOPT) -steens-aa $(MEM) -disable-output $<) > $@.mem.2 2>&1
 	@# Emit data.
 	@echo "---------------------------------------------------------------" > $@
 	@echo ">>> ========= '$(RELDIR)/$*' Program" >> $@





More information about the llvm-commits mailing list