2016-11-07 15:53:15 +00:00
|
|
|
/*
|
2018-08-16 02:36:01 +00:00
|
|
|
* Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
|
2016-11-07 15:53:15 +00:00
|
|
|
*
|
2018-12-06 12:05:25 +00:00
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-11-07 15:53:15 +00:00
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
|
|
|
*/
|
|
|
|
|
2017-04-18 14:27:27 +00:00
|
|
|
#include "../testutil.h"
|
2017-07-18 01:48:27 +00:00
|
|
|
#include "output.h"
|
|
|
|
#include "tu_local.h"
|
|
|
|
|
2016-11-07 15:53:15 +00:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2017-07-18 01:48:27 +00:00
|
|
|
int ret = EXIT_FAILURE;
|
|
|
|
|
|
|
|
test_open_streams();
|
|
|
|
|
|
|
|
if (!global_init()) {
|
|
|
|
test_printf_stderr("Global init failed - aborting\n");
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2018-08-16 02:36:01 +00:00
|
|
|
if (!setup_test_framework(argc, argv))
|
|
|
|
goto end;
|
2017-07-18 01:48:27 +00:00
|
|
|
|
2018-08-16 02:36:01 +00:00
|
|
|
if (setup_tests()) {
|
2017-07-18 01:48:27 +00:00
|
|
|
ret = run_tests(argv[0]);
|
2018-08-16 02:36:01 +00:00
|
|
|
cleanup_tests();
|
|
|
|
opt_check_usage();
|
|
|
|
} else {
|
|
|
|
opt_help(test_get_options());
|
|
|
|
}
|
|
|
|
end:
|
2017-07-18 01:48:27 +00:00
|
|
|
ret = pulldown_test_framework(ret);
|
|
|
|
test_close_streams();
|
2019-01-31 17:55:30 +00:00
|
|
|
return ret;
|
2017-07-18 01:48:27 +00:00
|
|
|
}
|