summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-04 20:05:09 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-04 20:05:09 +0000
commit75944110b94988383aa3b9c2ceb879cb769c2a26 (patch)
tree649636f1039b8f69182cd5c442480c2757915052
parent86cc467e9b2e82e613a19250a7aa8b5343a6d19f (diff)
downloadpuppet-75944110b94988383aa3b9c2ceb879cb769c2a26.tar.gz
puppet-75944110b94988383aa3b9c2ceb879cb769c2a26.tar.xz
puppet-75944110b94988383aa3b9c2ceb879cb769c2a26.zip
Adding a host test task
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@775 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r--Rakefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index f35f451de..4f0a7d728 100644
--- a/Rakefile
+++ b/Rakefile
@@ -35,6 +35,9 @@ end
DOWNDIR = "/export/docroots/reductivelabs.com/htdocs/downloads"
+#TESTHOSTS = %w{sol10b fedora1 rh3a}
+TESTHOSTS = %w{sol10b}
+
# The default task is run if rake is given no explicit arguments.
desc "Default Task"
@@ -332,4 +335,18 @@ task :tag => [:prerelease] do
end
end
+desc "Test Puppet on each test host"
+task :hosttest do
+ out = ""
+ TESTHOSTS.each { |host|
+ puts "testing %s" % host
+ #out += %x{ssh #{host} 'cd puppet/test; sudo ./test' 2>&1}
+ sh %{ssh #{host} 'cd puppet/test; sudo ./test' 2>&1}
+ }
+
+ #IO.popen("mail -s 'Puppet Test Results' luke@madstop.com") do |m|
+ # m.puts out
+ #end
+end
+
# $Id$