mirror of https://github.com/ddevault/scdoc
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
270 B
23 lines
270 B
7 years ago
|
#!/bin/sh
|
||
|
. test/lib.sh
|
||
|
|
||
|
begin "Ignore comments"
|
||
|
scdoc <<EOF | grep "this is a comment" >/dev/null
|
||
|
test(8)
|
||
|
|
||
|
; this is a comment
|
||
|
|
||
|
Hello world!
|
||
|
EOF
|
||
|
end 1
|
||
|
|
||
|
begin "Fail on invalid comments"
|
||
|
scdoc <<EOF >/dev/null
|
||
|
test(8)
|
||
|
|
||
|
;this is an invalid comment
|
||
|
|
||
|
Hello world!
|
||
|
EOF
|
||
|
end 1
|