VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.3/test/testutil/main.c@ 97220

Last change on this file since 97220 was 94320, checked in by vboxsync, 3 years ago

libs/openssl-3.0.1: Export to OSE and fix copyright headers in Makefiles, bugref:10128

File size: 931 bytes
Line 
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
10#include "../testutil.h"
11#include "output.h"
12#include "tu_local.h"
13
14
15int main(int argc, char *argv[])
16{
17 int ret = EXIT_FAILURE;
18
19 test_open_streams();
20
21 if (!global_init()) {
22 test_printf_stderr("Global init failed - aborting\n");
23 return ret;
24 }
25
26 if (!setup_test_framework(argc, argv))
27 goto end;
28
29 if (setup_tests()) {
30 ret = run_tests(argv[0]);
31 cleanup_tests();
32 opt_check_usage();
33 } else {
34 opt_help(test_get_options());
35 }
36end:
37 ret = pulldown_test_framework(ret);
38 test_close_streams();
39 return ret;
40}
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette