1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
|
Name "gtpython: genome_stream bindings (output stream)"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/gff3.py #{$testdata}gff3_file_1_short.txt"
run "env LC_ALL=C sort #{last_stdout}"
run "diff #{last_stdout} #{$testdata}gff3_file_1_short_sorted.txt"
end
Name "gtpython: genome_visitor bindings (output stream)"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/genome_visitor.py #{$testdata}gff3_file_1_short.txt"
run "env LC_ALL=C sort #{last_stdout}"
run "diff #{last_stdout} #{$testdata}gff3_file_1_short_sorted.txt"
end
Name "gtpython: feature_index and feature_stream bindings"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/feature_stuff.py " +
"#{$testdata}gff3_file_1_short.txt"
run "env LC_ALL=C sort #{last_stdout}"
run "grep -v '^##sequence-region' #{$testdata}gff3_file_1_short_sorted.txt | diff #{last_stdout} -"
end
if not $arguments["nocairo"] then
Name "gtpython: AnnotationSketch bindings (valid gff3 file)"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/sketch.py test.png " +
"#{$testdata}gff3_file_1_short.txt"
end
Name "gtpython: AnnotationSketch bindings (corrupt gff3 file)"
Keywords "gt_python"
Test do
run_python("#{$testdata}gtpython/sketch.py test.png #{$testdata}corrupt.gff3",
:retval => 1)
grep last_stderr, "GenomeTools error"
end
Name "gtpython: AnnotationSketch bindings (nonexistent gff3 file)"
Keywords "gt_python"
Test do
run_python("#{$testdata}gtpython/sketch.py test.png " +
"#{$testdata}nonexistent_file", :retval => 1)
grep last_stderr, "GenomeTools error"
end
Name "gtpython: AnnotationSketch bindings (simple sketch)"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/sketch_simple.py test.png " +
"#{$testdata}gff3_file_1_short.txt"
end
Name "gtpython: AnnotationSketch bindings (PNG stream)"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/sketch_stream.py test.png " +
"#{$testdata}gff3_file_1_short.txt"
end
Name "gtpython: AnnotationSketch bindings (TrackSelectorFunc)"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/block_stuff.py " +
"#{$testdata}gff3_file_1_short.txt"
run "env LC_ALL=C sort #{last_stdout}"
run "diff #{last_stdout} #{$testdata}standard_gene_as_tree.blocks"
end
Name "gtpython: AnnotationSketch bindings (style)"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/style.py #{$cur}/gtdata/sketch/default.style"
end
Name "gtpython: AnnotationSketch bindings (error reporting)"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/sketch-failures.py " +
"#{$testdata}gff3_file_1_short.txt"
end
Name "gtpython: AnnotationSketch bindings (Graphics)"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/graphics_stuff.py " +
"#{$testdata}graphics_curve_test_coords.txt " +
"out.svg"
# will fail e.g. if cairo toy font setup is different from test machine
# disabled for now
# run "diff out.svg #{$testdata}graphics_test.out"
end
Name "gtpython: AnnotationSketch bindings (FeatureNode(Iterator))"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/feature_node.py"
end
Name "gtpython: show_seqids"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/show_seqids.py #{$testdata}encode_known_genes_Mar07.gff3"
run "diff #{last_stdout} #{$testdata}encode_known_genes_Mar07.seqids"
end
Name "gtpython: used_types"
Keywords "gt_python"
Test do
run_python "#{$testdata}gtpython/used_types.py " +
"#{$testdata}standard_gene_as_tree.gff3"
run "diff #{last_stdout} #{$testdata}standard_gene_as_tree.types"
end
Name "gtpython: show_recmaps"
Keywords "gt_python showrecmaps"
Test do
run_python "#{$testdata}gtpython/show_recmaps.py " +
"#{$testdata}standard_gene_as_tree.gff3"
run "diff #{last_stdout} #{$testdata}standard_gene_as_tree.hotspots"
end
Name "gtpython: unicode strings"
Keywords "gt_python"
Test do
run_python("#{$testdata}gtpython/unicode_strings.py #{$cur}/gtdata/sketch/default.style test.png")
end
end
Name "gtpython: unittests"
Keywords "gt_python unittests"
Test do
run_python "#{$gtpython}/tests/__init__.py "
grep last_stderr, "OK"
end
|