@@ -35,12 +35,6 @@ int main(void) {
35
35
const std::set<std::string> excludeExt {};
36
36
const std::set<std::string> excludeFile {" random4.fasta" , " random4.fastq" , " random5.fasta" , " random5.fastq" , " random6.fastq" , " random7.fastq" , " random8.fastq" , " random9.fastq" , " random10.fastq" , " random11.fasta" , " random11.fastq" , " random12.fasta" , " random12.fastq" , " to_correct.fasta" , " to_correct.fastq" , " decompressor1.fasta" , " repeat1.fasta" , " repeat1.fastq" };
37
37
38
- std::vector<std::pair<std::set<std::string>, std::vector<std::string>>> file_args = {
39
- {{" random1.fasta" }, {" -r testFiles/random3.N.fastq" , " -d testFiles/test1.kreeq" , " -d testFiles/test2.kreeq" }},
40
- {{" random4.fasta" }, {" -r testFiles/random4.fastq -k3" }},
41
- {{" to_correct.fasta" }, {" -r testFiles/to_correct.fastq" , " -r testFiles/to_correct.fastq -o gfa" , " -r testFiles/to_correct.fastq -o vcf" , " -r testFiles/to_correct.fastq -o vcf -p testFiles/random1.anomalies.bed" }}
42
- // {{set of test inputs}, {list of command line args to run with}}
43
- };
44
38
45
39
for (const std::string &file : list_dir (" testFiles" )) {
46
40
std::string ext = getFileExt (file);
@@ -53,18 +47,8 @@ int main(void) {
53
47
}
54
48
}
55
49
}
56
-
57
- std::fstream fstream;
58
- for (const auto &pair : file_args) {
59
- for (const std::string &file : pair.first ) {
60
- fstream.open (" testFiles/" +file);
61
- if (!fstream) continue ;
62
- fstream.close ();
63
- for (const std::string &args : pair.second ) {
64
- genTest (" kreeq" , " validate" , " -f testFiles/" + file, args);
65
- }
66
- }
67
- }
50
+
51
+ std::vector<std::pair<std::set<std::string>, std::vector<std::string>>> file_args;
68
52
69
53
// test union
70
54
file_args = {
@@ -126,5 +110,24 @@ int main(void) {
126
110
}
127
111
}
128
112
}
113
+
114
+ // test variant calling
115
+ file_args = {
116
+ {{" to_correct.fasta" }, {" -r testFiles/to_correct.fastq -o vcf --search-depth 50 --max-span 32" }}
117
+ // {{set of test inputs}, {list of command line args to run with}}
118
+ };
119
+
120
+ std::fstream fstream;
121
+ for (const auto &pair : file_args) {
122
+ for (const std::string &file : pair.first ) {
123
+ fstream.open (" testFiles/" +file);
124
+ if (!fstream) continue ;
125
+ fstream.close ();
126
+ for (const std::string &args : pair.second ) {
127
+ genTest (" kreeq" , " validate" , " -f testFiles/" + file, args);
128
+ }
129
+ }
130
+ }
131
+
129
132
std::exit (EXIT_SUCCESS);
130
133
}
0 commit comments