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: Eric Blake
Subject: Re: [Autotest] Prefixing commands launched by AT_CHECK
Date: Sat, 11 Apr 2009 05:21:52 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666

-----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.

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

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkngfVAACgkQ84KuGfSFAYCO3QCffJsxGl14sAOOYqHXuc4k1Cp9
UXsAoMHavAyFXOJWaqCxb19y5BQxLDOf
=KnOg
-----END PGP SIGNATURE-----




reply via email to

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