diff options
Diffstat (limited to 'test/rss/test.rb')
-rw-r--r-- | test/rss/test.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/rss/test.rb b/test/rss/test.rb new file mode 100644 index 000000000..3b462cc4a --- /dev/null +++ b/test/rss/test.rb @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby + +require "rbconfig" +require "rss/parser" + +c = Config::CONFIG +ruby = File.join(c['bindir'], c['ruby_install_name']) + +RSS::AVAILABLE_PARSERS.each do |parser| + puts "------------------------------------" + puts "Using #{parser}" + puts "------------------------------------" + Dir.glob(ARGV.shift || "test/test_*") do |file| + puts(`#{ruby} #{if $DEBUG then '-d' end} -I. -I./lib test/each_parser.rb #{parser} #{file} #{ARGV.join(' ')}`) + end +end |