shill: Add note about how to gdb unittests
Added to TESTING
BUG=None
TEST=Read it
Change-Id: I8696c48624cdd37d70bfe1885ada9eaa3d5daaf7
Reviewed-on: http://gerrit.chromium.org/gerrit/10549
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
Commit-Ready: Paul Stewart <pstew@chromium.org>
diff --git a/TESTING b/TESTING
index 88fd4d4..e406aa0 100644
--- a/TESTING
+++ b/TESTING
@@ -14,6 +14,13 @@
- run the resulting shill_unittest binary
- if you're using our ebuild scripts, you can do both by running
(chroot)$ FEATURES="test" emerge-x86-generic shill
+- run the unit tests from your host machine under gdb
+ (chroot)$ FEATURES="test noclean" emerge-x86-generic shill
+ (chroot)$ gdb_x86_local --board x86-generic \
+ /build/x86-generic/tmp/portage/chromeos-base/shill-9999/work/shill-9999/shill_unittest
+ (Of course if the unit tests segfaulted, you wouldn't need the emerge
+ step since the build directory would have been retained in the course
+ of the test failing.)
Running integration tests
-------------------------