summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-05 18:26:12 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-05 18:26:12 +0000
commitd0ecc0e45cc5ff0cd5235e6ab9bcd031030973c2 (patch)
treed1c442139297a2afe4040cb953de406cb6bec01e /test/lib
parent2728f500c62118a19b5f93640747cbfdbd97a9bd (diff)
downloadpuppet-d0ecc0e45cc5ff0cd5235e6ab9bcd031030973c2.tar.gz
puppet-d0ecc0e45cc5ff0cd5235e6ab9bcd031030973c2.tar.xz
puppet-d0ecc0e45cc5ff0cd5235e6ab9bcd031030973c2.zip
Messing around a bit with how tests work
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2054 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/rake/puppet_test_loader.rb12
-rw-r--r--test/lib/rake/puppet_testtask.rb14
2 files changed, 26 insertions, 0 deletions
diff --git a/test/lib/rake/puppet_test_loader.rb b/test/lib/rake/puppet_test_loader.rb
new file mode 100644
index 000000000..3b9e58a60
--- /dev/null
+++ b/test/lib/rake/puppet_test_loader.rb
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby
+
+require 'test/unit/autorunner'
+
+runner = Test::Unit::AutoRunner.new(false)
+runner.process_args
+
+ARGV.each { |f| load f unless f =~ /^-/ }
+
+runner.run
+
+# $Id$
diff --git a/test/lib/rake/puppet_testtask.rb b/test/lib/rake/puppet_testtask.rb
new file mode 100644
index 000000000..8a882c184
--- /dev/null
+++ b/test/lib/rake/puppet_testtask.rb
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+
+module Rake
+ class PuppetTestTask < Rake::TestTask
+ def rake_loader
+ file = find_file('rake/puppet_test_loader') or
+ fail "unable to find rake test loader"
+ puts file
+ return file
+ end
+ end
+end
+
+# $Id$