summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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