diff options
author | Johan Dahlin <johan@gnome.org> | 2010-06-21 19:45:03 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-06-21 21:22:38 -0300 |
commit | 95db443802b4d1b31b89958a426436769347b8b2 (patch) | |
tree | 8d36136f0dc4d76f9d569180355c82d2678044b9 | |
parent | c2303db2e89a0783af91f749f0b5946af3ac96c3 (diff) | |
download | gjs-95db443802b4d1b31b89958a426436769347b8b2.tar.gz |
[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
-rw-r--r-- | Makefile-test.am | 3 | ||||
-rw-r--r-- | test/unittest.gdb | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile-test.am b/Makefile-test.am index b804e983..cd3c56e2 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 00000000..a57846c9 --- /dev/null +++ b/test/unittest.gdb @@ -0,0 +1,4 @@ +run +if ($_exitcode == 0) + quit +end |