Hi,
There is now a quick start at a profile based testing system. It's really
just a properties file for personalized setup for testing. There's an
example in the profile/ directory.
The setup is simple right now, but we can soon add a mechanism so that a set
of profiles can be run so that an individual can test as many databases as
they wish.
It would be nice if people kept their profiles in CVS and than people can
glance and see what's being tested. An extensive testing of torque and all
its capabilities is going to get pretty complicated so any suggestions are
welcome.
For the purposes of testing you need to set the following property:
torque.testProfile
You can set this in a ${project}/build.properties or your
${user.home}/build.properties. Doesn't matter.
Just look at the jvz.profile example to see what you have to set in the
profile for the tests to work. Basically your standard torque properties and
the name of the jar that contains your JDBC driver. I'm sure some other
values can be popped in later: it's a simple start but hopefully it will
allow anyone to test if they wish.
I also did some more cleanup of the tasks, basically amounts to properly
nabbing file names using the built-in project.resolveFile(file) method that
is available in all ant tasks.
I've also started using SQL to create the databases and it's working fine
with postgresql and mysql. The creation of shell scripts to call system
commands to create the databases is gone! Yaaaay!
I've nuked the platform specific templates and replaced them with a single
createdb.vm. So if anyone wants to take a crack at templates for databases
other than postgres and mysql go nuts. Patches will go in quickly as I'll be
working every night on this to try and get a full testbed flying by this
Monday.
--
jvz.
Jason van Zyl
http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>