3 # Test tigrc parsing errors.
9 set # Missing name, equals and value
10 set ignore-space # Missing equals and value
11 set ignore-space = # Missing value
12 set ignore-space=no # Missing space
13 set something = jada # Unknown settings name
14 set ignore-space = jada # Bad enum value
15 set tab-size = long # Bad int value
16 set split-view-height = half # Bad scale value
17 set split-view-height = 110% # Bad scale value
18 set split-view-height = -10% # Bad scale value
20 bind # Missing map, key and action
21 bind generic # Missing key and action
22 bind generic B # Missing action
23 bind generic # refresh # Must use Hash instead of '#'
25 color # Missing area and colors
26 color file # Missing colors
27 color grep.file # Missing colors
28 color file green # Missing fg color
29 color file green bold # Attribute used as fg color
30 color file dark green # Unknown color
31 color file green dark # Unknown color
32 color file green green normally # Unknown attribute
34 # Test that lines continue correctly \\
39 commit-title # Multi-line option
41 bind generic : prompt # Must have prompt mapping
42 bind generic ø view-tree # Binding to UTF-8 keys
43 bind main <Hash> :/s e a r c h # Toggle option
44 bind main 1 !external command
45 bind main 2 @silent command
46 bind main 3 ?prompted command
47 bind main 4 <quitting command
48 bind main 0 !@?<all modifiers
50 # Non-ending multi-line command
60 :save-display help.screen
63 TIGRC_SYSTEM
="should-not-be-loaded"
67 assert_equals stderr
<<EOF
68 tig warning: ~/.tigrc:1: Unknown option command: s
69 tig warning: ~/.tigrc:2: Invalid set command: set option = value
70 tig warning: ~/.tigrc:3: Invalid set command: set option = value
71 tig warning: ~/.tigrc:4: Invalid set command: set option = value
72 tig warning: ~/.tigrc:5: Invalid set command: set option = value
73 tig warning: ~/.tigrc:6: Unknown option name: something
74 tig warning: ~/.tigrc:7: 'jada' is not a valid value for ignore-space; using no
75 tig warning: ~/.tigrc:8: Value must be between 1 and 1024
76 tig warning: ~/.tigrc:9: Invalid double or percentage
77 tig warning: ~/.tigrc:10: Percentage is larger than 100%
78 tig warning: ~/.tigrc:11: Percentage is less than 0%
79 tig warning: ~/.tigrc:13: Invalid key binding: bind keymap key action
80 tig warning: ~/.tigrc:14: Invalid key binding: bind keymap key action
81 tig warning: ~/.tigrc:15: Invalid key binding: bind keymap key action
82 tig warning: ~/.tigrc:16: Invalid key binding: bind keymap key action
83 tig warning: ~/.tigrc:18: Invalid color mapping: color area fgcolor bgcolor [attrs]
84 tig warning: ~/.tigrc:19: Invalid color mapping: color area fgcolor bgcolor [attrs]
85 tig warning: ~/.tigrc:20: Invalid color mapping: color area fgcolor bgcolor [attrs]
86 tig warning: ~/.tigrc:21: Invalid color mapping: color area fgcolor bgcolor [attrs]
87 tig warning: ~/.tigrc:22: Unknown color: bold
88 tig warning: ~/.tigrc:23: Unknown color: dark
89 tig warning: ~/.tigrc:24: Unknown color: dark
90 tig warning: ~/.tigrc:25: Unknown color attribute: normally
91 tig warning: ~/.tigrc:49: Unknown option command: c
92 tig warning: Errors while loading HOME/.tigrc.
95 assert_equals
help.screen
<<EOF
96 Quick reference for tig keybindings:
100 ø view-tree Show tree view
102 : prompt Open the prompt
124 [help] - line 1 of 16 100%