tu_local.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #include <stdlib.h> /* size_t */
  10. #include <openssl/bn.h>
  11. #include <openssl/bio.h>
  12. #include "../testutil.h"
  13. #define TEST_SKIP_CODE 123
  14. int subtest_level(void);
  15. int openssl_error_cb(const char *str, size_t len, void *u);
  16. const BIO_METHOD *BIO_f_tap(void);
  17. void test_fail_message_prefix(const char *prefix, const char *file,
  18. int line, const char *type,
  19. const char *left, const char *right,
  20. const char *op);
  21. void test_fail_string_message(const char *prefix, const char *file,
  22. int line, const char *type,
  23. const char *left, const char *right,
  24. const char *op, const char *m1, size_t l1,
  25. const char *m2, size_t l2);
  26. void test_fail_bignum_message(const char *prefix, const char *file,
  27. int line, const char *type,
  28. const char *left, const char *right,
  29. const char *op,
  30. const BIGNUM *bn1, const BIGNUM *bn2);
  31. void test_fail_bignum_mono_message(const char *prefix, const char *file,
  32. int line, const char *type,
  33. const char *left, const char *right,
  34. const char *op, const BIGNUM *bn);
  35. void test_fail_memory_message(const char *prefix, const char *file,
  36. int line, const char *type,
  37. const char *left, const char *right,
  38. const char *op,
  39. const unsigned char *m1, size_t l1,
  40. const unsigned char *m2, size_t l2);
  41. __owur int setup_test_framework(int argc, char *argv[]);
  42. __owur int pulldown_test_framework(int ret);
  43. __owur int run_tests(const char *test_prog_name);
  44. void set_test_title(const char *title);
  45. typedef enum OPTION_choice_default {
  46. OPT_ERR = -1,
  47. OPT_EOF = 0,
  48. OPT_TEST_ENUM
  49. } OPTION_CHOICE_DEFAULT;
  50. void opt_check_usage(void);