Allow setting the call program to fail This test is checking that the old setter/getter interface works. My fix to resetting the version causes this test to fail on Debian as we have no binary called 'gnupg'. Since the test is testing the setter/getter we don't care if loading the version fails.
Ensure that we have some dummy "binaries" around for testing. The test scripts require that gpg1, gpg and gnupg all exist and are executable, otherwise warnings will be thrown.
This patch provides those "binaries", but they actually only print the a version number that matches the binary.
It is still necessary to have at least one real GnuPG binary installed for the test suite to pass. For Debian, but gpg and gpg1 need to be present.
The patch to t/update_version.t isn't required on Debian, but is included as this patch set has been forwarded upstream, and may be required elsewhere. This is also why dummy scripts for gpg, gpg1 and gnupg are provided.
Using 'call' method doesn't reset gpg version GnuPG::Interface allows the use of the 'call' method to change the program to be used. Test that this works.