Trevor Bentley
ef81054dc2
Add automated tests for yubico-piv-tool CLI (hw-tests only)
2017-10-23 16:25:59 +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
d8bda22cdd
rework inout test to use pipes for emulating files
2015-12-17 10:18:01 +01:00
Klas Lindfors
3f874dd147
don't use tmpfile(), it's broken on windows
2015-12-17 09:54:52 +01:00
Klas Lindfors
e2f8ad21aa
add a simple test case for the dump/read data functions
2015-12-17 09:27:20 +01: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
d2e0a3bc79
add --enable-coverage for lcov
2015-01-20 13:06:07 +01:00
Klas Lindfors
caf64fc464
add valgrind for tests
2014-12-09 15:11:22 +01:00
Klas Lindfors
052194c0ff
use PACKAGE_VERSION to obtain version instead
...
seems to work more reliably?
2014-08-26 13:18:07 +02:00
Klas Lindfors
7338dcae8a
some negative tests of parse_name()
2014-06-24 15:22:33 +02:00
Klas Lindfors
5cdad1d785
constify
2014-06-24 10:39:17 +02:00
Klas Lindfors
cdcbec8140
test for parse_name()
2014-06-24 10:28:45 +02:00
Klas Lindfors
72f271ae73
move basic.sh test to subdir of tool
2014-06-24 09:50:11 +02:00