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
|