in reply to SQL configurations in automated testing

Whatever you choose, I think you should add a skeleton distroprefs file to your distribution. Distroprefs are used by CPAN.pm to set environment variables, command line arguments or answer interactive questions while configuring, building and testing the distribution. If the user does not like your defaults, then he can put this skeleton into his own prefsdir, made the required changes and could forget about it for future upgrades/installations.

A sample file looks like this:

--- match: distribution: "^CAPTTOFU/DBD-mysql-\d+\.\d+.tar.gz$" pl: args: - --testdb=test - --testhost=localhost - --testport=3306 - --testsocket=/var/run/mysqld/mysqld.sock - --testuser=root - --testpassword=something

Replies are listed 'Best First'.
Re^2: SQL configurations in automated testing
by skazat (Chaplain) on Nov 21, 2007 at 22:41 UTC
    Hmm! Distroprefs - never even knew that existed. Interesting!

     

    -justin simoni
    skazat me

      It's rather new, about one year old. There are lots of nice new things in the current CPAN.pm.
Re^2: SQL configurations in automated testing
by skazat (Chaplain) on Dec 23, 2007 at 20:05 UTC
    Doh! The problem with this idea is that it won't work with testing while in development, just when packaged via CPAN. Oh well, it may come in handy, soon enough for me.

     

    -justin simoni
    skazat me

      There's a reserved CPAN id LOCAL for testing purposes. But I just checked it and it seems that CPAN.pm has problems using this.