Skip to content

Commit 1834d4b

Browse files
authored
improved coverage for varnish (#601)
1 parent 3cecb6d commit 1834d4b

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <stdio.h>
2+
3+
int main() {
4+
printf("This program is designed to test the cve-bin-tool checker.");
5+
printf("It outputs a few strings normally associated with varnish_4.1.1");
6+
printf("They appear below this line.");
7+
printf("------------------");
8+
printf("varnish-4.1.1");
9+
10+
return 0;
11+
}

test/test_scanner.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,21 @@ def _file_test(self, url, filename, package, version):
10341034
"CVE-2013-0345",
10351035
],
10361036
),
1037+
(
1038+
"test-var.nish-4.1.1_imprv_covrg.out",
1039+
"varnish",
1040+
"4.1.1",
1041+
[
1042+
# Check for known cves in this version
1043+
"CVE-2017-12425",
1044+
"CVE-2017-8807",
1045+
],
1046+
[
1047+
# Check to make sure an older CVE isn't included
1048+
"CVE-2013-4484",
1049+
"CVE-2013-0345",
1050+
],
1051+
),
10371052
(
10381053
"test-binutils-2.31.1.out",
10391054
"binutils",

0 commit comments

Comments
 (0)