Re: Repeating a test suite with a different executable

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Braden McDaniel on 10/14/2007 8:33 PM:
> Is there something clever I could do to repeat a series of tests (in
> testsuite.at) with different executables? The tests consist of a series
> of input files.

Autotest is built on top of m4sugar, which is a macro preprocessor, so it
sounds like you would just write a macro that takes one parameter (the
test you are running) and expands into the text that tests everything
using the parameter in place of the program name.  Autoconf's own
tests/local.at shows a good example of writing macros that make it easier
to factor out the repetitive parts of tests into higher-level macros
conditionalized on the one part of the family of tests that differs
between tests.  Or consider tests/autotest.m4, where the macro AT_CHECK_AT
expands into the entire AT_SETUP/AT_DATA/AT_CHECK/AT_CLEANUP sequence.

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

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

iD8DBQFHEtiK84KuGfSFAYARAi3AAJ9D6r5NNfuuYzbROZjmU4EMwug5QQCgmGUc
XPeykoaZTWLCzb0IVKmLuvQ=
=tdbR
-----END PGP SIGNATURE-----


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux