File: __driver__.lua

package info (click to toggle)
monotone 1.1-9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 20,984 kB
  • ctags: 8,622
  • sloc: cpp: 86,450; sh: 6,906; perl: 924; makefile: 813; python: 517; lisp: 379; sql: 118; exp: 91; ansic: 52
file content (22 lines) | stat: -rw-r--r-- 786 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
mtn_setup()

check(mtn("manpage"), 0, true, false)
rename("stdout", "manpage")

-- check for a proper header line
check(mtn("version"), 0, true, false)
local s,e,version = string.find(readfile("stdout"), "(monotone %d+%.%d+%S*)")
check(qgrep(".TH \"monotone\" 1 \"[0-9]{4}-[0-9]{2}-[0-9]{2}\" \"" .. version .. "\"", "manpage"))

-- check required sections
check(qgrep(".SH \"NAME\"", "manpage"))
check(qgrep(".SH \"SYNOPSIS\"", "manpage"))

-- check the optional sections
check(qgrep(".SH \"DESCRIPTION\"", "manpage"))
check(qgrep(".SH \"GLOBAL OPTIONS\"", "manpage"))
check(qgrep(".SH \"COMMANDS\"", "manpage"))
check(qgrep(".SH \"SEE ALSO\"", "manpage"))
check(qgrep(".SH \"BUGS\"", "manpage"))
check(qgrep(".SH \"AUTHORS\"", "manpage"))
check(qgrep(".SH \"COPYRIGHT\"", "manpage"))