Writing Perl Tests

From SambaWiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Writing Perl Tests

Don't write new perl tests

There are Perl tests in Samba for:

* PIDL
* smbclient_tarmode

We do not wish to add any more Perl tests outside the scope of PIDL, if writing a new test please write it in Python

Use Test::More

Samba uses Subunit, and by using tap2subunit we can convert the TAP stream from Test::More into subunit

Plan the test suite using planperltestsuite

New tests using Test::More should be planned in tests.py with planperltestsuite()