summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2011-07-09 18:12:39 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2011-07-09 18:12:39 +0200
commit977deaa1f86bd40a2cd0121e1518611087f2ddcc (patch)
tree35c1b044cdf50ca681e4c8c32a8a066f55789860
parent8eed7f3854be44f83aaa6a50e40cda62da942a39 (diff)
downloadcoderay-977deaa1f86bd40a2cd0121e1518611087f2ddcc.tar.gz
automatically download scanner test suite (closes issue #128)
-rw-r--r--.gitignore5
-rw-r--r--rake_tasks/test.rake11
2 files changed, 12 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 8827e10..30a57c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
+Gemfile.lock
+pkg
test/executable/source.rb.html
test/executable/source.rb.json
-pkg
-Gemfile.lock
+test/scanners
diff --git a/rake_tasks/test.rake b/rake_tasks/test.rake
index 1140062..e09d91d 100644
--- a/rake_tasks/test.rake
+++ b/rake_tasks/test.rake
@@ -18,9 +18,16 @@ namespace :test do
ruby './test/unit/suite.rb'
end
+ scanner_suite = './test/scanners/suite.rb'
+ task scanner_suite do
+ puts 'Scanner tests not found; downloading from Subversion...'
+ sh 'svn co http://svn.rubychan.de/coderay-scanner-tests/trunk/ test/scanners/'
+ puts 'Finished.'
+ end
+
desc 'run all scanner tests'
- task :scanners do
- ruby './test/scanners/suite.rb'
+ task :scanners => scanner_suite do
+ ruby scanner_suite
end
namespace :scanner do