Commit Graph

10 Commits

Author SHA1 Message Date
Trevor Bentley cffe862bbc Test cases for ykpiv_util_* functions 2017-10-23 16:22:01 +02:00
Trevor Bentley 0d2b85fcef Switch test cases to use libcheck framework
This keeps the test logic the same, but moves most of them into the libcheck
test suite framework.  It gives better control over grouping related tests,
running them in parallel, and reporting on multiple failures.

Running in parallel also brings problems, so libykcs11 tests are left
untouched.  Parallel access to a single hardware DUT does not make sense,
and pcsc-lite doesn't work after a fork() in OS X 10.11+, so it can't run
in libcheck's tests anyway.
2017-10-23 16:21:50 +02:00
Simon Josefsson 89bec1260a Improve license headers. 2016-08-12 15:30:06 +02:00
Klas Lindfors 69326b868d actually run valgrind for the tests 2015-10-09 10:40:59 +02:00
Klas Lindfors 3b080dca45 relicense to 2-clause BSD license 2015-07-01 16:34:20 +02:00
Klas Lindfors 220f0f0226 add a negative test for the hex decode 2015-02-03 10:56:13 +01:00
Klas Lindfors 8b36d6706d add a test with uppercase hex 2015-02-02 10:40:41 +01:00
Klas Lindfors caf64fc464 add valgrind for tests 2014-12-09 15:11:22 +01:00
Klas Lindfors b66f81b324 replace ykpiv_parse_key() with ykpiv_hex_decode() 2014-06-27 15:06:44 +02:00
Klas Lindfors b048ea85e5 move lib tests under lib 2014-06-24 09:52:10 +02:00