Lines Matching full:a
5 * this file except in compliance with the License. You can obtain a copy
43 * may be needed. In such a case, this should be implemented:
51 /* Adds a simple test case. */
60 * A variant of the same without TAP output.
69 * SETUP_TEST_FIXTURE will call set_up() to create a new TEST_FIXTURE_TYPE
71 * by EXECUTE_TEST. set_up() should take a const char* specifying the test
72 * case name and return a TEST_FIXTURE_TYPE by reference.
77 * take a TEST_FIXTURE_TYPE by reference and return 1 on success and 0 on
139 /* The Default test OPTIONS common to all tests (without a usage string) */
144 { "test", OPT_TEST_SINGLE, 's', "Run a single test by id or name" }, \
145 { "iter", OPT_TEST_ITERATION, 'n', "Run a single iteration of a test" }, \
211 * Get a library context for the tests, populated with the specified provider
212 * and configuration. If default_null_prov is not NULL, a "null" provider is
234 * The first two return a boolean indicating that the test should not proceed.
242 * Because of FIPS rules, code changes after a module has been validated are
243 * difficult and because we provide a hard guarantee of ABI and behavioural
244 * stability going forwards, it is a requirement to have tests be conditional
248 * The reason for not including e.g. a less than test is to help avoid any
250 * `new' provider is validated, its version isn't set in stone. Thus a change
290 # define PRINTF_FORMAT(a, b) argument
300 # define PRINTF_FORMAT(a, b) __attribute__ ((format(printf, a, b))) argument
329 * Because this comparison uses a printf format specifier that's not
348 * Equality tests for strings where NULL is a legitimate value.
360 const char *a, size_t an, const char *b, size_t bn);
362 const char *a, size_t an, const char *b, size_t bn);
365 * Equality test for memory blocks where NULL is a legitimate value.
376 * Check a boolean result for being true or false.
391 int test_BN_eq_zero(const char *file, int line, const char *s, const BIGNUM *a);
392 int test_BN_ne_zero(const char *file, int line, const char *s, const BIGNUM *a);
393 int test_BN_lt_zero(const char *file, int line, const char *s, const BIGNUM *a);
394 int test_BN_le_zero(const char *file, int line, const char *s, const BIGNUM *a);
395 int test_BN_gt_zero(const char *file, int line, const char *s, const BIGNUM *a);
396 int test_BN_ge_zero(const char *file, int line, const char *s, const BIGNUM *a);
397 int test_BN_eq_one(const char *file, int line, const char *s, const BIGNUM *a);
398 int test_BN_odd(const char *file, int line, const char *s, const BIGNUM *a);
399 int test_BN_even(const char *file, int line, const char *s, const BIGNUM *a);
401 const BIGNUM *a, BN_ULONG w);
403 const char *ws, const BIGNUM *a, BN_ULONG w);
406 * Pretty print a failure message.
424 * a default description that indicates the file and line number of the error.
432 # define TEST_int_eq(a, b) test_int_eq(__FILE__, __LINE__, #a, #b, a, b) argument
433 # define TEST_int_ne(a, b) test_int_ne(__FILE__, __LINE__, #a, #b, a, b) argument
434 # define TEST_int_lt(a, b) test_int_lt(__FILE__, __LINE__, #a, #b, a, b) argument
435 # define TEST_int_le(a, b) test_int_le(__FILE__, __LINE__, #a, #b, a, b) argument
436 # define TEST_int_gt(a, b) test_int_gt(__FILE__, __LINE__, #a, #b, a, b) argument
437 # define TEST_int_ge(a, b) test_int_ge(__FILE__, __LINE__, #a, #b, a, b) argument
439 # define TEST_uint_eq(a, b) test_uint_eq(__FILE__, __LINE__, #a, #b, a, b) argument
440 # define TEST_uint_ne(a, b) test_uint_ne(__FILE__, __LINE__, #a, #b, a, b) argument
441 # define TEST_uint_lt(a, b) test_uint_lt(__FILE__, __LINE__, #a, #b, a, b) argument
442 # define TEST_uint_le(a, b) test_uint_le(__FILE__, __LINE__, #a, #b, a, b) argument
443 # define TEST_uint_gt(a, b) test_uint_gt(__FILE__, __LINE__, #a, #b, a, b) argument
444 # define TEST_uint_ge(a, b) test_uint_ge(__FILE__, __LINE__, #a, #b, a, b) argument
446 # define TEST_char_eq(a, b) test_char_eq(__FILE__, __LINE__, #a, #b, a, b) argument
447 # define TEST_char_ne(a, b) test_char_ne(__FILE__, __LINE__, #a, #b, a, b) argument
448 # define TEST_char_lt(a, b) test_char_lt(__FILE__, __LINE__, #a, #b, a, b) argument
449 # define TEST_char_le(a, b) test_char_le(__FILE__, __LINE__, #a, #b, a, b) argument
450 # define TEST_char_gt(a, b) test_char_gt(__FILE__, __LINE__, #a, #b, a, b) argument
451 # define TEST_char_ge(a, b) test_char_ge(__FILE__, __LINE__, #a, #b, a, b) argument
453 # define TEST_uchar_eq(a, b) test_uchar_eq(__FILE__, __LINE__, #a, #b, a, b) argument
454 # define TEST_uchar_ne(a, b) test_uchar_ne(__FILE__, __LINE__, #a, #b, a, b) argument
455 # define TEST_uchar_lt(a, b) test_uchar_lt(__FILE__, __LINE__, #a, #b, a, b) argument
456 # define TEST_uchar_le(a, b) test_uchar_le(__FILE__, __LINE__, #a, #b, a, b) argument
457 # define TEST_uchar_gt(a, b) test_uchar_gt(__FILE__, __LINE__, #a, #b, a, b) argument
458 # define TEST_uchar_ge(a, b) test_uchar_ge(__FILE__, __LINE__, #a, #b, a, b) argument
460 # define TEST_long_eq(a, b) test_long_eq(__FILE__, __LINE__, #a, #b, a, b) argument
461 # define TEST_long_ne(a, b) test_long_ne(__FILE__, __LINE__, #a, #b, a, b) argument
462 # define TEST_long_lt(a, b) test_long_lt(__FILE__, __LINE__, #a, #b, a, b) argument
463 # define TEST_long_le(a, b) test_long_le(__FILE__, __LINE__, #a, #b, a, b) argument
464 # define TEST_long_gt(a, b) test_long_gt(__FILE__, __LINE__, #a, #b, a, b) argument
465 # define TEST_long_ge(a, b) test_long_ge(__FILE__, __LINE__, #a, #b, a, b) argument
467 # define TEST_ulong_eq(a, b) test_ulong_eq(__FILE__, __LINE__, #a, #b, a, b) argument
468 # define TEST_ulong_ne(a, b) test_ulong_ne(__FILE__, __LINE__, #a, #b, a, b) argument
469 # define TEST_ulong_lt(a, b) test_ulong_lt(__FILE__, __LINE__, #a, #b, a, b) argument
470 # define TEST_ulong_le(a, b) test_ulong_le(__FILE__, __LINE__, #a, #b, a, b) argument
471 # define TEST_ulong_gt(a, b) test_ulong_gt(__FILE__, __LINE__, #a, #b, a, b) argument
472 # define TEST_ulong_ge(a, b) test_ulong_ge(__FILE__, __LINE__, #a, #b, a, b) argument
474 # define TEST_int64_t_eq(a, b) test_int64_t_eq(__FILE__, __LINE__, #a, #b, a, b) argument
475 # define TEST_int64_t_ne(a, b) test_int64_t_ne(__FILE__, __LINE__, #a, #b, a, b) argument
476 # define TEST_int64_t_lt(a, b) test_int64_t_lt(__FILE__, __LINE__, #a, #b, a, b) argument
477 # define TEST_int64_t_le(a, b) test_int64_t_le(__FILE__, __LINE__, #a, #b, a, b) argument
478 # define TEST_int64_t_gt(a, b) test_int64_t_gt(__FILE__, __LINE__, #a, #b, a, b) argument
479 # define TEST_int64_t_ge(a, b) test_int64_t_ge(__FILE__, __LINE__, #a, #b, a, b) argument
481 # define TEST_uint64_t_eq(a, b) test_uint64_t_eq(__FILE__, __LINE__, #a, #b, a, b) argument
482 # define TEST_uint64_t_ne(a, b) test_uint64_t_ne(__FILE__, __LINE__, #a, #b, a, b) argument
483 # define TEST_uint64_t_lt(a, b) test_uint64_t_lt(__FILE__, __LINE__, #a, #b, a, b) argument
484 # define TEST_uint64_t_le(a, b) test_uint64_t_le(__FILE__, __LINE__, #a, #b, a, b) argument
485 # define TEST_uint64_t_gt(a, b) test_uint64_t_gt(__FILE__, __LINE__, #a, #b, a, b) argument
486 # define TEST_uint64_t_ge(a, b) test_uint64_t_ge(__FILE__, __LINE__, #a, #b, a, b) argument
488 # define TEST_size_t_eq(a, b) test_size_t_eq(__FILE__, __LINE__, #a, #b, a, b) argument
489 # define TEST_size_t_ne(a, b) test_size_t_ne(__FILE__, __LINE__, #a, #b, a, b) argument
490 # define TEST_size_t_lt(a, b) test_size_t_lt(__FILE__, __LINE__, #a, #b, a, b) argument
491 # define TEST_size_t_le(a, b) test_size_t_le(__FILE__, __LINE__, #a, #b, a, b) argument
492 # define TEST_size_t_gt(a, b) test_size_t_gt(__FILE__, __LINE__, #a, #b, a, b) argument
493 # define TEST_size_t_ge(a, b) test_size_t_ge(__FILE__, __LINE__, #a, #b, a, b) argument
495 # define TEST_double_eq(a, b) test_double_eq(__FILE__, __LINE__, #a, #b, a, b) argument
496 # define TEST_double_ne(a, b) test_double_ne(__FILE__, __LINE__, #a, #b, a, b) argument
497 # define TEST_double_lt(a, b) test_double_lt(__FILE__, __LINE__, #a, #b, a, b) argument
498 # define TEST_double_le(a, b) test_double_le(__FILE__, __LINE__, #a, #b, a, b) argument
499 # define TEST_double_gt(a, b) test_double_gt(__FILE__, __LINE__, #a, #b, a, b) argument
500 # define TEST_double_ge(a, b) test_double_ge(__FILE__, __LINE__, #a, #b, a, b) argument
502 # define TEST_time_t_eq(a, b) test_time_t_eq(__FILE__, __LINE__, #a, #b, a, b) argument
503 # define TEST_time_t_ne(a, b) test_time_t_ne(__FILE__, __LINE__, #a, #b, a, b) argument
504 # define TEST_time_t_lt(a, b) test_time_t_lt(__FILE__, __LINE__, #a, #b, a, b) argument
505 # define TEST_time_t_le(a, b) test_time_t_le(__FILE__, __LINE__, #a, #b, a, b) argument
506 # define TEST_time_t_gt(a, b) test_time_t_gt(__FILE__, __LINE__, #a, #b, a, b) argument
507 # define TEST_time_t_ge(a, b) test_time_t_ge(__FILE__, __LINE__, #a, #b, a, b) argument
509 # define TEST_ptr_eq(a, b) test_ptr_eq(__FILE__, __LINE__, #a, #b, a, b) argument
510 # define TEST_ptr_ne(a, b) test_ptr_ne(__FILE__, __LINE__, #a, #b, a, b) argument
511 # define TEST_ptr(a) test_ptr(__FILE__, __LINE__, #a, a) argument
512 # define TEST_ptr_null(a) test_ptr_null(__FILE__, __LINE__, #a, a) argument
514 # define TEST_str_eq(a, b) test_str_eq(__FILE__, __LINE__, #a, #b, a, b) argument
515 # define TEST_str_ne(a, b) test_str_ne(__FILE__, __LINE__, #a, #b, a, b) argument
516 # define TEST_strn_eq(a, b, n) test_strn_eq(__FILE__, __LINE__, #a, #b, a, n, b, n) argument
517 # define TEST_strn_ne(a, b, n) test_strn_ne(__FILE__, __LINE__, #a, #b, a, n, b, n) argument
518 # define TEST_strn2_eq(a, m, b, n) test_strn_eq(__FILE__, __LINE__, #a, #b, a, m, b, n) argument
519 # define TEST_strn2_ne(a, m, b, n) test_strn_ne(__FILE__, __LINE__, #a, #b, a, m, b, n) argument
521 # define TEST_mem_eq(a, m, b, n) test_mem_eq(__FILE__, __LINE__, #a, #b, a, m, b, n) argument
522 # define TEST_mem_ne(a, m, b, n) test_mem_ne(__FILE__, __LINE__, #a, #b, a, m, b, n) argument
524 # define TEST_true(a) test_true(__FILE__, __LINE__, #a, (a) != 0) argument
525 # define TEST_false(a) test_false(__FILE__, __LINE__, #a, (a) != 0) argument
527 # define TEST_BN_eq(a, b) test_BN_eq(__FILE__, __LINE__, #a, #b, a, b) argument
528 # define TEST_BN_ne(a, b) test_BN_ne(__FILE__, __LINE__, #a, #b, a, b) argument
529 # define TEST_BN_lt(a, b) test_BN_lt(__FILE__, __LINE__, #a, #b, a, b) argument
530 # define TEST_BN_gt(a, b) test_BN_gt(__FILE__, __LINE__, #a, #b, a, b) argument
531 # define TEST_BN_le(a, b) test_BN_le(__FILE__, __LINE__, #a, #b, a, b) argument
532 # define TEST_BN_ge(a, b) test_BN_ge(__FILE__, __LINE__, #a, #b, a, b) argument
533 # define TEST_BN_eq_zero(a) test_BN_eq_zero(__FILE__, __LINE__, #a, a) argument
534 # define TEST_BN_ne_zero(a) test_BN_ne_zero(__FILE__, __LINE__, #a, a) argument
535 # define TEST_BN_lt_zero(a) test_BN_lt_zero(__FILE__, __LINE__, #a, a) argument
536 # define TEST_BN_gt_zero(a) test_BN_gt_zero(__FILE__, __LINE__, #a, a) argument
537 # define TEST_BN_le_zero(a) test_BN_le_zero(__FILE__, __LINE__, #a, a) argument
538 # define TEST_BN_ge_zero(a) test_BN_ge_zero(__FILE__, __LINE__, #a, a) argument
539 # define TEST_BN_eq_one(a) test_BN_eq_one(__FILE__, __LINE__, #a, a) argument
540 # define TEST_BN_eq_word(a, w) test_BN_eq_word(__FILE__, __LINE__, #a, #w, a, w) argument
541 # define TEST_BN_abs_eq_word(a, w) test_BN_abs_eq_word(__FILE__, __LINE__, #a, #w, a, w) argument
542 # define TEST_BN_odd(a) test_BN_odd(__FILE__, __LINE__, #a, a) argument
543 # define TEST_BN_even(a) test_BN_even(__FILE__, __LINE__, #a, a) argument
547 * format. |desc| is a printf format string.
578 * Utilities to parse a test file.
607 * Read a stanza from the test file. A stanza consists of a block
610 * The block is terminated by EOF or a blank line.
616 * Clear a stanza, release all allocated memory.
646 /* Create a file path from a directory and a filename */