File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -200,10 +200,8 @@ cmake --build %build_dir% --config %build_config% --target install
200
200
if errorlevel 1 goto error
201
201
202
202
if " %build_test% " == " ON" (
203
- pushd %build_dir%
204
- ctest --output-on-failure
203
+ ctest --test-dir %build_dir% -C %build_config% --output-on-failure
205
204
if errorlevel 1 goto error
206
- popd
207
205
)
208
206
209
207
echo .
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ endif(BUILD_SHARED_LIBS)
13
13
file (GLOB test_data_files ${PROJECT_SOURCE_DIR} /data/test /*.yaml)
14
14
file (COPY ${test_data_files} DESTINATION ${EXECUTABLE_OUTPUT_PATH} )
15
15
16
- set (rime_test_executable ${EXECUTABLE_OUTPUT_PATH} /rime_test${ext} )
17
- add_test (rime_test ${rime_test_executable} )
16
+ add_test (NAME rime_test
17
+ COMMAND rime_test
18
+ WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH} )
You can’t perform that action at this time.
0 commit comments