aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-10-23 15:32:15 -0400
committerJack Lloyd <[email protected]>2015-10-23 15:32:15 -0400
commit3e44cbed78eb528daa38f9837d67aa0471ee7bd2 (patch)
tree01539aa0dd511db79e6d218394ea3fd51db94756 /src/tests/tests.cpp
parent69a5a56b38a309241126641149471a36137507a0 (diff)
Fix cert validation bugs found by x509test.
Add test suite with certs from x509test
Diffstat (limited to 'src/tests/tests.cpp')
-rw-r--r--src/tests/tests.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp
index d213b6a3a..61378b1a2 100644
--- a/src/tests/tests.cpp
+++ b/src/tests/tests.cpp
@@ -38,10 +38,10 @@ size_t run_tests_in_dir(const std::string& dir, std::function<size_t (const std:
try
{
auto files = get_files_recursive(dir);
-
+
if (files.empty())
std::cout << "Warning: No test files found in '" << dir << "'" << std::endl;
-
+
for(const auto file: files)
fails += fn(file);
}
@@ -312,6 +312,7 @@ int main(int argc, char* argv[])
DEF_TEST(pk_keygen);
DEF_TEST(cvc);
DEF_TEST(x509);
+ DEF_TEST(x509_x509test);
DEF_TEST(nist_x509);
DEF_TEST(tls);
DEF_TEST(compression);