diff options
author | Vitaly Chikunov <vt@altlinux.org> | 2018-09-15 04:22:00 +0300 |
---|---|---|
committer | Vitaly Chikunov <vt@altlinux.org> | 2018-09-15 04:26:14 +0300 |
commit | 202c7936ade6929c86ec91a8b11ebf0b3c59844d (patch) | |
tree | 9ac74ac785c021450bd29e2e9a8bccd5cff4c801 /test_context.c | |
parent | 4072a0c4e2d8a81a068b000c538f762b792ef8a6 (diff) | |
download | gost-engine-202c7936ade6929c86ec91a8b11ebf0b3c59844d.zip gost-engine-202c7936ade6929c86ec91a8b11ebf0b3c59844d.tar.gz gost-engine-202c7936ade6929c86ec91a8b11ebf0b3c59844d.tar.bz2 |
test_context: make tests return values affect overall test result
Diffstat (limited to 'test_context.c')
-rw-r--r-- | test_context.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test_context.c b/test_context.c index ba54784..72e1057 100644 --- a/test_context.c +++ b/test_context.c @@ -134,16 +134,16 @@ int main(int argc, char **argv) { int ret = 0; - test_contexts(cipher_gost_grasshopper_ecb(), 1, "grasshopper ecb", 0); - test_contexts(cipher_gost_grasshopper_ecb(), 0, "grasshopper ecb", 0); - test_contexts(cipher_gost_grasshopper_cbc(), 1, "grasshopper cbc", 0); - test_contexts(cipher_gost_grasshopper_cbc(), 0, "grasshopper cbc", 0); - test_contexts(cipher_gost_grasshopper_ctr(), 1, "grasshopper ctr", 0); - test_contexts(cipher_gost_grasshopper_ctr(), 0, "grasshopper ctr", 0); - test_contexts(cipher_gost_grasshopper_ofb(), 1, "grasshopper ofb", 0); - test_contexts(cipher_gost_grasshopper_ofb(), 0, "grasshopper ofb", 0); - test_contexts(cipher_gost_grasshopper_ctracpkm(), 1, "grasshopper ctracpkm", 256 / 8); - test_contexts(cipher_gost_grasshopper_ctracpkm(), 0, "grasshopper ctracpkm", 256 / 8); + ret |= test_contexts(cipher_gost_grasshopper_ecb(), 1, "grasshopper ecb", 0); + ret |= test_contexts(cipher_gost_grasshopper_ecb(), 0, "grasshopper ecb", 0); + ret |= test_contexts(cipher_gost_grasshopper_cbc(), 1, "grasshopper cbc", 0); + ret |= test_contexts(cipher_gost_grasshopper_cbc(), 0, "grasshopper cbc", 0); + ret |= test_contexts(cipher_gost_grasshopper_ctr(), 1, "grasshopper ctr", 0); + ret |= test_contexts(cipher_gost_grasshopper_ctr(), 0, "grasshopper ctr", 0); + ret |= test_contexts(cipher_gost_grasshopper_ofb(), 1, "grasshopper ofb", 0); + ret |= test_contexts(cipher_gost_grasshopper_ofb(), 0, "grasshopper ofb", 0); + ret |= test_contexts(cipher_gost_grasshopper_ctracpkm(), 1, "grasshopper ctracpkm", 256 / 8); + ret |= test_contexts(cipher_gost_grasshopper_ctracpkm(), 0, "grasshopper ctracpkm", 256 / 8); if (ret) printf(cDRED "= Some tests FAILED!\n" cNORM); |