summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestDepends/CMakeLists.txt
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2010-06-30 14:39:17 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2010-06-30 14:39:17 (GMT)
commit3e52000a07cb71172bc0ff7223dbca6f793786b6 (patch)
tree9b3d206df0385e8d6f6af76118a97b9ab581a877 /Tests/CTestTestDepends/CMakeLists.txt
parentb65cd9b70b52dc36d51165bd00d551ce01b0465b (diff)
downloadCMake-3e52000a07cb71172bc0ff7223dbca6f793786b6.zip
CMake-3e52000a07cb71172bc0ff7223dbca6f793786b6.tar.gz
CMake-3e52000a07cb71172bc0ff7223dbca6f793786b6.tar.bz2
Fix cycle detection for test dependencies
Diffstat (limited to 'Tests/CTestTestDepends/CMakeLists.txt')
-rw-r--r--Tests/CTestTestDepends/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/CTestTestDepends/CMakeLists.txt b/Tests/CTestTestDepends/CMakeLists.txt
new file mode 100644
index 0000000..26367a6
--- /dev/null
+++ b/Tests/CTestTestDepends/CMakeLists.txt
@@ -0,0 +1,12 @@
+cmake_minimum_required (VERSION 2.6)
+project(CTestTestDepends)
+include(CTest)
+
+add_executable (simple simple.cxx)
+add_test (one simple)
+add_test (two simple)
+add_test (three simple)
+
+# Add redundant (but not cyclical) dependencies
+set_tests_properties(two PROPERTIES DEPENDS "one")
+set_tests_properties(three PROPERTIES DEPENDS "one;two")