]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
test_context: make tests return values affect overall test result 85/head
authorVitaly Chikunov <vt@altlinux.org>
Sat, 15 Sep 2018 01:22:00 +0000 (04:22 +0300)
committerVitaly Chikunov <vt@altlinux.org>
Sat, 15 Sep 2018 01:26:14 +0000 (04:26 +0300)
test_context.c

index ba54784cb99ee545ce86836a64325109177c7477..72e10579909f55d746e590a3fde2c2b8a65bf8ef 100644 (file)
@@ -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);