Trevor Bentley
7818b49e7d
Skip unusable integration tests when testing a NEO
2017-10-31 15:40:51 +01:00
Trevor Bentley
252226220a
Disable ensure_application_selected() by default, since it breaks PIN policy.
2017-10-31 12:29:16 +01:00
Trevor Bentley
a7eb0657f1
Fix compile time warnings about -no-install on Darwin/clang
2017-10-26 12:37:05 +02:00
Trevor Bentley
15f533d7de
Move hardware tests to "make hwtest", with one warning for all test suites.
...
- "make check" will mark destructive tests as skipped
- "make hwtest" will ask once for user confirmation
2017-10-24 15:10:45 +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
Trevor Bentley
ba7d256ecf
Fix test cases: uninitialized memory and non-terminated string compare
2017-10-23 16:21:46 +02:00
Simon Josefsson
89bec1260a
Improve license headers.
2016-08-12 15:30:06 +02:00
Klas Lindfors
fead011e71
add copyright and license header
2016-08-12 13:37:56 +02:00
Klas Lindfors
35c449e374
change multiplication of minor to 10 so we don't overflow
...
possibly temporary fix..
2015-12-14 12:48:28 +01:00
Jakub Jelen
b784f0ea8d
Get rid of warnings about unused functions when running without HW_TESTS
2015-12-08 13:27:04 +01:00
Alessio Di Mauro
e949618ec2
YKCS11: started adding RSA test.
2015-11-27 17:13:54 +01:00
Alessio Di Mauro
4e8f818e82
YKCS11: add more tests.
2015-11-27 15:43:32 +01:00
Alessio Di Mauro
59faa09c7a
YKCS11: started test on key import and signatures.
2015-11-27 15:43:32 +01:00
Alessio Di Mauro
ef81317183
YKCS11: Test logins.
2015-11-27 15:43:32 +01:00
Alessio Di Mauro
ab92c90071
Report disabled hw test in the logfile of the test.
2015-11-27 15:43:32 +01:00
Alessio Di Mauro
a5387c12e7
YKCS11: Add more to session tests.
2015-11-27 15:43:31 +01:00
Alessio Di Mauro
6764639982
YKCS11: test session.
2015-11-27 15:43:31 +01:00
Alessio Di Mauro
a0d4e9b887
YKCS11: test mechanisms.
2015-11-27 15:43:31 +01:00
Alessio Di Mauro
523ab1d365
More YKCS11 tests.
2015-11-24 18:56:43 +01:00
Alessio Di Mauro
262f5f4771
Make ykcs11 functions pointer global to all tests.
2015-11-24 17:02:02 +01:00
Alessio Di Mauro
0f1b05494a
Add/fix some prints for tests.
2015-11-24 16:52:31 +01:00
Alessio Di Mauro
56415dbc2d
Whitespace fix.
2015-11-24 16:50:27 +01:00
Alessio Di Mauro
cc8cb59f8c
Added infrastructure for hardware tests.
2015-11-24 15:30:35 +01:00
Alessio Di Mauro
89e02dc669
YKCS11: Do not call initialize for the YKCS11 tests.
...
If initialize is called, the test requires a YubiKey with a working
PIV application in order to function.
2015-11-12 01:12:36 +01:00
Alessio Di Mauro
51edf57568
Ignore more.
2015-11-12 01:12:17 +01:00
Alessio Di Mauro
5407eb4c69
YKCS11: add basic tests.
...
Signed-off-by: Alessio Di Mauro <alessio@yubico.com >
2015-11-12 00:52:19 +01:00