There are actually 2 tests here but made in sparrow ( black box testing ) manner:
create a crypted image file and then decrypt it and check if we get required string in ( /modules/decrypt case )
create a crypted image file and check if it differ from original by issuing diff command
The source code of crypt-image-smoke sparrow plugin could be found here - https://github.com/melezhik/crypt-image-smoke , actually it is very simple to understand ( just a couple of bash scripts )
Hi Mohammad! This is simple smoke tests for your Crypt::Image module, example Travis job is here - https://travis-ci.org/melezhik/Crypt-Image/builds/180518462
There are actually 2 tests here but made in sparrow ( black box testing ) manner:
diff
commandThe source code of crypt-image-smoke sparrow plugin could be found here - https://github.com/melezhik/crypt-image-smoke , actually it is very simple to understand ( just a couple of bash scripts )