[telepathy-gabble/master] add support for GABBLE_TEST_STRACE to run tests inside strace

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Aug 4 09:34:29 PDT 2009


---
 tests/README                            |    4 ++++
 tests/twisted/tools/exec-with-log.sh.in |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tests/README b/tests/README
index 2221016..c9da6a5 100644
--- a/tests/README
+++ b/tests/README
@@ -69,6 +69,10 @@ To debug an individual test you can set one of the following env variable:
     nemiver. You'll be able to set up breakpoints; then hit the "continue"
     button to launch Gabble.
 
+  * GABBLE_TEST_STRACE : to run Gabble inside strace. The report is written
+    to tools/strace.log.
+        export GABBLE_TEST_STRACE=1
+
 
 == Jingle tests ==
 
diff --git a/tests/twisted/tools/exec-with-log.sh.in b/tests/twisted/tools/exec-with-log.sh.in
index 15550e8..059e689 100644
--- a/tests/twisted/tools/exec-with-log.sh.in
+++ b/tests/twisted/tools/exec-with-log.sh.in
@@ -21,6 +21,8 @@ elif test -n "$GABBLE_TEST_REFDBG"; then
         if test -z "$GABBLE_WRAPPER" ; then
                 GABBLE_WRAPPER="refdbg"
         fi
+elif test -n "$GABBLE_TEST_STRACE"; then
+        GABBLE_WRAPPER="strace -o strace.log"
 fi
 
 export G_DEBUG=fatal-warnings" ${G_DEBUG}"
-- 
1.5.6.5




More information about the telepathy-commits mailing list