Ticket #290: pycryptopptests

File pycryptopptests, 12.9 KB (added by faried, at 2008-01-31T12:16:20Z)

builds/tests of pycryptopp

Line 
1Script started on Thu 31 Jan 2008 05:14:26 PM PKT
2% ./setup.py build && ./setup.py test
3"/usr/include/crypto++" detected, so we will use the Debian name "crypto++" to identify the library instead of the upstream name "cryptopp".
4running build
5running build_py
6creating build
7creating build/lib.linux-x86_64-2.5
8creating build/lib.linux-x86_64-2.5/pycryptopp
9copying pycryptopp/__init__.py -> build/lib.linux-x86_64-2.5/pycryptopp
10creating build/lib.linux-x86_64-2.5/pycryptopp/test
11copying pycryptopp/test/__init__.py -> build/lib.linux-x86_64-2.5/pycryptopp/test
12copying pycryptopp/test/test_rsa.py -> build/lib.linux-x86_64-2.5/pycryptopp/test
13copying pycryptopp/test/test_sha256.py -> build/lib.linux-x86_64-2.5/pycryptopp/test
14copying pycryptopp/test/test_aes.py -> build/lib.linux-x86_64-2.5/pycryptopp/test
15creating build/lib.linux-x86_64-2.5/pycryptopp/publickey
16copying pycryptopp/publickey/__init__.py -> build/lib.linux-x86_64-2.5/pycryptopp/publickey
17creating build/lib.linux-x86_64-2.5/pycryptopp/hash
18copying pycryptopp/hash/__init__.py -> build/lib.linux-x86_64-2.5/pycryptopp/hash
19creating build/lib.linux-x86_64-2.5/pycryptopp/cipher
20copying pycryptopp/cipher/__init__.py -> build/lib.linux-x86_64-2.5/pycryptopp/cipher
21running egg_info
22writing pycryptopp.egg-info/PKG-INFO
23writing top-level names to pycryptopp.egg-info/top_level.txt
24writing dependency_links to pycryptopp.egg-info/dependency_links.txt
25writing manifest file 'pycryptopp.egg-info/SOURCES.txt'
26creating build/lib.linux-x86_64-2.5/pycryptopp/test/vectors
27copying pycryptopp/test/vectors/SHA256LongMsg.txt -> build/lib.linux-x86_64-2.5/pycryptopp/test/vectors
28copying pycryptopp/test/vectors/SHA256Monte.txt -> build/lib.linux-x86_64-2.5/pycryptopp/test/vectors
29copying pycryptopp/test/vectors/SHA256ShortMsg.txt -> build/lib.linux-x86_64-2.5/pycryptopp/test/vectors
30copying pycryptopp/publickey/rsamodule.cpp -> build/lib.linux-x86_64-2.5/pycryptopp/publickey
31copying pycryptopp/hash/sha256module.cpp -> build/lib.linux-x86_64-2.5/pycryptopp/hash
32copying pycryptopp/cipher/aesmodule.cpp -> build/lib.linux-x86_64-2.5/pycryptopp/cipher
33running build_ext
34building 'pycryptopp.publickey.rsa' extension
35creating build/temp.linux-x86_64-2.5
36creating build/temp.linux-x86_64-2.5/pycryptopp
37creating build/temp.linux-x86_64-2.5/pycryptopp/publickey
38gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -DUSE_NAME_CRYPTO_PLUS_PLUS=True -I/usr/include -I/usr/include/python2.5 -c pycryptopp/publickey/rsamodule.cpp -o build/temp.linux-x86_64-2.5/pycryptopp/publickey/rsamodule.o
39cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
40g++ -pthread -shared -Wl,-O1 build/temp.linux-x86_64-2.5/pycryptopp/publickey/rsamodule.o -lcrypto++ -o build/lib.linux-x86_64-2.5/pycryptopp/publickey/rsa.so
41building 'pycryptopp.hash.sha256' extension
42creating build/temp.linux-x86_64-2.5/pycryptopp/hash
43gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -DUSE_NAME_CRYPTO_PLUS_PLUS=True -I/usr/include -I/usr/include/python2.5 -c pycryptopp/hash/sha256module.cpp -o build/temp.linux-x86_64-2.5/pycryptopp/hash/sha256module.o
44cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
45g++ -pthread -shared -Wl,-O1 build/temp.linux-x86_64-2.5/pycryptopp/hash/sha256module.o -lcrypto++ -o build/lib.linux-x86_64-2.5/pycryptopp/hash/sha256.so
46building 'pycryptopp.cipher.aes' extension
47creating build/temp.linux-x86_64-2.5/pycryptopp/cipher
48gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -DUSE_NAME_CRYPTO_PLUS_PLUS=True -I/usr/include -I/usr/include/python2.5 -c pycryptopp/cipher/aesmodule.cpp -o build/temp.linux-x86_64-2.5/pycryptopp/cipher/aesmodule.o
49cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
50g++ -pthread -shared -Wl,-O1 build/temp.linux-x86_64-2.5/pycryptopp/cipher/aesmodule.o -lcrypto++ -o build/lib.linux-x86_64-2.5/pycryptopp/cipher/aes.so
51"/usr/include/crypto++" detected, so we will use the Debian name "crypto++" to identify the library instead of the upstream name "cryptopp".
52running test
53running egg_info
54writing pycryptopp.egg-info/PKG-INFO
55writing top-level names to pycryptopp.egg-info/top_level.txt
56writing dependency_links to pycryptopp.egg-info/dependency_links.txt
57writing manifest file 'pycryptopp.egg-info/SOURCES.txt'
58running build_ext
59copying build/lib.linux-x86_64-2.5/pycryptopp/publickey/rsa.so -> pycryptopp/publickey
60copying build/lib.linux-x86_64-2.5/pycryptopp/hash/sha256.so -> pycryptopp/hash
61copying build/lib.linux-x86_64-2.5/pycryptopp/cipher/aes.so -> pycryptopp/cipher
62test_serialize_and_deserialize_signing_key_and_test (pycryptopp.test.test_rsa.SignAndVerify) ... ok
63test_serialize_and_deserialize_verifying_key_and_test (pycryptopp.test.test_rsa.SignAndVerify) ... ok
64test_sign_and_check_a (pycryptopp.test.test_rsa.SignAndVerify) ... ok
65test_sign_and_check_random (pycryptopp.test.test_rsa.SignAndVerify) ... ok
66test_sign_and_failcheck_a (pycryptopp.test.test_rsa.SignAndVerify) ... ok
67test_sign_and_failcheck_random (pycryptopp.test.test_rsa.SignAndVerify) ... ok
68test_generate (pycryptopp.test.test_rsa.Signer) ... ok
69test_generate_bad_size (pycryptopp.test.test_rsa.Signer) ... ok
70test_generate_from_seed (pycryptopp.test.test_rsa.Signer) ... ok
71test_generate_from_seed_bad_seed (pycryptopp.test.test_rsa.Signer) ... ok
72test_generate_from_seed_bad_size (pycryptopp.test.test_rsa.Signer) ... ok
73test_sign (pycryptopp.test.test_rsa.Signer) ... ok
74test_constructor_type_check (pycryptopp.test.test_sha256.SHA256) ... ok
75test_digest (pycryptopp.test.test_sha256.SHA256) ... ok
76test_digest_then_update_fail (pycryptopp.test.test_sha256.SHA256) ... ok
77test_digest_twice (pycryptopp.test.test_sha256.SHA256) ... ok
78test_hexdigest (pycryptopp.test.test_sha256.SHA256) ... ERROR
79test_onebyte_1 (pycryptopp.test.test_sha256.SHA256) ... ok
80test_onebyte_2 (pycryptopp.test.test_sha256.SHA256) ... ok
81test_update (pycryptopp.test.test_sha256.SHA256) ... ok
82test_update_type_check (pycryptopp.test.test_sha256.SHA256) ... ok
83test_long (pycryptopp.test.test_sha256.SHSVectors) ... ok
84test_monte (pycryptopp.test.test_sha256.SHSVectors) ... ok
85test_short (pycryptopp.test.test_sha256.SHSVectors) ... ok
86test_encrypt_zeroes (pycryptopp.test.test_aes.AES) ... ok
87test_encrypt_zeroes_in_two_parts (pycryptopp.test.test_aes.AES) ... ok
88test_init_type_check (pycryptopp.test.test_aes.AES) ... ok
89
90======================================================================
91ERROR: test_hexdigest (pycryptopp.test.test_sha256.SHA256)
92----------------------------------------------------------------------
93Traceback (most recent call last):
94  File "/t78/repos/pycryptopp/pycryptopp/test/test_sha256.py", line 40, in test_hexdigest
95    empty_hexdigest = sha256.SHA256().hexdigest()
96AttributeError: 'sha256.SHA256' object has no attribute 'hexdigest'
97
98----------------------------------------------------------------------
99Ran 27 tests in 1.442s
100
101FAILED (errors=1)
102% rm -fr build
103% ./setup.py build --debug && ./setup.py test
104"/usr/include/crypto++" detected, so we will use the Debian name "crypto++" to identify the library instead of the upstream name "cryptopp".
105running build
106running build_py
107creating build
108creating build/lib.linux-x86_64-2.5
109creating build/lib.linux-x86_64-2.5/pycryptopp
110copying pycryptopp/__init__.py -> build/lib.linux-x86_64-2.5/pycryptopp
111creating build/lib.linux-x86_64-2.5/pycryptopp/test
112copying pycryptopp/test/__init__.py -> build/lib.linux-x86_64-2.5/pycryptopp/test
113copying pycryptopp/test/test_rsa.py -> build/lib.linux-x86_64-2.5/pycryptopp/test
114copying pycryptopp/test/test_sha256.py -> build/lib.linux-x86_64-2.5/pycryptopp/test
115copying pycryptopp/test/test_aes.py -> build/lib.linux-x86_64-2.5/pycryptopp/test
116creating build/lib.linux-x86_64-2.5/pycryptopp/publickey
117copying pycryptopp/publickey/__init__.py -> build/lib.linux-x86_64-2.5/pycryptopp/publickey
118creating build/lib.linux-x86_64-2.5/pycryptopp/hash
119copying pycryptopp/hash/__init__.py -> build/lib.linux-x86_64-2.5/pycryptopp/hash
120creating build/lib.linux-x86_64-2.5/pycryptopp/cipher
121copying pycryptopp/cipher/__init__.py -> build/lib.linux-x86_64-2.5/pycryptopp/cipher
122running egg_info
123writing pycryptopp.egg-info/PKG-INFO
124writing top-level names to pycryptopp.egg-info/top_level.txt
125writing dependency_links to pycryptopp.egg-info/dependency_links.txt
126writing manifest file 'pycryptopp.egg-info/SOURCES.txt'
127creating build/lib.linux-x86_64-2.5/pycryptopp/test/vectors
128copying pycryptopp/test/vectors/SHA256LongMsg.txt -> build/lib.linux-x86_64-2.5/pycryptopp/test/vectors
129copying pycryptopp/test/vectors/SHA256Monte.txt -> build/lib.linux-x86_64-2.5/pycryptopp/test/vectors
130copying pycryptopp/test/vectors/SHA256ShortMsg.txt -> build/lib.linux-x86_64-2.5/pycryptopp/test/vectors
131copying pycryptopp/publickey/rsamodule.cpp -> build/lib.linux-x86_64-2.5/pycryptopp/publickey
132copying pycryptopp/hash/sha256module.cpp -> build/lib.linux-x86_64-2.5/pycryptopp/hash
133copying pycryptopp/cipher/aesmodule.cpp -> build/lib.linux-x86_64-2.5/pycryptopp/cipher
134running build_ext
135building 'pycryptopp.publickey.rsa' extension
136creating build/temp.linux-x86_64-2.5
137creating build/temp.linux-x86_64-2.5/pycryptopp
138creating build/temp.linux-x86_64-2.5/pycryptopp/publickey
139gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -g -DUSE_NAME_CRYPTO_PLUS_PLUS=True -UNDEBUG -I/usr/include -I/usr/include/python2.5 -c pycryptopp/publickey/rsamodule.cpp -o build/temp.linux-x86_64-2.5/pycryptopp/publickey/rsamodule.o -O0 -g -Wall
140cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
141g++ -pthread -shared -Wl,-O1 -g build/temp.linux-x86_64-2.5/pycryptopp/publickey/rsamodule.o -lcrypto++ -o build/lib.linux-x86_64-2.5/pycryptopp/publickey/rsa.so -g
142building 'pycryptopp.hash.sha256' extension
143creating build/temp.linux-x86_64-2.5/pycryptopp/hash
144gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -g -DUSE_NAME_CRYPTO_PLUS_PLUS=True -UNDEBUG -I/usr/include -I/usr/include/python2.5 -c pycryptopp/hash/sha256module.cpp -o build/temp.linux-x86_64-2.5/pycryptopp/hash/sha256module.o -O0 -g -Wall
145cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
146g++ -pthread -shared -Wl,-O1 -g build/temp.linux-x86_64-2.5/pycryptopp/hash/sha256module.o -lcrypto++ -o build/lib.linux-x86_64-2.5/pycryptopp/hash/sha256.so -g
147building 'pycryptopp.cipher.aes' extension
148creating build/temp.linux-x86_64-2.5/pycryptopp/cipher
149gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -g -DUSE_NAME_CRYPTO_PLUS_PLUS=True -UNDEBUG -I/usr/include -I/usr/include/python2.5 -c pycryptopp/cipher/aesmodule.cpp -o build/temp.linux-x86_64-2.5/pycryptopp/cipher/aesmodule.o -O0 -g -Wall
150cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
151g++ -pthread -shared -Wl,-O1 -g build/temp.linux-x86_64-2.5/pycryptopp/cipher/aesmodule.o -lcrypto++ -o build/lib.linux-x86_64-2.5/pycryptopp/cipher/aes.so -g
152"/usr/include/crypto++" detected, so we will use the Debian name "crypto++" to identify the library instead of the upstream name "cryptopp".
153running test
154running egg_info
155writing pycryptopp.egg-info/PKG-INFO
156writing top-level names to pycryptopp.egg-info/top_level.txt
157writing dependency_links to pycryptopp.egg-info/dependency_links.txt
158writing manifest file 'pycryptopp.egg-info/SOURCES.txt'
159running build_ext
160copying build/lib.linux-x86_64-2.5/pycryptopp/publickey/rsa.so -> pycryptopp/publickey
161copying build/lib.linux-x86_64-2.5/pycryptopp/hash/sha256.so -> pycryptopp/hash
162copying build/lib.linux-x86_64-2.5/pycryptopp/cipher/aes.so -> pycryptopp/cipher
163test_serialize_and_deserialize_signing_key_and_test (pycryptopp.test.test_rsa.SignAndVerify) ... ERROR
164test_serialize_and_deserialize_verifying_key_and_test (pycryptopp.test.test_rsa.SignAndVerify) ... ERROR
165test_sign_and_check_a (pycryptopp.test.test_rsa.SignAndVerify) ... ERROR
166test_sign_and_check_random (pycryptopp.test.test_rsa.SignAndVerify) ... ERROR
167test_sign_and_failcheck_a (pycryptopp.test.test_rsa.SignAndVerify) ... ERROR
168test_sign_and_failcheck_random (pycryptopp.test.test_rsa.SignAndVerify) ... ERROR
169test_generate (pycryptopp.test.test_rsa.Signer) ... ok
170test_generate_bad_size (pycryptopp.test.test_rsa.Signer) ... ok
171test_generate_from_seed (pycryptopp.test.test_rsa.Signer) ... ok
172test_generate_from_seed_bad_seed (pycryptopp.test.test_rsa.Signer) ... ok
173test_generate_from_seed_bad_size (pycryptopp.test.test_rsa.Signer) ... ok
174test_sign (pycryptopp.test.test_rsa.Signer) ... ok
175test_constructor_type_check (pycryptopp.test.test_sha256.SHA256) ... ok
176test_digest (pycryptopp.test.test_sha256.SHA256) ... ok
177test_digest_then_update_fail (pycryptopp.test.test_sha256.SHA256) ... ok
178test_digest_twice (pycryptopp.test.test_sha256.SHA256) ... ok
179test_hexdigest (pycryptopp.test.test_sha256.SHA256) ... ERROR
180test_onebyte_1 (pycryptopp.test.test_sha256.SHA256) ... Segmentation fault (core dumped)
181%