1
0
mirror of https://github.com/opencryptoki/opencryptoki.git synced 2026-10-24 05:39:17 +03:00

15 Commits

Author SHA1 Message Date
Ashley Lai
ef0ec85a58 Added Elliptic Curve support
Signed-off-by: Ashley Lai <adlai@us.ibm.com>
2011-05-11 15:17:08 -05:00
Klaus Heinrich Kiwi
0f2514cd23 testsuite: Proper session handling in regress.h macros
If we fail to create a session, invalidade the session
  handler and check that when closing sessions.

  Trying to C_CloseSession() on an invalid handle may
  segfault the caller.

Signed-off-by: Klaus Heinrich Kiwi <klausk@linux.vnet.ibm.com>
2010-12-18 17:32:50 -02:00
Klaus Heinrich Kiwi
8a05dedc86 testsuite: add a bunch of new macros to regress.h
Add many new macros with the aim of simplifying
    testcases.

Signed-off-by: Klaus Heinrich Kiwi <klausk@linux.vnet.ibm.com>
2010-12-08 17:56:39 -02:00
Klaus Heinrich Kiwi
7c632b898c testsuite: Introduce standard pass/fail/skip/error macros
Introduce testcase_[pass|fail|skip|error] macros to be used
  across the testsuite and thus standardize testcases format and
  output.

  The macros will also try to time the operation execution, now
  with microsecond resolution.

  I've also provided testcase_*_f alternatives for cases where
  we need to manually identify the test (instead of just using
  __func__).

  This patch also "converts" obj_mgmt.c tests to use the new
  macros.

Signed-off-by: Klaus Heinrich Kiwi <klausk@linux.vnet.ibm.com>
2010-08-30 12:38:19 -03:00
Klaus Heinrich Kiwi
47571bbeab Start consolidating pkcs#11 utility functions
Opencryptoki has a number of places which use misc pkcs#11 utility
  functions.

  This patch creates p11util.c which to start consolidating those
  functions in one place.

Signed-off-by: Klaus Heinrich Kiwi <klausk@linux.vnet.ibm.com>
2010-08-17 12:31:47 -03:00
Kent Yoder
2ea423f04e driver testcase updates: regress.h
- remove incorrect/unused prototypes

Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>

 testcases/include/regress.h |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)
2010-08-13 16:50:01 -03:00
Kent Yoder
02d045d533 update show_error to print file and line numbers for any test errors
This patch makes the show_error() function used by the testcases a macro, then adds printing of a file and line number wherever its called.  This patch also changes the file descriptor these strings print to from stdout to stderr.  This will make finding errors in automated test runs easier.

Thanks,
Kent

Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
2010-07-31 01:26:20 -03:00
phreakz
d0de9a0d29 Testcases improvements:
- Now testcases inside testcases/driver can be run separatedly
- ock-tests.sh now calls individual tests instead of testcases/driver/driver binary
- since all usage() were the same inside testcases/driver, this is now located at testcases/common.c. To avoid namespace conflict, the other usage() ones were renamed to <testcase_binary_name>_usage()
- skip_token_obj, no_stop and no_init are now declared in testcases/include/regress,h
2008-11-11 13:17:22 +00:00
danielhjones
02ee059e58 Cleanup compiler warnings. 2006-06-15 21:23:18 +00:00
kyoder
e5c16edfe6 testcase complete rework 2006-04-21 15:14:30 +00:00
kyoder
f789042d44 merge with cleanup branch 2006-04-05 20:07:40 +00:00
mhalcrow
e168a9fce9 Set the testcase pins correctly 2005-11-03 20:02:13 +00:00
kyoder
1fe8ca54f5 tie all passwords into on #define in include/regress.h 2005-06-17 15:35:16 +00:00
mhalcrow
8ae034954c Set of patches from Kent Yoder:
- libtoolize
 - configurable paths
 - lib/*.so64 -> lib64/*.so
 - nix AIX #ifdef's
 - nix LINUX #ifdef's
 - Genral cleanup
2005-02-22 20:45:39 +00:00
kyoder
9961353e5b Initial revision 2005-01-18 16:08:12 +00:00