From: Kevin Ryde <user42@zip.com.au>
Subject: compile regexp perl Test module
Date: Wed, 03 Dec 2003 06:56:46 +1000 [thread overview]
Message-ID: <87n0abndkh.fsf@zip.com.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 399 bytes --]
The format of the failure messages from the perl "Test" module is not
quite the same as from its normal compiling,
* progmodes/compile.el (compilation-error-regexp-alist): Add perl
"Test" module error messages.
I've only ever bothered with the plain ok(X) form myself, which is the
first message shown in the comment, but I added the other styles too.
Sample foo.pl I used below.
[-- Attachment #2: compile.el.perl-test.diff --]
[-- Type: text/plain, Size: 923 bytes --]
*** compile.el.~1.282.~ Wed Nov 26 09:29:21 2003
--- compile.el Tue Dec 2 15:43:25 2003
*************** (defvar compilation-error-regexp-alist
*** 339,344 ****
--- 339,354 ----
;; store::odrecall('File_A', 'x2') called at store.pm line 90
(".* at \\([^ \n]+\\) line \\([0-9]+\\)[,.\n]" 1 2)
+ ;; Perl "Test" module:
+ ;; # Failed test 2 in foo.pl at line 6
+ ;; # Test 3 got: '0' (foo.pl at line 7)
+ ;; Expected failures (don't match these):
+ ;; # Failed test 5 in foo.pl at line 10 *TODO*
+ ;; # Test 6 got: '0' (foo.pl at line 11 *TODO*)
+ ;; Unexpected success:
+ ;; ok 8 # (foo.pl at line 14 TODO?!)
+ (".*\\((\\| in \\)\\([^ \n]+\\) at line \\([0-9]+\\)\\(\n\\|)\\| TODO\\?!)\\)" 2 3)
+
;; Oracle pro*c:
;; Semantic error at line 528, column 5, file erosacqdb.pc:
("Semantic error at line \\([0-9]+\\), column \\([0-9]+\\), file \\(.*\\):"
[-- Attachment #3: foo.pl --]
[-- Type: application/x-perl, Size: 518 bytes --]
[-- Attachment #4: Type: text/plain, Size: 141 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2003-12-02 20:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-02 20:56 Kevin Ryde [this message]
2004-02-16 0:43 ` compile regexp perl Test module Kevin Ryde
2004-02-18 17:55 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87n0abndkh.fsf@zip.com.au \
--to=user42@zip.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).