Re: [Autotest] Prefixing commands launched by AT_CHECK

2009-04-13 Thread Thomas Dickey
On Mon, 13 Apr 2009, Thomas Moulard wrote: On Sat, Apr 11, 2009 at 1:21 PM, Eric Blake e...@byu.net 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

Re: [Autotest] Prefixing commands launched by AT_CHECK

2009-04-13 Thread Mike Frysinger
On Monday 13 April 2009 06:03:05 Thomas Dickey wrote: On Mon, 13 Apr 2009, Thomas Moulard wrote: On Sat, Apr 11, 2009 at 1:21 PM, Eric Blake e...@byu.net 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

Re: [Autotest] Prefixing commands launched by AT_CHECK

2009-04-13 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Mike Frysinger on 4/13/2009 4:40 AM: I just had to use which to force an absolute path as Valgrind does not which probably isn't guaranteed to appear on every platform that autoconf scripts might run on - ymmv nor is it guaranteed

Re: [Autotest] Prefixing commands launched by AT_CHECK

2009-04-13 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Thomas Moulard on 4/12/2009 8:01 PM: 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

Re: [Autotest] Prefixing commands launched by AT_CHECK

2009-04-13 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Thomas Moulard on 4/13/2009 6:00 AM: About the which issue, Valgrind does not need an absolute path, it is just that I used to rely on the fact that my binaries are always in my PATH. autotest can be made to guarantee that the binary

Re: [Autotest] Prefixing commands launched by AT_CHECK

2009-04-12 Thread Thomas Moulard
On Sat, Apr 11, 2009 at 1:21 PM, Eric Blake e...@byu.net 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

[Autotest] Prefixing commands launched by AT_CHECK

2009-04-11 Thread Thomas Moulard
Hello, I am using Autotest and I would like to prefix the commands that AT_CHECK launches for at least two reasons: 1/ to run my test suite with Valgrind 2/ to run my test suite with Wine when I use a GCC/MinGW cross-compiler. For now, I'm thinking about doing something like that:

Re: [Autotest] Prefixing commands launched by AT_CHECK

2009-04-11 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Thomas Moulard on 4/11/2009 5:14 AM: For now, I'm thinking about doing something like that: AT_CHECK([$TESTSUITE_PREFIX my command], [0], [expout], [ignore]) ...and letting the test suite user defining the shell variable as he wants.