monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] net.venge.monotone: b6e8ffef687a61a4060075865d


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone: b6e8ffef687a61a4060075865d00009f43608f47
Date: Sat, 5 Feb 2011 02:50:38 GMT

revision:            b6e8ffef687a61a4060075865d00009f43608f47
date:                2011-02-05T02:28:22
author:              Richard Levitte <address@hidden>
branch:              net.venge.monotone
changelog:
* test/extra/{min_hooks.lua,test_hooks.lua,test_keys}: Added,
  because test/lua-testsuite.lua (which is included by
  test/extra-testsuite.lua) needs them.

manifest:
format_version "1"

new_manifest [5b307fbdd226b94777b7679ab98fa841574ca49d]

old_revision [1772cce37d847988cdd8ec0df280ba2659945004]

add_file "test/extra/min_hooks.lua"
 content [fb5b03102682f22613e3f6dbebc8a5f3b9409e6c]

add_file "test/extra/test_hooks.lua"
 content [e44df92fd20c0051a95a08d8e7107056da92c0b5]

add_file "test/extra/test_keys"
 content [68bfff4f90ab7f4b508170aa88997fc8d4dfbfa2]
============================================================
--- /dev/null	
+++ test/extra/min_hooks.lua	fb5b03102682f22613e3f6dbebc8a5f3b9409e6c
@@ -0,0 +1,15 @@
+-- Copyright (C) 2006 Timothy Brownawell <address@hidden>
+--
+-- This program is made available under the GNU GPL version 2.0 or
+-- greater. See the accompanying file COPYING for details.
+--
+-- This program is distributed WITHOUT ANY WARRANTY; without even the
+-- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+-- PURPOSE.
+
+function get_passphrase(keyid)
+	return keyid.given_name
+end
+function persist_phrase_ok()
+	return true
+end
============================================================
--- /dev/null	
+++ test/extra/test_hooks.lua	e44df92fd20c0051a95a08d8e7107056da92c0b5
@@ -0,0 +1,102 @@
+-- Copyright (C) 2006 Timothy Brownawell <address@hidden>
+--
+-- This program is made available under the GNU GPL version 2.0 or
+-- greater. See the accompanying file COPYING for details.
+--
+-- This program is distributed WITHOUT ANY WARRANTY; without even the
+-- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+-- PURPOSE.
+
+-- this is the "testing" set of lua hooks for monotone
+-- it's intended to support self-tests, not for use in
+-- production. just defines some of the std hooks.
+
+function get_passphrase(keyid)
+	return keyid.given_name
+end
+
+function accept_testresult_change(old_results, new_results)
+   for test,res in pairs(old_results)
+   do
+      if res == true and new_results[test] ~= true
+      then
+	 return false
+      end
+   end
+   return true
+end
+
+function persist_phrase_ok()
+	return true
+end
+
+function get_author(branchname)
+	return "address@hidden"
+end
+
+function get_date_format_spec()
+        return ""
+end
+
+function ignore_file(name)
+	if (string.find(name, "ts-std", 1, true)) then return true end
+	if (string.find(name, "testsuite.log")) then return true end
+	if (string.find(name, "test_hooks.lua")) then return true end
+	if (string.find(name, "keys")) then return true end
+	return false
+end
+
+function merge2(left_path, right_path, merged_path, left, right)
+	io.write("running merge2 hook\n") 
+	return left
+     end
+
+merge3 = nil
+edit_comment = nil
+
+if (attr_functions == nil) then
+  attr_functions = {}
+end
+attr_functions["test:test_attr"] =
+  function(filename, value)
+    io.write(string.format("test:test_attr:%s:%s\n", filename, value))
+  end
+
+-- Ensure that the mtn:execute attr is set the same for all platforms,
+-- since attrs are part of the manifest, and we need revids to be
+-- invariant across platforms
+if (attr_init_functions == nil) then
+  attr_init_functions = {}
+end
+attr_init_functions["mtn:execute"] =
+   function(filename)
+        return nil
+   end
+
+function get_mtn_command(host)
+   return os.getenv("mtn")
+end
+
+function get_encloser_pattern(name)
+   return "^[[:alnum:]$_]"
+end
+
+do
+   local std_get_netsync_connect_command
+      = get_netsync_connect_command
+   function get_netsync_connect_command(uri, args)
+      local argv = std_get_netsync_connect_command(uri, args)
+
+      if argv and argv[1] then
+	 table.insert(argv, "--confdir="..get_confdir())
+	 table.insert(argv, "--rcfile="..get_confdir().."/test_hooks.lua")
+	 local x = io.open("custom_test_hooks.lua", "rb")
+	 if (x ~= nil) then
+	    table.insert(argv, "--rcfile="..get_confdir().."/custom_test_hooks.lua")
+	    x:close()
+	 end
+      end
+
+      return argv;
+   end
+end
============================================================
--- /dev/null	
+++ test/extra/test_keys	68bfff4f90ab7f4b508170aa88997fc8d4dfbfa2
@@ -0,0 +1,19 @@
+[keypair address@hidden
+MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC6Pz+IvvOCDDqzN9WFO/zOjL7s9dVCS+zn
+s/L9jQ2kHfNWXFof4GcgmMu4DfU4sUrRz39QxDlUrxEOvmIc9z3DNuIcbFZx7UZg9DWfdmDm
+vbW79bZlVMeIudAIUwa6euX163AK5hacmqJfuB5U7awQM9o3rn8JYULleAoz5QTtawIDAQAB#
+MIICyTBDBgkqhkiG9w0BBQ0wNjAeBgkqhkiG9w0BBQwwEQQIvYSV8ucj9m4CAggAAgEYMBQG
+CCqGSIb3DQMHBAg/BZPM2O3QfASCAoBBGkVz4E/Pr1CsIioC92eCz4qWLclhc53HgHSCEo9I
+XdNCTpCs/oxOXhQ0WQCPFhYEaxU8STgZm0Yhq8WEF1QfxOPOU8nDiwMT0L7/ARruu5bTCxnW
+B3kkn+XiO5GldVJhULFlrl91t83yMsTSw+vyCyxZkqewBLR7mqHQUe2suVquMyutxxr2vZgV
+QMfRxk65fSvySUHeNaj1dmakYcpP+35iejyUTAtAGuBsv2C68bwif4wkpLpedghNCtmccSdQ
+t9QDF3yy6Q42tAW/OK6/t836/qn39f+47Kp4LMJUMmxNrtV7IntIkgBGgnGsqP9Br2B4GYXc
+sWK0YApA3+Sf3kfH/wQ6Hib8nN4YxUTxxnS9WNHvRFrXCmfbGd5vAzi4lKCm/W+2Nlpd4DDQ
+3JZjjCR73PMfKtHJCGULkNkK/9kRyhLYql2u/ZUJoEcdZxzEpYgExW8Wu1CrCVtWd+ueXs1h
+or6Fdua7Gg4cjMgVg6EUSxdMBFQCX8heD8JeG6jMFNR9hTxe8o/PK8Ys63JyLMLRUv3Ud+f8
+8T0TtCZV5+rgLfvb6k89uDJJK228WuJB6rp8S+qqq30RFPmkzW8JNulRilY+wrIfcowA6+TA
+T5WKzFOIbkZd/R34tNLJMjTJlUq6SQKaOlQnqOEFbyY/GXgzYgnmc3tl8pigXEJvNzU5GiuB
+ib35QQbzh87KlfLtWELK+8ZoyhZAZAMr97IavUbuFubOyEoEozUliARyRZ1ZudM4Ii+J6TRX
+cmLryIBlz3OXgUUBSwJPwtWuR4tZ8nIt7cVJr7pxLblGfeFuu01HWN55hv4C78/aNSipVYCF
+OFt8n7wQHxbbJvoTIdd/
+[end]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]