Unit testing and mocking with cmocka

Andreas Schneider asn at samba.org
Fri Jun 8 07:47:59 UTC 2018


Hello,

I gave a talk about unit testing and mocking with cmocka at the SambaXP 
conference this week.

cmocka is used to test several parts for our code already, the biggest user is 
ldb.

You can find the slides here: https://www.samba.org/~asn/

And the new mocking example here:
https://git.cryptomilk.org/projects/cmocka.git/tree/example/uptime

Simple example how to add a test in Samba, commit 
7573b2a960c5bd32ac6d42b10bb46329ff7fa7b7


If fell free to ask for help with cmocka if you need some :-)


	Andreas





More information about the samba-technical mailing list