summaryrefslogtreecommitdiff
path: root/slideshow/qa
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-11-26 17:43:10 +0000
committerRüdiger Timm <rt@openoffice.org>2004-11-26 17:43:10 +0000
commitfa37438431d93e18d9a4d0798da0c37bd5fb41fd (patch)
treeda1a182afed77a1925c10a2c54b9ba4bf25474ec /slideshow/qa
parent6c0d1168132943423a89c4376465c7bcd76b6321 (diff)
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/11/15 11:49:10 thb 1.1.2.2: #110496# Removed outdated script; Improved documentation 2004/07/22 19:27:14 thb 1.1.2.1: #110496# Initial revision
Diffstat (limited to 'slideshow/qa')
-rw-r--r--slideshow/qa/debug/nodetree.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/slideshow/qa/debug/nodetree.sh b/slideshow/qa/debug/nodetree.sh
new file mode 100644
index 000000000000..8a8db8cdc74e
--- /dev/null
+++ b/slideshow/qa/debug/nodetree.sh
@@ -0,0 +1,43 @@
+#!/bin/bash
+#
+# $Revision: 1.2 $
+#
+# Last changes: $Author: rt $ $Date: 2004-11-26 18:43:10 $
+#
+# Generate node tree from verbose logfile
+#
+# HOWTO USE
+# =========
+#
+# First of all, you need to recompile modules slideshow and canvas
+# with VERBOSE=t set in the environment, and debug=t defined at the
+# build tool command line. Then run your slideshow and redirect stdout
+# to a file.
+#
+# Then, call 'nodetree.sh trace-file > tree.ps' to generate a
+# PostScript file for the AnimationNode tree generated during the show.
+# Since these easily get pretty huge, use only one page, and try to
+# limit the slide content (which have effects assigned, that is) to
+# the bare minimum (to reproduce your bug, or whatever you need this
+# for).
+#
+# The generated output will have all nodes color-coded with their state at the
+# point when the tree was dumped
+#
+
+###################################################
+#
+# Generate node tree
+#
+###################################################
+
+egrep "Node connection|Node state" $1 | \
+ sed -e '/Node state/ s/.*Node state.*: \(.*\)/\1/' \
+ -e '/Node connection/ s/.*Node connection.*: \(n.*\)/\1/' | \
+ \
+awk 'BEGIN { print "digraph Event_network {" }; { print } END { print "}" }' | \
+ \
+ \
+# fill a complete A1 page with graph output
+dot -Gratio=fill -Gsize=23,33 -Tps
+#dot -Gratio=fill -Gorientation=land -Tps