File: Skip_python_unit_tests.patch

package info (click to toggle)
onnxruntime 1.21.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 333,864 kB
  • sloc: cpp: 3,153,080; python: 179,219; ansic: 109,131; asm: 37,791; cs: 34,424; perl: 13,070; java: 11,047; javascript: 6,330; pascal: 4,126; sh: 3,277; xml: 598; objc: 281; makefile: 63
file content (84 lines) | stat: -rw-r--r-- 4,018 bytes parent folder | download | duplicates (2)
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
@@ -439,15 +439,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
@@ -504,10 +504,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.
@@ -609,9 +609,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/
@@ -749,15 +749,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()