2
0

main.c 931 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright 2016-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 "../testutil.h"
  10. #include "output.h"
  11. #include "tu_local.h"
  12. int main(int argc, char *argv[])
  13. {
  14. int ret = EXIT_FAILURE;
  15. test_open_streams();
  16. if (!global_init()) {
  17. test_printf_stderr("Global init failed - aborting\n");
  18. return ret;
  19. }
  20. if (!setup_test_framework(argc, argv))
  21. goto end;
  22. if (setup_tests()) {
  23. ret = run_tests(argv[0]);
  24. cleanup_tests();
  25. opt_check_usage();
  26. } else {
  27. opt_help(test_get_options());
  28. }
  29. end:
  30. ret = pulldown_test_framework(ret);
  31. test_close_streams();
  32. return ret;
  33. }