changeset 4951:de60897044f4

some fixes to gdbinit.in.in -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-01-26 Ben Wing <ben@xemacs.org> * .gdbinit.in.in: Allow an argument to check-xemacs and check-temacs to check a specific file.
author Ben Wing <ben@xemacs.org>
date Tue, 26 Jan 2010 22:48:23 -0600
parents c50b0b3c7b8d
children 19a72041c5ed
files src/.gdbinit.in.in src/ChangeLog
diffstat 2 files changed, 31 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/.gdbinit.in.in	Tue Jan 26 22:44:43 2010 -0600
+++ b/src/.gdbinit.in.in	Tue Jan 26 22:48:23 2010 -0600
@@ -158,23 +158,42 @@
 or when temacs builds successfully, but xemacs does not.
 end
 
+define check-xemacs-arg
+  run -vanilla -batch -l @srcdir@/../tests/automated/test-harness.el -f batch-test-emacs @srcdir@/../tests/$arg0
+end
+
 define check-xemacs
-  run -vanilla -batch -l @srcdir@/../tests/automated/test-harness.el -f batch-test-emacs @srcdir@/../tests/automated
+  if $argc == 0
+    check-xemacs-arg automated
+  else
+    check-xemacs-arg automated/$arg0
+  end
 end
 
 document check-xemacs
-Usage: check-xemacs
-Run the test suite.  Equivalent to 'make check'.
+Usage: check-xemacs [FILE]
+Run the test suite.  If no file given, run the whole suite, equivalent to
+'make check'.  If a file given, run the suite only on the specified file.
 end
 
-define check-temacs
+define check-temacs-arg
   environment-to-run-temacs
-  run -nd -no-packages -batch -l @srcdir@/../lisp/loadup.el run-temacs -q -batch -l @srcdir@/../tests/automated/test-harness.el -f batch-test-emacs @srcdir@/../tests/automated
+  run -nd -no-packages -batch -l @srcdir@/../lisp/loadup.el run-temacs -q -batch -l @srcdir@/../tests/automated/test-harness.el -f batch-test-emacs @srcdir@/../tests/$arg0
+
+define check-temacs
+  if $argc == 0
+    check-temacs-arg automated
+  else
+    check-temacs-arg automated/$arg0
+  end
 end
 
 document check-temacs
-Usage: check-temacs
-Run the test suite on temacs.  Equivalent to 'make check-temacs'.
+Usage: check-temacs [FILE]
+Run the test suite on temacs.  If no file given, run the whole suite,
+equivalent to 'make check-temacs'.  If a file given, run the suite only on
+the specified file.
+
 Use this with debugging tools (like purify) that cannot deal with dumping,
 or when temacs builds successfully, but xemacs does not.
 end
--- a/src/ChangeLog	Tue Jan 26 22:44:43 2010 -0600
+++ b/src/ChangeLog	Tue Jan 26 22:48:23 2010 -0600
@@ -1,3 +1,8 @@
+2010-01-26  Ben Wing  <ben@xemacs.org>
+
+	* .gdbinit.in.in: Allow an argument to check-xemacs and check-temacs
+	to check a specific file.
+
 2010-01-24  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* number.c (Fnumerator, Fdenominator, Fcanonicalize_number):