[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: test script argument handling

> -----Original Message-----
> From: owner-openldap-devel@OpenLDAP.org
> [mailto:owner-openldap-devel@OpenLDAP.org]On Behalf Of Kurt D. Zeilenga

> I'm thinking that we likely should remove most of the
> argument handling from tests/Makefile.  I'm thinking
> maybe we should have configure generate a run script
> (from run.in) which the make file calls to run tests.
> The script could also be called directly.
> 	./run all		(run all w/ bdb)
> 	./run -db=hdb all	(run all w/ hdb)
> 	./run test001
> 	./run acls

Maybe we should turn defines.sh into defines.in and catch it there. My main
gripe with the old setup was that args were being added to the command line
that were pretty much invariants, making it more difficult to use the args
that actually were runtime selectable. (E.g., BUILD_BDB's value doesn't
change, but whether or not to wait for someone to attach a debugger is a
choice you make on a run-by-run basis.)

When tracking down a test failure I want to be able to run the test by hand
with a minimal amount of typing. I'm not sure that putting a run script in
front of each test will improve things, but configuring defines.sh might

> Also, maybe the script could handle (better) the creation
> and removal of DB directories.

Creation, at least, seems to me to be exactly what Makefiles are for. Are you
talking about emptying the directories out so a new test can be run?

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support