File: foreach_tests.cmake

package info (click to toggle)
cmake-format 0.6.13-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,436 kB
  • sloc: python: 16,990; makefile: 14
file content (36 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (4)
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
32
33
34
35
36
# test: standard_form
foreach(
  loopvar
  FOO
  BAR
  BAZ
  A
  B
  C
  D)
  # pass
endforeach()

# test: range_form_1arg
foreach(loopvar RANGE 3)
  # pass
endforeach()

# test: range_form_2arg
foreach(loopvar RANGE 3 4)
  # pass
endforeach()

# test: range_form_3arg
foreach(loopvar RANGE 3 4 1)
  # pass
endforeach()

# test: in_form
foreach(
  loopvar IN
  LISTS A B C
  ITEMS D E F)
  # pass
endforeach()