Fix test_custom_op_get_const_input inference test on Android CI (#15132)

Fix test_custom_op_get_const_input for inference test on Android CI and
copy custom op libraries to the emulator.
This commit is contained in:
Chi Lo 2023-03-22 23:02:42 -07:00 committed by GitHub
parent dccbe9d492
commit 11dac121b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1627,6 +1627,7 @@ def run_android_tests(args, source_dir, build_dir, config, cwd):
adb_push("libonnxruntime.so", device_dir, cwd=cwd)
adb_push("onnxruntime_shared_lib_test", device_dir, cwd=cwd)
adb_push("libcustom_op_library.so", device_dir, cwd=cwd)
adb_push("libcustom_op_get_const_input_test_library.so", device_dir, cwd=cwd)
adb_push("onnxruntime_customopregistration_test", device_dir, cwd=cwd)
adb_shell("chmod +x {}/onnxruntime_shared_lib_test".format(device_dir))
adb_shell("chmod +x {}/onnxruntime_customopregistration_test".format(device_dir))