help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autoconf autotest compilation-error-regexp


From: Nikolai Weibull
Subject: Autoconf autotest compilation-error-regexp
Date: Sun, 18 Nov 2012 13:06:23 +0100

Hi!

Has anyone written any autoconf autotest compilation-error-regexps?  I
can’t seem to get it to work.

The output, when running the testsuite with -v is rather poor and
looks like this (where all capitals replace generic information):

1. testsuite.at:5: testing TEST TITLE ...
./testsuite.at:11: COMMAND
1. testsuite.at:5:  ok

2. testsuite.at:16: testing TEST TITLE ...
./testsuite.at:22: COMMAND
--- -   2012-11-18 13:00:01.000000000 +0100
+++ .../stdout       2012-11-18 13:00:01.000000000 +0100
DIFF OUTPUT

2. testsuite.at:16:  FAILED (testsuite.at:22)

My attempt was

(add-to-list 'compilation-error-regexp-alist-alist
                  '(autotest-footer
                    "^[1-9][0-9]*\\. \\([^\n :]+\\):\\([1-9][0-9]*\\):
 \\(?:ok\\|FAILED\\)"
                    1 2 nil 0 1))
     (add-to-list 'compilation-error-regexp-alist 'autotest-footer)
     (add-to-list 'compilation-error-regexp-alist-alist
                  '(autotest-error
                    "^[1-9][0-9]*\\. [^\n :]+:[1-9][0-9]*: testing
[^\n]*\n\
\\([^\n :]+\\):\\([1-9][0-9]*\\): [^\n]+\n\\(?:\\([^-]\\)\\|---\\)"
                    1 2 nil (3 . 3) 1))
     (add-to-list 'compilation-error-regexp-alist 'autotest-error)

but that doesn’t seem to work.  It matches the ok/failed part OK, but
the other doesn’t want to stick.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]