[gjs] [gdb-check] Add a script for easier use
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] [gdb-check] Add a script for easier use
- Date: Tue, 22 Jun 2010 00:27:15 +0000 (UTC)
commit 95db443802b4d1b31b89958a426436769347b8b2
Author: Johan Dahlin <johan gnome org>
Date: Mon Jun 21 19:45:03 2010 -0300
[gdb-check] Add a script for easier use
Add a gdb script that allows the test to run without
user interaction. It also quits of the exitcode is 0 and
shows the prompt if not
Makefile-test.am | 3 ++-
test/unittest.gdb | 4 ++++
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/Makefile-test.am b/Makefile-test.am
index b804e98..cd3c56e 100644
--- a/Makefile-test.am
+++ b/Makefile-test.am
@@ -80,7 +80,8 @@ check: test
gdb-check gdb-test: $(gjsnative_LTLIBRARIES) ${TEST_PROGS}
failed=; for prog in ${TEST_PROGS}; do \
- ${TESTS_ENVIRONMENT} libtool --mode=execute gdb --args $$prog; \
+ ${TESTS_ENVIRONMENT} libtool --mode=execute gdb -x \
+ $(top_srcdir)/test/unittest.gdb --args $$prog; \
done
valgrind-check valgrind-test: $(gjsnative_LTLIBRARIES) ${TEST_PROGS}
diff --git a/test/unittest.gdb b/test/unittest.gdb
new file mode 100644
index 0000000..a57846c
--- /dev/null
+++ b/test/unittest.gdb
@@ -0,0 +1,4 @@
+run
+if ($_exitcode == 0)
+ quit
+end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]