testutil: make subtest_level() internal
[openssl.git] / test / testutil / test_main.c
1 /*
2  * Copyright 2016-2017 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (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
13 #include <stdio.h>
14
15 int test_main(int argc, char *argv[])
16 {
17     if (argc > 1)
18         test_puts_stderr("Warning: ignoring extra command-line arguments.\n");
19
20     register_tests();
21     return run_tests(argv[0]);
22 }