forked from microsoft/onnxruntime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Missing Test File (microsoft#13607)
I built a new test infra for CUDA EP in microsoft#13016 but forgot adding the test to onnxruntime_test_all. Here is the missing file. Now, the `TestAll` function is really called in CI.
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#ifndef NDEBUG | ||
#include "gtest/gtest.h" | ||
#include "core/common/status.h" | ||
#include "core/providers/cuda/cuda_provider_factory.h" | ||
#include <iostream> | ||
namespace onnxruntime { | ||
|
||
ProviderInfo_CUDA& GetProviderInfo_CUDA(); | ||
|
||
namespace test { | ||
namespace cuda { | ||
TEST(CUDAEPTEST, ALL) { | ||
onnxruntime::ProviderInfo_CUDA& ep = onnxruntime::GetProviderInfo_CUDA(); | ||
ASSERT_TRUE(ep.TestAll()); | ||
} | ||
|
||
} // namespace test | ||
} // namespace cuda | ||
} // namespace onnxruntime | ||
|
||
#endif |