This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to change the behaviour of "make check"?


Hi,

Thien-Thi Nguyen <ttn@glug.org> writes:

>    Date: Wed, 17 Sep 2003 14:07:17 -0600 (MDT)
>    From: Ireneusz SZCZESNIAK <Ireneusz.Szczesniak@Colorado.EDU>
>
>    Yeah!  But still I want the output of "make check" to be clean.  When
>    a test fails, then I expect to see: "FAIL: test.sh".
>
> in this case the only thing i can suggest is to post-process the
> Makefile to change the "check-TESTS" target near the end to not check
> for failures.  you might offend purists, but anyway, this can be done
> like so:
>
>  ./configure
>  cp Makefile TMP
>  grep -v "^[ 	]*test ...failed. -eq 0" TMP > Makefile
>  rm TMP
>  make

That seems a roundabout way to do it.  Just copy the check-TESTS rule
into your Makefile.am file, and automake won't generate its internal
rule.  You can customize your local copy of check-TESTS to your
heart's content.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]