<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hi,<br>
<br>
I've produced a consequent code modification in clipman to <a
moz-do-not-send="true"
href="https://gitlab.xfce.org/Sylvain/xfce4-clipman-plugin/-/tree/dev-refactor-indexes">add
secure item feature</a>.<br>
I now test it personally at full time since September 2021, it's
useful and doesn't crash.<br>
<br>
I would like to add test, or more tests, because there's a tests
folder.<br>
But I'm not sure how it should be done, nor how to automate test.<br>
<br>
I didn't find Makefile target like: make test<br>
<br>
Could you explain me how you add test to the code structure?<br>
<br>
What I already get, which doesn't explain about unit-testing
strategy.<br>
<br>
<a
href="https://wiki.xfce.org/dev/howto/panel_plugins#testing_and_releasing_the_plugin">https://wiki.xfce.org/dev/howto/panel_plugins#testing_and_releasing_the_plugin</a><br>
<br>
<br>
Basically I produced a new data structure to handle index of
element, an indexed double linked list:<br>
<br>
<font face="monospace">index: [ 0 , 1 , 2 ]<br>
| | |<br>
list: | | |<br>
| | |<br>
| |
|
<br>
head -> [item1] <=> [item2] <=> [item3]<br>
</font><br>
Which allow me to access any element by id, and I also maintain a
circular indexes, reusing freed index and clipman history resizing.<br>
I would like to refactor the code and extract the data structure
from the history and to keep it under tests, because pointer and
indexes already gave me some strong<br>
debugging sessions. So I learned remote debugging 😁<br>
<br>
Do you have some rules about testing to follow, or could I introduce
any Makefile target I want?<br>
Do you have to project example to give me that introduces testing in
its code base? So I could borrow the code structure.<br>
<br>
Happy Christmas code hacking,<br>
Sylvain.<br>
<br>
<pre class="moz-signature" cols="72">--
Sylvain Viart - GNU/Linux Sysadmin/Developer/DevOps - France </pre>
</body>
</html>