monotone

monotone Mtn Source Tree

Root/test_hooks.lua

1
2-- this is the "testing" set of lua hooks for monotone
3-- it's intended to support self-tests, not for use in
4-- production. just overrides some of the std hooks.
5
6function get_passphrase(keyid)
7return keyid
8end
9
10function non_blocking_rng_ok()
11return true
12end
13
14function persist_phrase_ok()
15return true
16end
17
18function get_post_targets(groupname)
19return { "nntp://127.0.0.1:8119/monotone.test.packets" }
20end
21
22function get_fetch_sources(groupname)
23return { "nntp://127.0.0.1:8119/monotone.test.packets" }
24end
25
26function get_news_sender(url, group)
27return "tester@test.com"
28end

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status