mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Tests/RunCMake/FileAPI: Explicitly specify expected reply index prefix
This commit is contained in:
@@ -65,4 +65,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(ClientStateful)
|
check_python(ClientStateful index)
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(ClientStateless)
|
check_python(ClientStateless index)
|
||||||
|
|||||||
@@ -17,4 +17,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(DuplicateStateless)
|
check_python(DuplicateStateless index)
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(Empty)
|
check_python(Empty index)
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(EmptyClient)
|
check_python(EmptyClient index)
|
||||||
|
|||||||
@@ -13,4 +13,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(MixedStateless)
|
check_python(MixedStateless index)
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ in directory:
|
|||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(check_python case)
|
function(check_python case prefix)
|
||||||
if(RunCMake_TEST_FAILED OR NOT Python_EXECUTABLE)
|
if(RunCMake_TEST_FAILED OR NOT Python_EXECUTABLE)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
file(GLOB index ${RunCMake_TEST_BINARY_DIR}/.cmake/api/v1/reply/index-*.json)
|
file(GLOB index ${RunCMake_TEST_BINARY_DIR}/.cmake/api/v1/reply/${prefix}-*.json)
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${Python_EXECUTABLE} "${RunCMake_SOURCE_DIR}/${case}-check.py" "${index}" "${CMAKE_CXX_COMPILER_ID}"
|
COMMAND ${Python_EXECUTABLE} "${RunCMake_SOURCE_DIR}/${case}-check.py" "${index}" "${CMAKE_CXX_COMPILER_ID}"
|
||||||
"${RunCMake_TEST_BINARY_DIR}"
|
"${RunCMake_TEST_BINARY_DIR}"
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(SharedStateless)
|
check_python(SharedStateless index)
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(cache-v2)
|
check_python(cache-v2 index)
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(cache-v2)
|
check_python(cache-v2 index)
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(cache-v2)
|
check_python(cache-v2 index)
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(cmakeFiles-v1)
|
check_python(cmakeFiles-v1 index)
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(cmakeFiles-v1)
|
check_python(cmakeFiles-v1 index)
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(cmakeFiles-v1)
|
check_python(cmakeFiles-v1 index)
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(codemodel-v2)
|
check_python(codemodel-v2 index)
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(codemodel-v2)
|
check_python(codemodel-v2 index)
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(codemodel-v2)
|
check_python(codemodel-v2 index)
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(configureLog-v1)
|
check_python(configureLog-v1 index)
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(configureLog-v1)
|
check_python(configureLog-v1 index)
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(configureLog-v1)
|
check_python(configureLog-v1 index)
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(toolchains-v1)
|
check_python(toolchains-v1 index)
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(toolchains-v1)
|
check_python(toolchains-v1 index)
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ set(expect
|
|||||||
)
|
)
|
||||||
check_api("^${expect}$")
|
check_api("^${expect}$")
|
||||||
|
|
||||||
check_python(toolchains-v1)
|
check_python(toolchains-v1 index)
|
||||||
|
|||||||
Reference in New Issue
Block a user