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 (24 lines) | stat: -rw-r--r-- 770 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

mtn_setup()

-- The 'version' command behaves exactly as the '--version' option.
check(mtn("version"), 0, true, 0)
rename("stdout", "out")
check(mtn("--version"), 0, true, 0)
check(samefile("stdout", "out"))

-- The 'version' command prints no detailed information.
check(mtn("version"), 0, true, 0)
output = readfile("stdout")
check(string.find(output, "Running on") == nil)

-- The 'version' command allows a '--full' option.
check(mtn("version", "--full"), 0, true, 0)
output = readfile("stdout")
check(string.find(output, "Running on") ~= nil)

-- The '--version' option does not allow a '--full' option (because the
-- latter is not global).
check(mtn("--version", "--full"), 0, true, 0)
output = readfile("stdout")
check(string.find(output, "Running on") == nil)