mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
Tests: Add RunCMake.try_run cases for missing keyword arguments
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
CMake Error: RUN_OUTPUT_STDERR_VARIABLE specified but there is no variable
|
||||
CMake Error at BadStdErrVariable.cmake:1 \(try_run\):
|
||||
try_run unknown error.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
@@ -1,5 +0,0 @@
|
||||
CMake Error: RUN_OUTPUT_STDOUT_VARIABLE specified but there is no variable
|
||||
CMake Error at BadStdOutVariable.cmake:1 \(try_run\):
|
||||
try_run unknown error.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
@@ -0,0 +1,5 @@
|
||||
^CMake Error: COMPILE_OUTPUT_VARIABLE specified but there is no variable
|
||||
CMake Error at NoCompileOutputVariable.cmake:[0-9]+ \(try_run\):
|
||||
try_run unknown error.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:[0-9]+ \(include\)$
|
||||
4
Tests/RunCMake/try_run/NoCompileOutputVariable.cmake
Normal file
4
Tests/RunCMake/try_run/NoCompileOutputVariable.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
try_run(RUN_RESULT COMPILE_RESULT
|
||||
${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp ${CMAKE_CURRENT_SOURCE_DIR}/src.c
|
||||
COMPILE_OUTPUT_VARIABLE
|
||||
)
|
||||
1
Tests/RunCMake/try_run/NoOutputVariable-result.txt
Normal file
1
Tests/RunCMake/try_run/NoOutputVariable-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
5
Tests/RunCMake/try_run/NoOutputVariable-stderr.txt
Normal file
5
Tests/RunCMake/try_run/NoOutputVariable-stderr.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
^CMake Error: OUTPUT_VARIABLE specified but there is no variable
|
||||
CMake Error at NoOutputVariable.cmake:[0-9]+ \(try_run\):
|
||||
try_run unknown error.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:[0-9]+ \(include\)$
|
||||
4
Tests/RunCMake/try_run/NoOutputVariable.cmake
Normal file
4
Tests/RunCMake/try_run/NoOutputVariable.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
try_run(RUN_RESULT COMPILE_RESULT
|
||||
${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp ${CMAKE_CURRENT_SOURCE_DIR}/src.c
|
||||
OUTPUT_VARIABLE
|
||||
)
|
||||
1
Tests/RunCMake/try_run/NoRunOutputVariable-result.txt
Normal file
1
Tests/RunCMake/try_run/NoRunOutputVariable-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
5
Tests/RunCMake/try_run/NoRunOutputVariable-stderr.txt
Normal file
5
Tests/RunCMake/try_run/NoRunOutputVariable-stderr.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
^CMake Error: RUN_OUTPUT_VARIABLE specified but there is no variable
|
||||
CMake Error at NoRunOutputVariable.cmake:[0-9]+ \(try_run\):
|
||||
try_run unknown error.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:[0-9]+ \(include\)$
|
||||
4
Tests/RunCMake/try_run/NoRunOutputVariable.cmake
Normal file
4
Tests/RunCMake/try_run/NoRunOutputVariable.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
try_run(RUN_RESULT COMPILE_RESULT
|
||||
${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp ${CMAKE_CURRENT_SOURCE_DIR}/src.c
|
||||
RUN_OUTPUT_VARIABLE
|
||||
)
|
||||
1
Tests/RunCMake/try_run/NoRunStdErrVariable-result.txt
Normal file
1
Tests/RunCMake/try_run/NoRunStdErrVariable-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
5
Tests/RunCMake/try_run/NoRunStdErrVariable-stderr.txt
Normal file
5
Tests/RunCMake/try_run/NoRunStdErrVariable-stderr.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
^CMake Error: RUN_OUTPUT_STDERR_VARIABLE specified but there is no variable
|
||||
CMake Error at NoRunStdErrVariable.cmake:1 \(try_run\):
|
||||
try_run unknown error.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
1
Tests/RunCMake/try_run/NoRunStdOutVariable-result.txt
Normal file
1
Tests/RunCMake/try_run/NoRunStdOutVariable-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
5
Tests/RunCMake/try_run/NoRunStdOutVariable-stderr.txt
Normal file
5
Tests/RunCMake/try_run/NoRunStdOutVariable-stderr.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
^CMake Error: RUN_OUTPUT_STDOUT_VARIABLE specified but there is no variable
|
||||
CMake Error at NoRunStdOutVariable.cmake:1 \(try_run\):
|
||||
try_run unknown error.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
1
Tests/RunCMake/try_run/NoWorkingDirectory-result.txt
Normal file
1
Tests/RunCMake/try_run/NoWorkingDirectory-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
5
Tests/RunCMake/try_run/NoWorkingDirectory-stderr.txt
Normal file
5
Tests/RunCMake/try_run/NoWorkingDirectory-stderr.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
^CMake Error: WORKING_DIRECTORY specified but there is no variable
|
||||
CMake Error at NoWorkingDirectory.cmake:[0-9]+ \(try_run\):
|
||||
try_run unknown error.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:[0-9]+ \(include\)$
|
||||
4
Tests/RunCMake/try_run/NoWorkingDirectory.cmake
Normal file
4
Tests/RunCMake/try_run/NoWorkingDirectory.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
try_run(RUN_RESULT COMPILE_RESULT
|
||||
${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp ${CMAKE_CURRENT_SOURCE_DIR}/src.c
|
||||
WORKING_DIRECTORY
|
||||
)
|
||||
@@ -13,5 +13,9 @@ endif()
|
||||
|
||||
run_cmake(WorkingDirArg)
|
||||
|
||||
run_cmake(BadStdOutVariable)
|
||||
run_cmake(BadStdErrVariable)
|
||||
run_cmake(NoOutputVariable)
|
||||
run_cmake(NoCompileOutputVariable)
|
||||
run_cmake(NoRunOutputVariable)
|
||||
run_cmake(NoRunStdOutVariable)
|
||||
run_cmake(NoRunStdErrVariable)
|
||||
run_cmake(NoWorkingDirectory)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
try_run(RUN_RESULT COMPILE_RESULT
|
||||
${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp ${CMAKE_CURRENT_SOURCE_DIR}/src.c
|
||||
RUN_OUTPUT_VARIABLE OUTPUT_VARIABLE
|
||||
RUN_OUTPUT_VARIABLE RUN_OUTPUT
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp/workdir
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user