summaryrefslogtreecommitdiff
path: root/tests/Klocation
blob: aa176b26bf77acae0f0be3b8ef0b28e1fd67824f (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
if UNDEFINED
endif

config SINGLE_DEF
    bool

config MULTI_DEF
    bool

# Throw in some line continuations too to make sure it doesn't mess up the line
# numbers
if y && \
   y
if y && \
   y && \
   y

# Throw in some help texts too

config HELP_1
    bool "help 1"
    help
config HELP_2
    bool "help 2"
    help
      foo
      bar

        baz

config MULTI_DEF

endif
endif

config TESTS_DIR_FROM_ENV
    string
    option env="TESTS_DIR_FROM_ENV"

config SUB_DIR_FROM_ENV
    string
    option env="SUB_DIR_FROM_ENV"

config _SOURCED
    string
    default "_sourced"

config _RSOURCED
    string
    default "_rsourced"

# Expands to "tests/Klocation_sourced"
source "$TESTS_DIR_FROM_ENV/Klocation$_SOURCED"
# Expands to "sub/Klocation_rsourced"
rsource "$SUB_DIR_FROM_ENV/Klocation$_RSOURCED"

config MULTI_DEF