]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/testutil/main.c
x86: Always generate .note.gnu.property section for ELF outputs
[thirdparty/openssl.git] / test / testutil / main.c
CommitLineData
e364c3b2 1/*
a43ce58f 2 * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
e364c3b2 3 *
909f1a2e 4 * Licensed under the Apache License 2.0 (the "License"). You may not use
e364c3b2
EK
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
4db40c94 10#include "../testutil.h"
ad887416
P
11#include "output.h"
12#include "tu_local.h"
13
e364c3b2
EK
14
15int main(int argc, char *argv[])
16{
ad887416
P
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
a43ce58f
SL
26 if (!setup_test_framework(argc, argv))
27 goto end;
ad887416 28
a43ce58f 29 if (setup_tests()) {
ad887416 30 ret = run_tests(argv[0]);
a43ce58f
SL
31 cleanup_tests();
32 opt_check_usage();
33 } else {
34 opt_help(test_get_options());
35 }
36end:
ad887416
P
37 ret = pulldown_test_framework(ret);
38 test_close_streams();
df443918 39 return ret;
ad887416 40}