File: test_hooks.lua

package info (click to toggle)
monotone 0.18-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 16,440 kB
  • ctags: 13,394
  • sloc: sh: 130,618; ansic: 70,657; cpp: 51,980; perl: 421; makefile: 359; python: 184; lisp: 132; sql: 83
file content (28 lines) | stat: -rw-r--r-- 580 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

-- this is the "testing" set of lua hooks for monotone
-- it's intended to support self-tests, not for use in
-- production. just overrides some of the std hooks.

function get_passphrase(keyid)
	return keyid
end

function non_blocking_rng_ok()
	return true
end

function persist_phrase_ok()
	return true
end

function get_post_targets(groupname)
	return { "nntp://127.0.0.1:8119/monotone.test.packets" } 
end

function get_fetch_sources(groupname)
	return { "nntp://127.0.0.1:8119/monotone.test.packets" }
end

function get_news_sender(url, group)
	return "tester@test.com"
end