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 (20 lines) | stat: -rw-r--r-- 697 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
-- this is an accompanying test for #30150

mtn_setup()
check(get("date_untrusted.lua"))
check(get("author_untrusted.lua"))
check(get("all_untrusted.lua"))

addfile("foo", "blablabla")
commit()
rev=base_revision()
shortrev=string.sub(rev, 1, 8)..".."

check(mtn("annotate", "foo", "--rcfile", "date_untrusted.lua"), 0, true, false)
check(qgrep("^" .. shortrev .. " by 'tester': ", "stdout"))

check(mtn("annotate", "foo", "--rcfile", "author_untrusted.lua"), 0, true, false)
check(qgrep("^" .. shortrev .. " [0-9]{4}(-[0-9]{2}){2}T[0-9]{2}(:[0-9]{2}){2}: ", "stdout"))

check(mtn("annotate", "foo", "--rcfile", "all_untrusted.lua"), 0, true, false)
check(qgrep("^" .. shortrev .. ": ", "stdout"))