Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: SQL configurations in automated testing

by eserte (Deacon)
on Nov 21, 2007 at 20:33 UTC ( [id://652235]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://652235]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-26 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found