mirror of
https://github.com/reactos/CMake.git
synced 2024-12-20 02:28:25 +00:00
variable_watch: Add test for MODIFIED_ACCESS report
Add a RunCMake.variable_watch watch test to cover the basic use case.
This commit is contained in:
parent
3d5bb381be
commit
c63d30048b
@ -77,6 +77,7 @@ add_RunCMake_test(include)
|
||||
add_RunCMake_test(include_directories)
|
||||
add_RunCMake_test(list)
|
||||
add_RunCMake_test(try_compile)
|
||||
add_RunCMake_test(variable_watch)
|
||||
add_RunCMake_test(CMP0004)
|
||||
|
||||
find_package(Qt4 QUIET)
|
||||
|
3
Tests/RunCMake/variable_watch/CMakeLists.txt
Normal file
3
Tests/RunCMake/variable_watch/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
project(${RunCMake_TEST} NONE)
|
||||
include(${RunCMake_TEST}.cmake)
|
3
Tests/RunCMake/variable_watch/ModifiedAccess-stderr.txt
Normal file
3
Tests/RunCMake/variable_watch/ModifiedAccess-stderr.txt
Normal file
@ -0,0 +1,3 @@
|
||||
\* Variable "b" was accessed using MODIFIED_ACCESS in: .*/Tests/RunCMake/variable_watch/ModifiedAccess.cmake
|
||||
The value of the variable: "b"
|
||||
The list file stack: .*/Tests/RunCMake/variable_watch/CMakeLists.txt;.*/Tests/RunCMake/variable_watch/ModifiedAccess.cmake
|
3
Tests/RunCMake/variable_watch/ModifiedAccess.cmake
Normal file
3
Tests/RunCMake/variable_watch/ModifiedAccess.cmake
Normal file
@ -0,0 +1,3 @@
|
||||
set(b "a")
|
||||
variable_watch(b)
|
||||
set(b "b")
|
3
Tests/RunCMake/variable_watch/RunCMakeTest.cmake
Normal file
3
Tests/RunCMake/variable_watch/RunCMakeTest.cmake
Normal file
@ -0,0 +1,3 @@
|
||||
include(RunCMake)
|
||||
|
||||
run_cmake(ModifiedAccess)
|
Loading…
Reference in New Issue
Block a user