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

includecommon("automate_stdio.lua")

mtn_setup()

-- We don't check options with paths in them; on Windows, sometimes
-- the paths have '\' for directory separators, sometimes '/', and we
-- don't have a way to predict which or fix them.
check(mtn("automate", "get_option", "branch"), 0, true, false)
canonicalize("stdout")
check("testbranch\n" == readfile("stdout"))

check(mtn("automate", "get_option", "key"), 0, true, false)
canonicalize("stdout")
check("tester@test.net\n" == readfile("stdout"))

-- Ensure that 'get_options' gets the workspace options even when run via stdio
check(mtn_ws_opts("automate", "stdio"), 0, true, false, "l10:get_option6:branche")
check("testbranch\n" == parse_stdio(readfile("stdout"), 0))

-- end of file