Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
986e8a2
fix comment referring to IsAllowReleasedONNXOpsetsOnlySetForThisTest(…
edgchen1 Jul 31, 2025
4e6c8ba
add some casting to fix msvc 4244 warnings
edgchen1 Jul 31, 2025
7d80c61
rename op test files to have suffix op_test.cc
edgchen1 Jul 31, 2025
d46b59c
move provider options session options update from CreateIExecutionPro…
edgchen1 Aug 2, 2025
4148b53
compile fix
edgchen1 Aug 2, 2025
d4cdc9b
fix another issue
edgchen1 Aug 2, 2025
4fa6be0
save work - enable dynamic plugin EP in op tests
edgchen1 Aug 6, 2025
a04d65d
move op tests from onnxruntime_test_all to onnxruntime_provider_op_test
edgchen1 Aug 7, 2025
8bdc715
indent
edgchen1 Aug 7, 2025
ad22c0c
move to onnxruntime_provider_test - save work
edgchen1 Aug 7, 2025
f88e80e
move internal ep test files to onnxruntime/test/internal_testing_ep
edgchen1 Aug 7, 2025
ed47154
Revert "rename op test files to have suffix op_test.cc"
edgchen1 Aug 7, 2025
9c7feaa
revert file name changes in cmake file
edgchen1 Aug 7, 2025
60e9698
remove debug stuff
edgchen1 Aug 7, 2025
81ff8ea
try to fix build errors
edgchen1 Aug 7, 2025
e06d63a
fix unused variable
edgchen1 Aug 7, 2025
88e7a51
lint
edgchen1 Aug 7, 2025
9e508f0
remove explicit definition of OrtDevice::CPU/GPU from allocation_plan…
edgchen1 Aug 8, 2025
75a3e8c
make OrtDevice constants constexpr. it fixes a link error on macos ab…
edgchen1 Aug 8, 2025
a0fc717
fix some 'typename' issues
edgchen1 Aug 8, 2025
efa2498
use exception macros
edgchen1 Aug 8, 2025
2e4f210
add some comments
edgchen1 Aug 8, 2025
ed160b4
fix qnn/reduce_op_test.cc warnings
edgchen1 Aug 8, 2025
c088238
fix some cmake issues, get minimal build working
edgchen1 Aug 9, 2025
8833298
Fix swapped count and value arguments to `std::vector` constructor.
edgchen1 Aug 8, 2025
ff88da8
Merge remote-tracking branch 'origin/main' into edgchen1/plugin_ep_un…
edgchen1 Aug 11, 2025
14e1ae4
move function_test_util.h/cc to test/util
edgchen1 Aug 11, 2025
bcd0c7c
if constexpr for constant condition in onnxruntime/test/providers/qnn…
edgchen1 Aug 11, 2025
ab54743
move qdq_test_utils and graph_transform_test_builder from onnxruntime…
edgchen1 Aug 11, 2025
4c94cb8
exclude function_test_util, graph_transform_test_builder from minimal…
edgchen1 Aug 11, 2025
713e5a7
exclude qdq_test_utils from minimal builds.
edgchen1 Aug 11, 2025
b3664b5
Add build.py --targets option to specify multiple targets. Update exi…
edgchen1 Aug 11, 2025
c791627
Merge remote-tracking branch 'origin/main' into edgchen1/plugin_ep_un…
edgchen1 Aug 12, 2025
ce82e2a
update cmake log message
edgchen1 Aug 12, 2025
9039895
create c string vectors later on
edgchen1 Aug 12, 2025
4fda05e
disable shorten-64-to-32 warning
edgchen1 Aug 12, 2025
6a5be2d
fix some narrowing issues
edgchen1 Aug 12, 2025
67d5f95
save work - updating CI to also run onnxruntime_provider_test
edgchen1 Aug 13, 2025
84645c0
try enabling onnxruntime_provider_test in wasm CI
edgchen1 Aug 13, 2025
7d73682
fix warnings better
edgchen1 Aug 13, 2025
7821825
Merge branch 'edgchen1/plugin_ep_unit_tests_fix' of https://github.co…
edgchen1 Aug 13, 2025
8328611
update comments in cuda EP test regarding onnxruntime_test_all
edgchen1 Aug 13, 2025
827c0e5
update build.py for new onnxruntime_provider_test
edgchen1 Aug 13, 2025
c266ecb
update post-merge-jobs.yml code coverage commands
edgchen1 Aug 13, 2025
ab9418a
update tools/ci_build/github/linux/test_custom_ops_pytorch_export.sh
edgchen1 Aug 13, 2025
c4759a0
update tools/ci_build/github/pai/pai_test_launcher.sh
edgchen1 Aug 13, 2025
5bccb1f
add copying of testdata for ios
edgchen1 Aug 14, 2025
4e17ab5
Merge branch 'edgchen1/plugin_ep_unit_tests_fix' of https://github.co…
edgchen1 Aug 14, 2025
aeca87e
Merge remote-tracking branch 'origin/main' into edgchen1/plugin_ep_un…
edgchen1 Aug 15, 2025
7903550
update pch for test program changes
edgchen1 Aug 15, 2025
b17867f
check for nullptr in unregister_ep_library
edgchen1 Aug 18, 2025
9213ec9
const ref, formatting
edgchen1 Aug 18, 2025
5b38bf4
Merge remote-tracking branch 'origin/main' into edgchen1/plugin_ep_un…
edgchen1 Aug 20, 2025
01213e6
Merge remote-tracking branch 'origin/main' into edgchen1/plugin_ep_un…
edgchen1 Aug 20, 2025
79bd028
Merge remote-tracking branch 'origin/main' into edgchen1/plugin_ep_un…
edgchen1 Aug 20, 2025
7b5a864
test - set VERBOSE environment variable in Win GPU build.
edgchen1 Aug 21, 2025
fb4404b
fix C4244 warning
edgchen1 Aug 21, 2025
6d81788
Revert "test - set VERBOSE environment variable in Win GPU build."
edgchen1 Aug 21, 2025
3cb4304
Merge remote-tracking branch 'origin/main' into edgchen1/plugin_ep_un…
edgchen1 Aug 22, 2025
f85d0c7
Merge branch 'edgchen1/plugin_ep_unit_tests' of https://github.com/mi…
edgchen1 Aug 29, 2025
3905fb8
Merge remote-tracking branch 'origin/main' into edgchen1/plugin_ep_un…
edgchen1 Aug 29, 2025
7fbaf35
make onnxruntime_test_utils an object library
edgchen1 Aug 29, 2025
70fdca2
Remove apparently unused files.
edgchen1 Aug 29, 2025
66d0e78
clean up some old variables
edgchen1 Aug 29, 2025
27caafb
move TestAllocatorManager.h and .cc to utils
edgchen1 Aug 29, 2025
c39fdc3
move unit test specific utilities to onnxruntime/test/unittest_util
edgchen1 Sep 8, 2025
e6eba02
move test/framework/test_utils to test/unittest_util/framework_test_u…
edgchen1 Sep 8, 2025
eb527ca
move more ut-specific stuff to unittest_utils, get things building
edgchen1 Sep 8, 2025
7c899e2
Merge remote-tracking branch 'origin/main' into edgchen1/plugin_ep_un…
edgchen1 Sep 8, 2025
a545861
handle empty patterns list
edgchen1 Sep 9, 2025
cd08f51
link to onnxruntime_EXTERNAL_LIBRARIES
edgchen1 Sep 9, 2025
20bad7f
remove dynamic plugin EP code out of default_providers.h/cc
edgchen1 Sep 9, 2025
f830aa0
Check for non-empty ep_nodes before resizing index_to_ep_node in EpGr…
edgchen1 Sep 9, 2025
602097e
Add ONNX patch to avoid regenerating proto files and improve rebuild …
edgchen1 Sep 10, 2025
537511c
Also apply patch for vcpkg.
edgchen1 Sep 10, 2025
2e04d7f
add trailing newline to patch files
edgchen1 Sep 10, 2025
91a560e
make onnxruntime_unittest_utils a static library instead
edgchen1 Sep 10, 2025
043189c
fix some old qdq_test_utils.h paths
edgchen1 Sep 10, 2025
515edf2
fix narrowing warning in checkers.cc
edgchen1 Sep 10, 2025
e412a4d
fix old paths to test/framework/test_utils.h
edgchen1 Sep 10, 2025
304e5bb
Merge remote-tracking branch 'origin/main' into edgchen1/plugin_ep_un…
edgchen1 Sep 11, 2025
46331f0
fix one more old path to test/framework/test_utils.h
edgchen1 Sep 11, 2025
1267f8e
fix op_type check
edgchen1 Sep 11, 2025
0fe7e5a
add selected_ep_name config
edgchen1 Sep 11, 2025
2ad399a
Set compile options flag to ensure node is compiled in plugin EP unit…
edgchen1 Sep 11, 2025
1db8d8b
update include path
edgchen1 Sep 12, 2025
b6c83a9
use more specific variable name
edgchen1 Sep 12, 2025
3bfb55e
rename macro to ENABLE_DYNAMIC_PLUGIN_EP_USAGE
edgchen1 Sep 12, 2025
5de6452
revert include changes for test/test_environment.h and test/compare_o…
edgchen1 Sep 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/linux-wasm-ci-build-and-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
path: ${{ github.workspace }}/artifacts/wasm

- name: Test (Node.js) (simd + threads)
# onnxruntime_test_all is currently only supported in Debug build because it requires exception, which is disabled in Release build.
# unit tests are currently only supported in Debug builds because they require exceptions, which are disabled in Release builds.
if: ${{ inputs.build_config == 'Debug' }}
run: |
python ./tools/ci_build/build.py \
Expand All @@ -130,14 +130,14 @@ jobs:
working-directory: ${{ github.workspace }}

- name: Test (browser) (simd + threads)
# onnxruntime_test_all is currently only supported in Debug build because it requires exception, which is disabled in Release build.
# unit tests are currently only supported in Debug builds because they require exceptions, which are disabled in Release builds.
if: ${{ inputs.build_config == 'Debug' }}
run: |
python ./tools/ci_build/build.py \
${{ env.common_build_args }} \
--build_dir ${{ github.workspace }}/build/wasm_inferencing \
--wasm_run_tests_in_browser \
--target onnxruntime_test_all \
--targets onnxruntime_test_all onnxruntime_provider_test \
--update --build --test
working-directory: ${{ github.workspace }}

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/windows_webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,23 @@ jobs:
}
Remove-Item "${{ github.workspace }}\RelWithDebInfo" -Include "*.obj" -Recurse

- name: Run tests (onnxruntime_test_all) with verbose logging
- name: Run tests (onnxruntime_test_all, onnxruntime_provider_test) with verbose logging
shell: pwsh
run: |
$env:ORT_UNIT_TEST_MAIN_LOG_LEVEL = "0"
.\onnxruntime_test_all.exe 2>.\onnxruntime_test_all_stderr.log
.\onnxruntime_test_all.exe 2> .\onnxruntime_test_stderr.log
.\onnxruntime_provider_test.exe 2>> .\onnxruntime_test_stderr.log
working-directory: ${{ github.workspace }}\RelWithDebInfo\RelWithDebInfo

- name: Check log file
shell: cmd
run: |
dir ${{ github.workspace }}\RelWithDebInfo\RelWithDebInfo\onnxruntime_test_all_stderr.log
dir ${{ github.workspace }}\RelWithDebInfo\RelWithDebInfo\onnxruntime_test_stderr.log

- name: Validate shader keys
uses: ./.github/actions/webgpu-validate-shader-key
with:
log_file_path: ${{ github.workspace }}\RelWithDebInfo\RelWithDebInfo\onnxruntime_test_all_stderr.log
log_file_path: ${{ github.workspace }}\RelWithDebInfo\RelWithDebInfo\onnxruntime_test_stderr.log

- name: Validate C# native delegates
run: python tools\ValidateNativeDelegateAttributes.py
Expand Down
5 changes: 4 additions & 1 deletion cmake/onnxruntime_test_pch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
target_precompile_headers(onnxruntime_test_all PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/test_pch.h"
)
endif()
target_precompile_headers(onnxruntime_provider_test PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/test_pch.h"
)
endif()

# Exclude certain files that might conflict with PCH
set(PCH_EXCLUDE_FILES
Expand Down
Loading
Loading