[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: echo arbitrary text in autotest?
From: |
Ralf Wildenhues |
Subject: |
Re: echo arbitrary text in autotest? |
Date: |
Sat, 29 Jan 2011 10:48:13 +0100 |
User-agent: |
Mutt/1.5.20 (2010-08-04) |
* Daily, Jeff A wrote on Fri, Jan 28, 2011 at 08:17:53PM CET:
> I want to dump some environment variables near the top of my tests
> suite since these variables affect my tests. In my local.at file I
> have:
> AT_INIT
> AS_ECHO(["tests use seq $NP_START $NP_INC $NP_STOP"])
>
> But it doesn't make it into my suite script at all. I would like for
> the echo to go to both stdout and the suite.log file. How can I do
> this?
I think this should work (untested):
m4_divert_push([PREPARE_TESTS])dnl
AS_ECHO(["tests use seq $NP_START $NP_INC $NP_STOP"])
AS_ECHO(["tests use seq $NP_START $NP_INC $NP_STOP"]) >&AS_MESSAGE_LOG_FD
m4_divert_pop([PREPARE_TESTS])dnl
Cheers,
Ralf