Compiled Bitcoin Client as Testnet with bitcoin.conf
The location of your bitcoin.conf file depends on your operating system: https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File

Note that you can also pass any configuration value as command line argument.