diff options
author | Pjotr Prins | 2016-06-17 05:55:02 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-06-17 05:55:02 +0000 |
commit | 6be8ae8ba741c4822470f752f60d85fe54bd90f9 (patch) | |
tree | 18aebad3db0559af3428831e57a45560d69af72e /bin | |
parent | d90dc3748557d1d6fbaa59f71fe676b8a7c393ca (diff) | |
download | genenetwork2-6be8ae8ba741c4822470f752f60d85fe54bd90f9.tar.gz |
Testing: getting tests to run quietly
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/test-website | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/bin/test-website b/bin/test-website index aeab459b..6912b355 100755 --- a/bin/test-website +++ b/bin/test-website @@ -18,10 +18,20 @@ $stderr.print USAGE require 'optparse' -options = {} +options = { database: :small, link_checker: false} opts = OptionParser.new do |o| o.banner = "Usage: #{File.basename($0)} [options] URL" + o.on('-d','--database', String, 'Use database (default db_webqtl_s)') do |s| + options[:database] = + case s + when 'xx' + :unknown + else + :small + end + end + o.on('-l','--link-checker', 'Check for dead links') do options[:link_checker] = true end @@ -30,6 +40,10 @@ opts = OptionParser.new do |o| options[:navigation_test] = true end + o.on('--skip-broken', 'Skip tests that are known to be broken') do + options[:skip_broken] = true + end + o.separator "" o.on_tail('-h', '--help', 'display this help and exit') do options[:show_help] = true @@ -43,6 +57,7 @@ if options[:show_help] exit 1 end +$options = options # we are using a global here $host = if ARGV.size>0 ARGV.shift |