コード例 #1
0
ファイル: test-digest.c プロジェクト: Distrotech/p11-kit
int
main (int argc,
      char *argv[])
{
	p11_test (test_sha1, "/digest/sha1");
	p11_test (test_sha1_long, "/digest/sha1-long");
	p11_test (test_md5, "/digest/md5");
	return p11_test_run (argc, argv);
}
コード例 #2
0
ファイル: test-virtual.c プロジェクト: Distrotech/p11-kit
int
main (int argc,
      char *argv[])
{
	mock_module_init ();
	p11_library_init ();

	assert (p11_virtual_can_wrap ());
	p11_test (test_initialize, "/virtual/test_initialize");
	p11_test (test_fall_through, "/virtual/test_fall_through");
	p11_test (test_get_function_list, "/virtual/test_get_function_list");

	return p11_test_run (argc, argv);
}
コード例 #3
0
ファイル: test-proxy.c プロジェクト: SvenDowideit/clearlinux
int
main (int argc,
      char *argv[])
{
	p11_library_init ();
	p11_kit_be_quiet ();

	p11_test (test_initialize_finalize, "/proxy/initialize-finalize");
	p11_test (test_initialize_multiple, "/proxy/initialize-multiple");

	test_mock_add_tests ("/proxy");

	return p11_test_run (argc, argv);
}
コード例 #4
0
ファイル: test-lexer.c プロジェクト: Distrotech/p11-kit
int
main (int argc,
      char *argv[])
{
	p11_test (test_basic, "/lexer/basic");
	p11_test (test_corners, "/lexer/corners");
	p11_test (test_following, "/lexer/following");
	p11_test (test_bad_pem, "/lexer/bad-pem");
	p11_test (test_bad_section, "/lexer/bad-section");
	p11_test (test_bad_value, "/lexer/bad-value");
	return p11_test_run (argc, argv);
}
コード例 #5
0
ファイル: test-dict.c プロジェクト: Distrotech/p11-kit
int
main (int argc,
      char *argv[])
{
	p11_test (test_create, "/dict/create");
	p11_test (test_set_get, "/dict/set-get");
	p11_test (test_set_get_remove, "/dict/set-get-remove");
	p11_test (test_remove_destroys, "/dict/remove-destroys");
	p11_test (test_set_clear, "/dict/set-clear");
	p11_test (test_set_destroys, "/dict/set-destroys");
	p11_test (test_clear_destroys, "/dict/clear-destroys");
	p11_test (test_free_null, "/dict/free-null");
	p11_test (test_free_destroys, "/dict/free-destroys");
	p11_test (test_iterate, "/dict/iterate");
	p11_test (test_iterate_remove, "/dict/iterate-remove");
	p11_test (test_hash_add_check_lots_and_collisions, "/dict/add-check-lots-and-collisions");
	p11_test (test_hash_count, "/dict/count");
	p11_test (test_hash_ulongptr, "/dict/ulongptr");
	return p11_test_run (argc, argv);
}
コード例 #6
0
ファイル: test-uri.c プロジェクト: p11-glue/p11-kit
int
main (int argc,
      char *argv[])
{
	p11_test (test_uri_parse, "/uri/test_uri_parse");
	p11_test (test_uri_parse_bad_scheme, "/uri/test_uri_parse_bad_scheme");
	p11_test (test_uri_parse_with_label, "/uri/test_uri_parse_with_label");
	p11_test (test_uri_parse_with_empty_label, "/uri/test_uri_parse_with_empty_label");
	p11_test (test_uri_parse_with_empty_id, "/uri/test_uri_parse_with_empty_id");
	p11_test (test_uri_parse_with_label_and_klass, "/uri/test_uri_parse_with_label_and_klass");
	p11_test (test_uri_parse_with_label_and_new_klass, "/uri/parse-with-label-and-new-class");
	p11_test (test_uri_parse_with_id, "/uri/test_uri_parse_with_id");
	p11_test (test_uri_parse_with_bad_string_encoding, "/uri/test_uri_parse_with_bad_string_encoding");
	p11_test (test_uri_parse_with_bad_hex_encoding, "/uri/test_uri_parse_with_bad_hex_encoding");
	p11_test (test_uri_parse_with_token, "/uri/test_uri_parse_with_token");
	p11_test (test_uri_parse_with_token_bad_encoding, "/uri/test_uri_parse_with_token_bad_encoding");
	p11_test (test_uri_parse_with_bad_syntax, "/uri/test_uri_parse_with_bad_syntax");
	p11_test (test_uri_parse_with_spaces, "/uri/test_uri_parse_with_spaces");
	p11_test (test_uri_parse_with_library, "/uri/test_uri_parse_with_library");
	p11_test (test_uri_parse_with_library_bad_encoding, "/uri/test_uri_parse_with_library_bad_encoding");
	p11_test (test_uri_parse_with_slot, "/uri/test_uri_parse_with_slot");
	p11_test (test_uri_build_empty, "/uri/test_uri_build_empty");
	p11_test (test_uri_build_with_token_info, "/uri/test_uri_build_with_token_info");
	p11_test (test_uri_build_with_token_null_info, "/uri/test_uri_build_with_token_null_info");
	p11_test (test_uri_build_with_token_empty_info, "/uri/test_uri_build_with_token_empty_info");
	p11_test (test_uri_build_with_attributes, "/uri/test_uri_build_with_attributes");
	p11_test (test_uri_build_with_slot_info, "/uri/test_uri_build_with_slot_info");
	p11_test (test_uri_parse_private_key, "/uri/test_uri_parse_private_key");
	p11_test (test_uri_parse_secret_key, "/uri/test_uri_parse_secret_key");
	p11_test (test_uri_parse_library_version, "/uri/test_uri_parse_library_version");
	p11_test (test_uri_parse_parse_unknown_object_type, "/uri/test_uri_parse_parse_unknown_object_type");
	p11_test (test_uri_parse_unrecognized, "/uri/test_uri_parse_unrecognized");
	p11_test (test_uri_parse_too_long_is_unrecognized, "/uri/test_uri_parse_too_long_is_unrecognized");
	p11_test (test_uri_build_object_type_cert, "/uri/test_uri_build_object_type_cert");
	p11_test (test_uri_build_object_type_private, "/uri/test_uri_build_object_type_private");
	p11_test (test_uri_build_object_type_public, "/uri/test_uri_build_object_type_public");
	p11_test (test_uri_build_object_type_secret, "/uri/test_uri_build_object_type_secret");
	p11_test (test_uri_build_with_library, "/uri/test_uri_build_with_library");
	p11_test (test_uri_build_library_version, "/uri/test_uri_build_library_version");
	p11_test (test_uri_get_set_unrecognized, "/uri/test_uri_get_set_unrecognized");
	p11_test (test_uri_match_token, "/uri/test_uri_match_token");
	p11_test (test_uri_match_module, "/uri/test_uri_match_module");
	p11_test (test_uri_match_version, "/uri/test_uri_match_version");
	p11_test (test_uri_match_attributes, "/uri/test_uri_match_attributes");
	p11_test (test_uri_get_set_attribute, "/uri/test_uri_get_set_attribute");
	p11_test (test_uri_get_set_attributes, "/uri/test_uri_get_set_attributes");
	p11_test (test_uri_pin_source, "/uri/test_uri_pin_source");
	p11_test (test_uri_pin_value, "/uri/pin-value");
	p11_test (test_uri_pin_value_bad, "/uri/pin-value-bad");
	p11_test (test_uri_slot_id, "/uri/slot-id");
	p11_test (test_uri_slot_id_bad, "/uri/slot-id-bad");
	p11_test (test_uri_free_null, "/uri/test_uri_free_null");
	p11_test (test_uri_message, "/uri/test_uri_message");

	return p11_test_run (argc, argv);
}