Import LinuxCNC source tree
This commit is contained in:
4
tests/inifile/comments/README
Normal file
4
tests/inifile/comments/README
Normal file
@@ -0,0 +1,4 @@
|
||||
Test the INI parser with regards to comments, both inline and on it's own line.
|
||||
|
||||
After 2.7.x, the INI parser in LinuxCNC does not support inline comments.
|
||||
See: https://github.com/LinuxCNC/linuxcnc/issues/991
|
||||
4
tests/inifile/comments/expected
Normal file
4
tests/inifile/comments/expected
Normal file
@@ -0,0 +1,4 @@
|
||||
value1
|
||||
value2 ; inline not comment
|
||||
value3
|
||||
value4 # another inline not comment
|
||||
6
tests/inifile/comments/test.sh
Executable file
6
tests/inifile/comments/test.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
inivar -ini with_comments.ini -var key1
|
||||
inivar -ini with_comments.ini -var key2
|
||||
inivar -ini with_comments.ini -var key3
|
||||
inivar -ini with_comments.ini -var key4
|
||||
8
tests/inifile/comments/with_comments.ini
Normal file
8
tests/inifile/comments/with_comments.ini
Normal file
@@ -0,0 +1,8 @@
|
||||
; This is a comment
|
||||
[section1]
|
||||
key1=value1
|
||||
; Another comment
|
||||
key2=value2 ; inline not comment
|
||||
# different comment style
|
||||
key3=value3
|
||||
key4=value4 # another inline not comment
|
||||
Reference in New Issue
Block a user