diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-01 05:03:34 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-01 05:03:34 +0000 |
| commit | 38362016f97c891f4b5b0d1fb38f8491c8eeac05 (patch) | |
| tree | 9d7bfd518b96a735b06f46714c7d766f4fe934d7 /test/lib/rake | |
| parent | fd2982fdd6268dd5d0a517fc57e03f5f3e2b389b (diff) | |
| download | puppet-38362016f97c891f4b5b0d1fb38f8491c8eeac05.tar.gz puppet-38362016f97c891f4b5b0d1fb38f8491c8eeac05.tar.xz puppet-38362016f97c891f4b5b0d1fb38f8491c8eeac05.zip | |
Trying to get the functionality I had in previous tests. Mostly I want
to be able to load many files but run just a couple of methods, which
test/unit supports via -n, selectively enabling -d. I now can do this
with the Rakefile, using 'TESTOPTS="-n <method> -d" rake <blah>,
although I find that a bit kludgy (certainly more so than
'rake -n <blah> -d <blah>').
However, I also want to be able to automatically determine which test
suites conflict (meaning something in one suite causes a failure in
another), which too-often happens. So, I'm going to mess around some
with 'test' until I get that, and then see if I can move that
functionality to the rakefile.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2146 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/lib/rake')
| -rw-r--r-- | test/lib/rake/puppet_test_loader.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lib/rake/puppet_test_loader.rb b/test/lib/rake/puppet_test_loader.rb index cd91623b8..2bc03aa07 100644 --- a/test/lib/rake/puppet_test_loader.rb +++ b/test/lib/rake/puppet_test_loader.rb @@ -1,5 +1,12 @@ require 'test/unit/autorunner' +require 'getoptlong' + +result = GetoptLong.new( + [ "--debug", "-d", GetoptLong::NO_ARGUMENT ], + [ "-n", GetoptLong::REQUIRED_ARGUMENT ], + [ "--help", "-h", GetoptLong::NO_ARGUMENT ] +) ARGV.each { |f| require f unless f =~ /^-/ } |
