tu_local.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. int subtest_level(void);
  14. int openssl_error_cb(const char *str, size_t len, void *u);
  15. const BIO_METHOD *BIO_f_tap(void);
  16. void test_fail_message_prefix(const char *prefix, const char *file,
  17. int line, const char *type,
  18. const char *left, const char *right,
  19. const char *op);
  20. void test_fail_string_message(const char *prefix, const char *file,
  21. int line, const char *type,
  22. const char *left, const char *right,
  23. const char *op, const char *m1, size_t l1,
  24. const char *m2, size_t l2);
  25. void test_fail_bignum_message(const char *prefix, const char *file,
  26. int line, const char *type,
  27. const char *left, const char *right,
  28. const char *op,
  29. const BIGNUM *bn1, const BIGNUM *bn2);
  30. void test_fail_bignum_mono_message(const char *prefix, const char *file,
  31. int line, const char *type,
  32. const char *left, const char *right,
  33. const char *op, const BIGNUM *bn);
  34. void test_fail_memory_message(const char *prefix, const char *file,
  35. int line, const char *type,
  36. const char *left, const char *right,
  37. const char *op,
  38. const unsigned char *m1, size_t l1,
  39. const unsigned char *m2, size_t l2);
  40. __owur int setup_test_framework(int argc, char *argv[]);
  41. __owur int pulldown_test_framework(int ret);
  42. __owur int run_tests(const char *test_prog_name);
  43. void set_test_title(const char *title);
  44. typedef enum OPTION_choice_default {
  45. OPT_ERR = -1,
  46. OPT_EOF = 0,
  47. OPT_TEST_ENUM
  48. } OPTION_CHOICE_DEFAULT;
  49. void opt_check_usage(void);