xref: /illumos-gate/usr/src/test/os-tests/tests/definit/init.data (revision d48be21240dfd051b689384ce2b23479d757f2d8)
1#
2# This is a test input file for the 'definit' parser
3#
4  # comment indented with spaces
5	# comment indented with tabs
6	 # comment indented with both spaces and tabs
7 	 	 # comment indented with alternating spaces and tabs
8# blank line follows
9
10# lines consisting of only spaces follow
11
12
13
14
15
16# Simple assignment, variously indented
17TZ=UTC
18 TZSI=UTCSI
19	TZTI=UTCTI
20 	TZSTI=UTCSTI
21	 TZTSI=UTCTSI
22 	 	 	 TZMI=UTCMI
23; LEADING=semicolon
24
25# Quoted assignment, quotes do not have to match nor be balanced. They are
26# just stripped early in parsing.
27CMASK1="001"
28CMASK2='002'
29CMASK3='003"
30CMASK4="004'
31CMASK5="005
32CMASK6='006
33CMASK7=007"
34CMASK8=010'
35CMASK9='"'"'011 ''''''''''''''''
36
37# Quoted with a semicolon
38QSC="test1;tryst2"
39QSCS='test3;tryst4'
40QSCSS='test5;tryst6"
41QSCSSS="test5;tryst6'
42
43# Multiple on one line
44MULTI1=multi1 MULTI2=multi2 MULTI3=multi3
45MULTIS1=multis1;MULTIS2=multis2;MULTIS3=multis3
46MULTISS1=multiss1; MULTISS2=multiss2; MULTISS3=multiss3
47MULTISSS1=multisss1 ; MULTISSS2=multisss2 ; MULTISSS3=multisss3
48	 SMULTI1=smulti1 SMULTI2=smulti2 SMULTI3=smulti3
49	 SMULTIS1=smultis1;SMULTIS2=smultis2;SMULTIS3=smultis3
50	 SMULTISS1=smultiss1; SMULTISS2=smultiss2; SMULTISS3=smultiss3
51	 SMULTISSS1=smultisss1 ; SMULTISSS2=smultisss2 ; SMULTISSS3=smultisss3
52
53# Tokens without = should be skipped
54PLAIN
55OK=1 NOEQUALS
56ANOTHER BAD=54 IGNORED
57
58# Tokens with a comment after, the comment will be parsed for tokens
59THIS=this 	# not a comment so if it includes THAT=that then it's found
60
61# Line which is at the maximum allowed length (512 characters including newline)
62                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Z=b
63
64# Lines which exceed the maximum allowed length (last item will be truncated)
65                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            X=cccccc
66
67                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            YYYYYY=d
68
69# More complex examples
70UMEM_DEBUG="default"; MAXIMUS BOB=fred; SUE='test' BARNEY=dino
71
72# quoted value containing a space. NOTE this does not parse as you might expect
73# and will just result in 'SPACED=test1'. This is consistent with the way that
74# init and svc.startd have always interpreted a quoted value containing a space.
75SPACED="test1 test2"
76SPACED2="test3 test4 another=test5"
77
78