Refactor the test framework testutil
[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
12 #include <stdio.h>
13
14 int test_main(int argc, char *argv[])
15 {
16     if (argc > 1)
17         test_puts_stderr("Warning: ignoring extra command-line arguments.\n");
18
19     register_tests();
20     return run_tests(argv[0]);
21 }