Sha256: b543eb827933caf8a8e7d6525de8e1e99f96cd8ce9354a52e16c0e87e58e0c49
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 KB
Contents
$: << '.' do_create = if ARGV[0] == '-c' or ARGV[0] == '--create' ARGV.shift end require 'test/unit' require 'regressiontest' RegressionTest.create(do_create) class Gff3Test < Test::Unit::TestCase rootpath = File.join(File.dirname(__FILE__),'..') BIN = rootpath + '/bin/gff3-fetch' DAT = rootpath + '/test/data' def test_cache assert_equal(true,single_run("mRNA #{DAT}/gff/test-ext-fasta.fa #{DAT}/gff/test-ext-fasta.gff3",'test_ext_gff3')) assert_equal(true,single_run("CDS #{DAT}/gff/test.gff3",'test_gff3')) end def test_nocache assert_equal(true,single_run("mRNA --cache none #{DAT}/gff/test-ext-fasta.fa #{DAT}/gff/test-ext-fasta.gff3",this_method+'_ext_gff3')) assert_equal(true,single_run("CDS --cache none #{DAT}/gff/test.gff3",this_method+'_gff3')) end def test_lrucache assert_equal(true,single_run("mRNA --cache lru #{DAT}/gff/test-ext-fasta.fa #{DAT}/gff/test-ext-fasta.gff3",this_method+'_ext_gff3')) assert_equal(true,single_run("CDS --cache lru #{DAT}/gff/test.gff3",this_method+'_gff3')) end private def this_method caller[0] =~ /`([^']*)'/ and $1 end end def single_run opts, name cmd = "#{BIN} --logger stdout #{opts}" # p cmd RegressionTest.test `#{cmd}`,name,"#{DAT}/regression" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bio-gff3-0.8.7 | test/test_bio-gff3.rb |
bio-gff3-0.8.6 | test/test_bio-gff3.rb |