This patchset adds testsuite for dpkg-divert which is passed by Perl implementation of dpkg-divert and then replaces Perl implementation by C implementation which passes the same testsuite.