# HG changeset patch
# User Janus Dam Nielsen <[email protected]>
# Date 1254816324 -7200
# Node ID 9d6c0fe2f0d6d4b6c481842689e5d5f917512255
# Parent 2704f20bab087cc127acb0961acba98768a0123c
We skippe the tests because the commit module is not currently included in VIFF.
diff --git a/viff/test/test_orlandi_runtime.py
b/viff/test/test_orlandi_runtime.py
--- a/viff/test/test_orlandi_runtime.py
+++ b/viff/test/test_orlandi_runtime.py
@@ -26,7 +26,7 @@
from viff.util import rand
-import commitment
+# import commitment
def _get_triple(runtime, field):
@@ -68,6 +68,8 @@
share.addCallback(check)
return share
+ test_secret_share.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_open_secret_share(self, runtime):
"""Test sharing and open of a number."""
@@ -85,6 +87,8 @@
d.addCallback(check)
return d
+ test_open_secret_share.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_random_share(self, runtime):
"""Test creation of a random shared number."""
@@ -99,6 +103,7 @@
d.addCallback(check)
return d
+ test_random_share.skip = "Commitment module is not included in VIFF."
@protocol
def test_sum(self, runtime):
@@ -127,6 +132,8 @@
d.addCallback(check)
return d
+ test_sum.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_sum_plus(self, runtime):
"""Test addition of two numbers."""
@@ -154,6 +161,8 @@
d.addCallback(check)
return d
+ test_sum_plus.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_sum_constant(self, runtime):
"""Test addition of two numbers."""
@@ -176,6 +185,8 @@
d.addCallback(check)
return d
+ test_sum_constant.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_sub(self, runtime):
"""Test subtration of two numbers."""
@@ -203,6 +214,8 @@
d.addCallback(check)
return d
+ test_sub.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_sub_minus(self, runtime):
"""Test subtration of two numbers."""
@@ -230,6 +243,8 @@
d.addCallback(check)
return d
+ test_sub_minus.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_sub_constant(self, runtime):
"""Test subtration of two numbers."""
@@ -252,6 +267,7 @@
d.addCallback(check)
return d
+ test_sub_constant.skip = "Commitment module is not included in VIFF."
class OrlandiAdvancedCommandsTest(RuntimeTestCase):
"""Test for advanced commands."""
@@ -277,6 +293,8 @@
d.addCallback(check)
return d
+ test_shift.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_shift_two_inputters(self, runtime):
"""Test addition of the shift command."""
@@ -293,6 +311,8 @@
d2.addCallback(check)
return DeferredList([d1, d2])
+ test_shift_two_inputters.skip = "Commitment module is not included in
VIFF."
+
@protocol
def test_shift_two_consequtive_inputters(self, runtime):
"""Test addition of the shift command."""
@@ -309,6 +329,8 @@
r.addCallback(r1)
return r
+ test_shift_two_consequtive_inputters.skip = "Commitment module is not
included in VIFF."
+
@protocol
def test_shift_two_consequtive_inputters2(self, runtime):
"""Test addition of the shift command."""
@@ -328,6 +350,8 @@
r.addCallback(r1)
return r
+ test_shift_two_consequtive_inputters2.skip = "Commitment module is not
included in VIFF."
+
@protocol
def test_input(self, runtime):
"""Test of many uses of the input command."""
@@ -350,6 +374,8 @@
shares_ready = gather_shares(a_shares + b_shares)
return shares_ready
+ test_input.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_basic_multiply(self, runtime):
"""Test multiplication of two numbers."""
@@ -371,6 +397,8 @@
d.addCallback(check)
return d
+ test_basic_multiply.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_mul_mul(self, runtime):
"""Test multiplication of two numbers."""
@@ -391,6 +419,8 @@
d.addCallback(check)
return d
+ test_mul_mul.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_basic_multiply_constant_right(self, runtime):
"""Test multiplication of two numbers."""
@@ -411,6 +441,8 @@
d.addCallback(check)
return d
+ test_basic_multiply_constant_right.skip = "Commitment module is not
included in VIFF."
+
@protocol
def test_basic_multiply_constant_left(self, runtime):
"""Test multiplication of two numbers."""
@@ -431,6 +463,8 @@
d.addCallback(check)
return d
+ test_basic_multiply_constant_left.skip = "Commitment module is not
included in VIFF."
+
@protocol
def test_constant_multiplication_constant_left(self, runtime):
"""Test multiplication of two numbers."""
@@ -450,6 +484,8 @@
d.addCallback(check)
return d
+ test_constant_multiplication_constant_left.skip = "Commitment module is
not included in VIFF."
+
@protocol
def test_constant_multiplication_constant_right(self, runtime):
"""Test multiplication of two numbers."""
@@ -469,6 +505,8 @@
d.addCallback(check)
return d
+ test_constant_multiplication_constant_right.skip = "Commitment module is
not included in VIFF."
+
@protocol
def test_constant_multiplication_constant_None(self, runtime):
"""Test multiplication of two numbers."""
@@ -481,6 +519,8 @@
x2 = runtime.shift([1], self.Zp, x1)
y2 = runtime.shift([1], self.Zp, y1)
+ test_constant_multiplication_constant_None.skip = "Commitment module is
not included in VIFF."
+
@protocol
def test_sum_poly(self, runtime):
"""Test implementation of sum_poly."""
@@ -498,6 +538,8 @@
self.assertEquals(rho2, 29)
self.assertEquals(Cx, 29)
return x
+
+ test_sum_poly.skip = "Commitment module is not included in VIFF."
@protocol
def test_sum_poly(self, runtime):
@@ -521,6 +563,8 @@
self.assertEquals(Cx, Cf1**3 * Cf2**9 * Cf3**27)
return x
+ test_sum_poly.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_delta(self, runtime):
"""Test implementation of compute_delta."""
@@ -538,6 +582,8 @@
return delta
+ test_delta.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_leak_mul(self, runtime):
"""Test leaktolerant multiplication of two numbers."""
@@ -570,6 +616,7 @@
self.assertEquals(z2, None)
return z2
+ test_leak_mul.skip = "Commitment module is not included in VIFF."
class TripleGenTest(RuntimeTestCase):
"""Test for generation of triples."""
@@ -601,6 +648,8 @@
d.addCallbacks(open, runtime.error_handler)
return d
+ test_tripleGen.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_tripleGen2(self, runtime):
"""Test the triple_gen command."""
@@ -627,6 +676,7 @@
d.addCallbacks(open, runtime.error_handler)
return d
+ test_tripleGen2.skip = "Commitment module is not included in VIFF."
@protocol
def test_tripleTest(self, runtime):
@@ -648,6 +698,8 @@
d.addCallbacks(open, runtime.error_handler)
return d
+ test_tripleTest.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_random_triple(self, runtime):
"""Test the triple_combiner command."""
@@ -678,6 +730,8 @@
d.addCallbacks(open, runtime.error_handler)
return d
+ test_random_triple.skip = "Commitment module is not included in VIFF."
+
@protocol
def test_random_triple3_parallel(self, runtime):
"""Test the triple_combiner command."""
@@ -711,6 +765,8 @@
d.addCallbacks(open, runtime.error_handler)
return d
+ test_random_triple3_parallel.skip = "Commitment module is not included in
VIFF."
+
@protocol
def test_random_triple_parallel(self, runtime):
"""Test the triple_combiner command."""
@@ -766,3 +822,5 @@
runtime.schedule_callback(shares_ready, cont)
return shares_ready
+
+ test_random_triple_parallel.skip = "Commitment module is not included in
VIFF."
_______________________________________________
viff-patches mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-patches-viff.dk