Debian Codegraph @

debian/rust-vendor/aws-lc-sys/aws-lc/crypto/test/gtest_main.cc

raw
1 // Copyright (c) 2016, Google Inc.
2 // SPDX-License-Identifier: ISC
3
4 #include <stdio.h>
5 #include <string.h>
6
7 #include <gtest/gtest.h>
8
9 #include <openssl/rand.h>
10
11 #include "abi_test.h"
12 #include "gtest_main.h"
13 #include "../internal.h"
14 #include "../ube/vm_ube_detect.h"
15
16
17 int main(int argc, char **argv) {
18 #if defined(OPENSSL_LINUX) && defined(AWSLC_VM_UBE_TESTING)
19 if (1 != HAZMAT_init_sysgenid_file()) {
20 abort();
21 }
22 #endif
23
24 testing::InitGoogleTest(&argc, argv);
25 bssl::SetupGoogleTest();
26 bool unwind_tests = true;
27 for (int i = 1; i < argc; i++) {
28 if (strcmp(argv[i], "--no_unwind_tests") == 0) {
29 unwind_tests = false;
30 }
31 }
32
33 if (unwind_tests) {
34 abi_test::EnableUnwindTests();
35 }
36
37 return RUN_ALL_TESTS();
38 }