@@ -113,35 +113,25 @@ function(get_test_dependencies SDK result_var_name)
113
113
set ("${result_var_name} " "${deps} " PARENT_SCOPE )
114
114
endfunction ()
115
115
116
- function (write_component_test_script test_bin_dir component_suffix component_default_value )
116
+ function (write_component_test_script test_bin_dir component_name )
117
117
file (
118
118
WRITE
119
- ${test_bin_dir} /check-swift-${component_suffix}.sh
120
- "source_test_dir=\" ${SWIFT_SOURCE_DIR} /test\"
121
- bin_test_dir=\" ${test_bin_dir} \"
122
- default_component=\" ${component_default_value} \"
123
-
124
- dirs_to_test=$(find " \${source_test_dir} " -type f -name \" *${component_suffix} *\" | grep -o \"\\ (.*\\ )/\" )
125
- dirs_to_test+=(\$ {source_test_dir}/\$ {default_component})
126
- dirs_to_test=$(echo \$ {dirs_to_test} | tr ' ' '\\ n' | sort -u)
127
-
128
- for directory in \$ {dirs_to_test}
129
- do
130
- rel_path=" \${directory\#\"\$ {source_test_dir}\" } "
131
- ${PYTHON_EXECUTABLE} ${LIT} \$ {bin_test_dir}\$ {rel_path}
132
- done\n " )
119
+ ${test_bin_dir} /check-swift-${component_name}.sh
120
+ "${PYTHON_EXECUTABLE} ${LIT} \\
121
+ ${test_bin_dir} / \\
122
+ --filter=${component_name} \n " )
133
123
134
124
file (
135
125
INSTALL
136
- ${test_bin_dir} /check-swift-${component_suffix }.sh
126
+ ${test_bin_dir} /check-swift-${component_name }.sh
137
127
DESTINATION ${test_bin_dir} /../test
138
128
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ
139
129
GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
140
130
)
141
131
142
132
file (
143
133
REMOVE
144
- ${test_bin_dir} /check-swift-${component_suffix }.sh
134
+ ${test_bin_dir} /check-swift-${component_name }.sh
145
135
)
146
136
147
137
endfunction ()
@@ -467,10 +457,11 @@ _Block_release(void) { }\n")
467
457
PROPERTY FOLDER "Tests/check-swift" )
468
458
endforeach ()
469
459
endforeach ()
470
-
471
- write_component_test_script ("${test_bin_dir} " "irgen" "IRGen" )
472
- write_component_test_script ("${test_bin_dir} " "silgen" "SILGen" )
473
- write_component_test_script ("${test_bin_dir} " "typecheck" "Sema" )
460
+ if (NOT "${SDK} " STREQUAL "WINDOWS" )
461
+ write_component_test_script ("${test_bin_dir} " "irgen" )
462
+ write_component_test_script ("${test_bin_dir} " "silgen" )
463
+ write_component_test_script ("${test_bin_dir} " "sema" )
464
+ endif ()
474
465
endforeach ()
475
466
endforeach ()
476
467
endforeach ()
0 commit comments