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
|
#!/usr/local/bin/perl
#..do this to pick up TestTools.
BEGIN { unshift(@INC,"./test_data/"); }
use TestTools;
use strict;
my $test_handle = TestTools->new(tests_to_run => 6);
$test_handle->run_tested("-caf1 test.caf -caf2 test.caf > test.out 2>/dev/null");
$test_handle->readCafFile('test.out');
$test_handle->check_null();
$test_handle->checkForMissingInfo();
$test_handle->checkRawSequences();
$test_handle->check_seq_quality_length();
#my $std = $test_handle->read_standard_output();
my $std = TestTools->new();
$std->readCafFile("../test_data/cafmerge.caf");
$test_handle->compare_against_caf($std);
exit;
END {
$test_handle->print_test_results();
}
|