Skip to content

jonelo/jacksum-testcases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jacksum-testcases

Test cases for testing Jacksum by calling its CLI to check new implementations and avoid regressions.

Prepare it

convert-testvectors-text2json.py converts all text based test vectors in testvectors/raw/ to json in testvectors/json.

$ python ./convert-testvectors-text2json.py
Reading testvectors/raw/algorithms/sha3/SHA3_224ShortMsg.rsp ...
Reading testvectors/raw/algorithms/sha3/SHA3_224LongMsg.rsp ...
Writing testvectors/json/sha3-224.json ...
Reading testvectors/raw/algorithms/sha3/SHA3_256ShortMsg.rsp ...
Reading testvectors/raw/algorithms/sha3/SHA3_256LongMsg.rsp ...
Writing testvectors/json/sha3-256.json ...
...
$

Run it

run-tests.py reads the testcases in both testvectors/lib and testvectors/json, performs the test and prints a result.

$ pyhton ./run-tests.py
...
Result: {'passed': 22679, 'failed': []}
ALL PASSED :)
$

About

Testcases to test Jacksum by calling its CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages