mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-21 02:18:09 +00:00
* Convert ABI to a versioned interface. * Convert ORT_THROW_ON_ERROR to inline function to fix link errors.
25 lines
628 B
C++
25 lines
628 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#include "core/session/environment.h"
|
|
#include "gtest/gtest.h"
|
|
#include "test/test_environment.h"
|
|
#include "core/session/onnxruntime_cxx_api.h"
|
|
|
|
const OrtApi* g_ort = OrtGetApi(ORT_API_VERSION);
|
|
const OrtApi* Ort::g_api = OrtGetApi(ORT_API_VERSION);
|
|
|
|
GTEST_API_ int main(int argc, char** argv) {
|
|
int status = 0;
|
|
|
|
try {
|
|
onnxruntime::test::TestEnvironment test_environment{argc, argv};
|
|
|
|
status = RUN_ALL_TESTS();
|
|
} catch (const std::exception& ex) {
|
|
std::cerr << ex.what();
|
|
status = -1;
|
|
}
|
|
|
|
return status;
|
|
}
|