Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cut down the number of embed_ref=2 tests that get run #1537

Merged
merged 1 commit into from
Dec 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions test/test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -661,14 +661,6 @@ sub test_view
testv $opts, "./compare_sam.pl -Baux $md $sam $jsam";
}

# embed_ref=2 mode
my $ersam = "ce#1000.sam";
my $ercram = "ce#1000_er.tmp.cram";
my $ersam2 = "${ercram}.sam";
testv $opts, "./test_view $tv_args -C -p $ercram $ersam";
testv $opts, "./test_view $tv_args -p $ersam2 $ercram";
testv $opts, "./compare_sam.pl $ersam $ersam2";

if ($test_view_failures == 0)
{
passed($opts, "$sam conversions");
Expand All @@ -679,6 +671,21 @@ sub test_view
}
}

# embed_ref=2 mode
print "test_view testing embed_ref=2:\n";
$test_view_failures = 0;
my $ersam = "ce#1000.sam";
my $ercram = "ce#1000_er.tmp.cram";
my $ersam2 = "${ercram}.sam";
testv $opts, "./test_view $tv_args -C -p $ercram $ersam";
testv $opts, "./test_view $tv_args -p $ersam2 $ercram";
testv $opts, "./compare_sam.pl $ersam $ersam2";
if ($test_view_failures == 0) {
passed($opts, "embed_ref=2 tests");
} else {
failed($opts, "embed_ref=2 tests", "$test_view_failures subtests failed");
}

# BAM and CRAM range queries on prebuilt BAM and CRAM
# The cram file has @SQ UR: set to point to an invalid location to
# force the reference to be reloaded from the one given on the
Expand Down