diff options
author | mjfernez <mjfernez@gmail.com> | 2021-03-29 20:19:25 -0400 |
---|---|---|
committer | mjfernez <mjfernez@gmail.com> | 2021-03-29 20:19:25 -0400 |
commit | 242c3b75cffbffae114dd4a2b7dc453399cfa428 (patch) | |
tree | 9110b317ee65c688916628a5831dd430e27a7e56 /fhash/tests/TESTING | |
parent | b45b3948e5082a1b20419286a5059bd93834d167 (diff) | |
download | scripts-n-tools-242c3b75cffbffae114dd4a2b7dc453399cfa428.tar.gz |
Fhash clean up and unit tests
Added saner unit testing in the tests folder, which can be added to by
expanding the data in the tests/hashes.json file. Also removed some
redundant comments and inconsistencies
Diffstat (limited to 'fhash/tests/TESTING')
-rw-r--r-- | fhash/tests/TESTING | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fhash/tests/TESTING b/fhash/tests/TESTING new file mode 100644 index 0000000..a06269f --- /dev/null +++ b/fhash/tests/TESTING @@ -0,0 +1,17 @@ +## **Run `python run_tests.py` to test all files** + +All hashes verified with openssl in hashes.json + +## Bonus +Shattered test +(mostly for fun) +These files should yield the same sha1 hash value + +To test run + +`fhash.py sha1 -i shattered-1.pdf` +`fhash.py sha1 -i shattered-2.pdf` + +You should get: 38762cf7f55934b34d179ae6a4c80cadccbb7f0a + +From: http://shattered.io/ |