Skip to content

Commit

Permalink
improved coverage hostapd (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
SinghHrmn committed May 6, 2020
1 parent eaccc23 commit 8e8555a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/binaries/test-host.apd-2.4.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <stdio.h>

int main() {
printf("This program is designed to test the cve-bin-tool checker.");
printf("It outputs a few strings normally associated with hostapd-2.4");
printf("They appear below this line.");
printf("------------------");
printf("hostapd v2.4");

return 0;
}
18 changes: 18 additions & 0 deletions test/test_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,24 @@ def _file_test(self, url, filename, package, version):
"CVE-2012-2389"
],
),
(
"test-host.apd-2.4.out",
"hostapd",
"2.4",
[
# Check for known cves in this version
"CVE-2019-16275",
"CVE-2019-13377",
"CVE-2019-11555",
"CVE-2017-13088",
"CVE-2017-13087",
"CVE-2017-13086",
],
[
# Check to make sure an older CVE isn't included
"CVE-2012-2389"
],
),
(
"test-strongswan-4.6.3.out",
"strongswan",
Expand Down

0 comments on commit 8e8555a

Please sign in to comment.