On Fri, 21 Mar 2003, Derek Robert Price wrote: > I'm trying to convert the CVS test suite to use autotest rather than its > current homeroll and I was hoping to carry over some of the options that > the homeroll accepts into the new testsuite. > > Is there some way other than converting them into VAR=XXX type options > to have testsuite accept them? Something like AT_ARG // to but more > general than AC_ARG_WITH & AC_ARG_ENABLE?
I am not sure if this is what you are looking for, but I found it useful to configure a testsuite as a subpackage: foo/ +-configure.ac <-- contains AC_CONFIG_SUBDIRS([testsuite]) +-src/ +-... +-testsuite/ +-configure.ac <-- contains AC_ARG_ENABLE for testsuite options +-testsuite.at +-... and put the configuration of the testsuite into AC_ARG_WITH/AC_ARG_ENABLE in testsuite/configure.ac. The testsuite configuration options can be passed to the top-level configure (as they are passed down) or the testsuite can be reconfigured (e.g. to run the executable with specific run-time options) after the executable is compiled. Best regards Grzegorz ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2002 Grzegorz Jakacki, HED. All Rights Reserved. # ##################################################################