summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/if/RunCMakeTest.cmake
blob: 43dfd3c01ddccafdc44758d667a151696ba8e997 (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
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(FilePermissions)
  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(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)