<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/ctdb/tests/tool/scripts, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/'/>
<entry>
<title>ctdb-tests: Add "ctdb listnodes" and "ctdb xpnn" stub tests</title>
<updated>2014-03-23T03:20:14+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2014-03-17T02:42:35+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=79d28000043bd463beecaeac47855d3a4970eaf2'/>
<id>79d28000043bd463beecaeac47855d3a4970eaf2</id>
<content type='text'>
Tests for xpnn need to implement a stub for ctdb_sys_have_ip().  The
cheapest way of doing this is to read a fake nodemap using the
existing code and check if the IP of the "current" node is the one
being asked about.  However, the fake state initialisation isn't
currently available to without_daemon commands because it is meant to
represent daemon state.  However, it can be made available by moving
the relevant code into a new stub for tevent_context_init().  The stub
still needs to initialise a tevent context - this can be done by
calling a lower level function.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tests for xpnn need to implement a stub for ctdb_sys_have_ip().  The
cheapest way of doing this is to read a fake nodemap using the
existing code and check if the IP of the "current" node is the one
being asked about.  However, the fake state initialisation isn't
currently available to without_daemon commands because it is meant to
represent daemon state.  However, it can be made available by moving
the relevant code into a new stub for tevent_context_init().  The stub
still needs to initialise a tevent context - this can be done by
calling a lower level function.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb:tests: Rework unit test result filtering</title>
<updated>2013-11-27T17:46:17+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2013-11-15T01:22:05+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=8ca117a68e525db57623ce529690b24c45afa1e3'/>
<id>8ca117a68e525db57623ce529690b24c45afa1e3</id>
<content type='text'>
Using a variable is too fragile, so use a function instead.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Michael Adam &lt;obnox@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using a variable is too fragile, so use a function instead.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Michael Adam &lt;obnox@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/tool: Remove references in libctdb in file and function names</title>
<updated>2013-10-04T05:15:35+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2013-09-18T04:27:03+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=24fb430d6e99e60af9b1f9e2e358ec707937e7a8'/>
<id>24fb430d6e99e60af9b1f9e2e358ec707937e7a8</id>
<content type='text'>
Main changes are:

  libctdb_test.c -&gt; ctdb_test_stubs.c
  ctdb_tool_libctdb.c -&gt; ctdb_functest.c

ctdb_tool_stubby.c is gone, replaced with existing ctdb_test.c.

Functions starting with "libctdb_test_" now start with
"ctdb_test_stubs_".

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;
Pair-programmed-with: Amitay Isaacs &lt;amitay@gmail.com&gt;

(This used to be ctdb commit 6182bd0c19f215a997efe5272e633b1b1bd0c882)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Main changes are:

  libctdb_test.c -&gt; ctdb_test_stubs.c
  ctdb_tool_libctdb.c -&gt; ctdb_functest.c

ctdb_tool_stubby.c is gone, replaced with existing ctdb_test.c.

Functions starting with "libctdb_test_" now start with
"ctdb_test_stubs_".

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;
Pair-programmed-with: Amitay Isaacs &lt;amitay@gmail.com&gt;

(This used to be ctdb commit 6182bd0c19f215a997efe5272e633b1b1bd0c882)
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/tool: New function setup_natgw() to setup $CTDB_NATGW_NODES</title>
<updated>2012-09-28T07:05:34+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2012-07-18T07:02:38+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=3ccaba7842e22029ee6541b4f9e35c80f756c056'/>
<id>3ccaba7842e22029ee6541b4f9e35c80f756c056</id>
<content type='text'>
Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 0f0aef21a1bb2d88a8c184ef70c718e0c91acdc3)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 0f0aef21a1bb2d88a8c184ef70c718e0c91acdc3)
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/tool: Run ctdb_tool_* under $VALGRIND</title>
<updated>2012-07-26T12:03:00+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2012-07-20T07:00:12+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=a90f6d7cd14ae823e0b3dbc7e1a916b76ba0bbe1'/>
<id>a90f6d7cd14ae823e0b3dbc7e1a916b76ba0bbe1</id>
<content type='text'>
Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 6616a5712b5d4db2b9ba6a88cec79378696c2184)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 6616a5712b5d4db2b9ba6a88cec79378696c2184)
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Programs run by tests should be found in $PATH</title>
<updated>2012-04-27T05:40:43+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2012-04-19T01:27:05+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=43f1209dc4484f456ccd47254955c0eb4d484383'/>
<id>43f1209dc4484f456ccd47254955c0eb4d484383</id>
<content type='text'>
Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit b5308142d03332d6d4e0c3b77283c772462fbb23)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit b5308142d03332d6d4e0c3b77283c772462fbb23)
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: More unit test factoring/rationalisation and bug fixes</title>
<updated>2012-04-18T00:37:45+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2012-04-18T00:37:45+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=116f19b808ace4a74bcf56a638923dcd1e1e975d'/>
<id>116f19b808ace4a74bcf56a638923dcd1e1e975d</id>
<content type='text'>
Move some options from eventscripts/run_tests.sh to scripts/run_tests.
Remove the former.

Move some functions from eventscripts/scripts/local.sh to
scripts/unit.sh.

Both of these are modified during move so they are no longer
eventscript-specific.

Tweak */local.sh so that the new functions in unit.sh are used.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 7ff485687891732074c9fc9998502ca197663d02)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move some options from eventscripts/run_tests.sh to scripts/run_tests.
Remove the former.

Move some functions from eventscripts/scripts/local.sh to
scripts/unit.sh.

Both of these are modified during move so they are no longer
eventscript-specific.

Tweak */local.sh so that the new functions in unit.sh are used.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 7ff485687891732074c9fc9998502ca197663d02)
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/tool - Restructure according to new convention</title>
<updated>2012-04-16T05:06:48+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2012-04-16T04:25:50+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=006b18dec4d9781fc7c64b249e47aa3cf2b99d0c'/>
<id>006b18dec4d9781fc7c64b249e47aa3cf2b99d0c</id>
<content type='text'>
Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 89571585d87b391ff79647cd1f0f6ac193079e72)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 89571585d87b391ff79647cd1f0f6ac193079e72)
</pre>
</div>
</content>
</entry>
</feed>
