summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/if/RunCMakeTest.cmake
blob: 366e8a3104c0be9d1eacc359ac91c7690aa26018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
include(RunCMake)

run_cmake(InvalidArgument1)
run_cmake(exists)
if(NOT MSYS)
  # permissions and symbolic links are broken on MSYS
  # if real user is root, tests are irrelevant
  get_unix_uid(uid)
  if(NOT uid STREQUAL "0")
    run_cmake_with_options(FilePermissions -DNO_WRITABLE_DIR=${CMake_TEST_NO_WRITE_ONLY_DIR})
  endif()
endif()
run_cmake(IsDirectory)
run_cmake(IsDirectoryLong)
run_cmake(duplicate-deep-else)
run_cmake(duplicate-else)
run_cmake(duplicate-else-after-elseif)
run_cmake(elseif-message)
run_cmake(empty-elseif-warning)
run_cmake(misplaced-elseif)

run_cmake(unbalanced-parenthesis)

run_cmake(MatchesSelf)
run_cmake(IncompleteMatches)
run_cmake(IncompleteMatchesFail)

run_cmake(TestNameThatExists)
run_cmake(TestNameThatDoesNotExist)

run_cmake_script(AndOr)