File: Skip_python_unit_tests.patch

package info (click to toggle)
onnxruntime 1.23.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 340,744 kB
  • sloc: cpp: 3,222,135; python: 188,267; ansic: 114,318; asm: 37,927; cs: 36,849; java: 10,962; javascript: 6,811; pascal: 4,126; sh: 2,996; xml: 705; objc: 281; makefile: 67
file content (84 lines) | stat: -rw-r--r-- 4,018 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Description: These tests use excluded datasets due to unclear licenses.
Forwarded: not-needed
Author: Dylan Aïssi <daissi@debian.org>

--- a/cmake/onnxruntime_python.cmake
+++ b/cmake/onnxruntime_python.cmake
@@ -442,15 +442,15 @@
   file(GLOB onnxruntime_python_transformers_test_srcs CONFIGURE_DEPENDS
       "${ONNXRUNTIME_ROOT}/test/python/transformers/*.py"
   )
-  file(GLOB onnxruntime_python_transformers_testdata_srcs CONFIGURE_DEPENDS
-      "${ONNXRUNTIME_ROOT}/test/python/transformers/test_data/models/*.onnx"
-  )
-  file(GLOB onnxruntime_python_transformers_testdata_whisper CONFIGURE_DEPENDS
-      "${ONNXRUNTIME_ROOT}/test/python/transformers/test_data/models/whisper/*.onnx"
-  )
-  file(GLOB onnxruntime_python_transformers_testdata_conformer CONFIGURE_DEPENDS
-      "${ONNXRUNTIME_ROOT}/test/python/transformers/test_data/models/conformer/*.onnx"
-  )
+#  file(GLOB onnxruntime_python_transformers_testdata_srcs CONFIGURE_DEPENDS
+#      "${ONNXRUNTIME_ROOT}/test/python/transformers/test_data/models/*.onnx"
+#  )
+#  file(GLOB onnxruntime_python_transformers_testdata_whisper CONFIGURE_DEPENDS
+#      "${ONNXRUNTIME_ROOT}/test/python/transformers/test_data/models/whisper/*.onnx"
+#  )
+#  file(GLOB onnxruntime_python_transformers_testdata_conformer CONFIGURE_DEPENDS
+#      "${ONNXRUNTIME_ROOT}/test/python/transformers/test_data/models/conformer/*.onnx"
+#  )
 endif()
 
 file(GLOB onnxruntime_python_tools_srcs CONFIGURE_DEPENDS
@@ -519,10 +519,10 @@
 file(GLOB onnxruntime_python_datasets_srcs CONFIGURE_DEPENDS
     "${ONNXRUNTIME_ROOT}/python/datasets/*.py"
 )
-file(GLOB onnxruntime_python_datasets_data CONFIGURE_DEPENDS
-    "${ONNXRUNTIME_ROOT}/python/datasets/*.pb"
-    "${ONNXRUNTIME_ROOT}/python/datasets/*.onnx"
-)
+#file(GLOB onnxruntime_python_datasets_data CONFIGURE_DEPENDS
+#    "${ONNXRUNTIME_ROOT}/python/datasets/*.pb"
+#    "${ONNXRUNTIME_ROOT}/python/datasets/*.onnx"
+#)
 
 # ORT Mobile helpers to convert ONNX model to ORT format, analyze model for suitability in mobile scenarios,
 # and assist with export from PyTorch.
@@ -629,9 +629,9 @@
   COMMAND ${CMAKE_COMMAND} -E copy
       ${onnxruntime_python_datasets_srcs}
       $<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/datasets/
-  COMMAND ${CMAKE_COMMAND} -E copy
-      ${onnxruntime_python_datasets_data}
-      $<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/datasets/
+#  COMMAND ${CMAKE_COMMAND} -E copy
+#      ${onnxruntime_python_datasets_data}
+#      $<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/datasets/
   COMMAND ${CMAKE_COMMAND} -E copy
       ${onnxruntime_python_tools_srcs}
       $<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/tools/
@@ -796,15 +796,15 @@
     COMMAND ${CMAKE_COMMAND} -E copy
         ${onnxruntime_python_transformers_test_srcs}
         $<TARGET_FILE_DIR:${build_output_target}>/transformers/
-    COMMAND ${CMAKE_COMMAND} -E copy
-        ${onnxruntime_python_transformers_testdata_srcs}
-        $<TARGET_FILE_DIR:${build_output_target}>/transformers/test_data/models/
-    COMMAND ${CMAKE_COMMAND} -E copy
-        ${onnxruntime_python_transformers_testdata_whisper}
-        $<TARGET_FILE_DIR:${build_output_target}>/transformers/test_data/models/whisper/
-    COMMAND ${CMAKE_COMMAND} -E copy
-        ${onnxruntime_python_transformers_testdata_conformer}
-        $<TARGET_FILE_DIR:${build_output_target}>/transformers/test_data/models/conformer/
+#    COMMAND ${CMAKE_COMMAND} -E copy
+#        ${onnxruntime_python_transformers_testdata_srcs}
+#        $<TARGET_FILE_DIR:${build_output_target}>/transformers/test_data/models/
+#    COMMAND ${CMAKE_COMMAND} -E copy
+#        ${onnxruntime_python_transformers_testdata_whisper}
+#        $<TARGET_FILE_DIR:${build_output_target}>/transformers/test_data/models/whisper/
+#    COMMAND ${CMAKE_COMMAND} -E copy
+#        ${onnxruntime_python_transformers_testdata_conformer}
+#        $<TARGET_FILE_DIR:${build_output_target}>/transformers/test_data/models/conformer/
   )
 endif()