autoconf
[Top][All Lists]
Advanced

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

Re: Repeating a test suite with a different executable


From: Eric Blake
Subject: Re: Repeating a test suite with a different executable
Date: Sun, 14 Oct 2007 21:03:38 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----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             address@hidden
-----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-----




reply via email to

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