Test cases for testing Jacksum by calling its CLI to check new implementations and avoid regressions.
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-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 :)
$