Debian Codegraph @

debian/patches/simple-test

raw
1 Author: Michael R. Crusoe <[email protected]>
2 Description: Sys::Info isn't packaged for Debian, so work around it
3 --- a/scripts/test/simple_tests.pl
4 +++ b/scripts/test/simple_tests.pl
5 @@ -1000,7 +1000,7 @@ sub runbowtie($$$$$$$$$$$$$$$$$$$$$$$) {
6 my $nthreads = int(rand($cpu->count || 1)) + 1;
7 my $build_args = "";
8 $build_args .= " -C " if $color;
9 - my $cmd = "$bowtie_build $idx_type --threads $nthreads --quiet --sanity $build_args $fa .simple_tests.tmp";
10 + my $cmd = "$bowtie_build $idx_type --quiet $build_args $fa .simple_tests.tmp";
11 print "$cmd\n";
12 system($cmd);
13 ($? == 0) || die "Bad exitlevel from bowtie-build: $?";
14 @@ -1150,7 +1150,7 @@ sub matchSamOptionalFlags($$) {
15 my $tmpfafn = ".simple_tests.pl.fa";
16 my $last_ref = undef;
17 foreach my $large_idx (undef,1) {
18 - foreach my $debug_mode (1,undef) {
19 + foreach my $debug_mode (undef) {
20 for (my $ci = 0; $ci < scalar(@cases); $ci++) {
21 my $c = $cases[$ci];
22 last unless defined($c);
23 --- a/Makefile
24 +++ b/Makefile
25 @@ -413,12 +413,11 @@ install: all
26 done
27
28 .PHONY: simple-test
29 -simple-test: allall perl-deps
30 - eval `perl -I $(CURDIR)/.perllib.tmp/lib/perl5 -Mlocal::lib=$(CURDIR)/.perllib.tmp` ; \
31 +simple-test: all
32 ./scripts/test/simple_tests.pl --bowtie=./bowtie --bowtie-build=./bowtie-build
33
34 .PHONY: random-test
35 -random-test: all perl-deps
36 +random-test: all
37 eval `perl -I $(CURDIR)/.perllib.tmp/lib/perl5 -Mlocal::lib=$(CURDIR)/.perllib.tmp` ; \
38 ./scripts/test/random_bowtie_tests.sh $(*-command-variables-*-)
39