autoconf
[Top][All Lists]
Advanced

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

Re: [Autotest] Prefixing commands launched by AT_CHECK


From: Thomas Moulard
Subject: Re: [Autotest] Prefixing commands launched by AT_CHECK
Date: Mon, 13 Apr 2009 04:01:57 +0200

On Sat, Apr 11, 2009 at 1:21 PM, Eric Blake <address@hidden> wrote:
> This is very doable.  In fact, it is how the m4 testsuite allows the user
> to specify an alternate $SED program [1].  You can use atlocal.in to
> perform initialization of your $TESTSUITE_PREFIX before any tests run,
> then rely on that variable throughout your tests.
>
> [1] http://git.savannah.gnu.org/cgit/m4.git/commit/?id=e21aa9fb

Thanks, it is working.

I just had to use "which" to force an absolute path as Valgrind does not
search in the PATH for the binary it has to run:
AT_CHECK([$CHECK_PREFIX `which simple-test`], [0], [expout], [ignore])

However, I still have an issue with the other scenario (MinGW cross-compiling):
in that case, my binaries are suffixed with '.exe'.

Is is easy to make Autotest aware of EXEEXT, however AT_TESTED does not
do what I want:

atlocal.in:
 EXEEXT="@EXEEXT";
 export EXEEXT;

simple-test.at:
 # [...]
 AT_TESTED([simple-test$EXEEXT])
 # AT_CHECK, etc.

In that case, AT_TESTED search a binary called "simple-test$EXEEXT"
without evaluating shell arguments.
Is there any way to work around this issue?
(I am using Autoconf 2.63)

Thanks,
-- 
Thomas Moulard
http://www.linkedin.com/in/moulard




reply via email to

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