Added Python (Thanks to Beholder) - it fails to build properly using my build system,
so there's a precompiled binary included, with a hack in Android.mk to make it work on NDK r4b
This commit is contained in:
16
project/jni/python/src/Lib/test/test_crypt.py
Normal file
16
project/jni/python/src/Lib/test/test_crypt.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from test import test_support
|
||||
import unittest
|
||||
import crypt
|
||||
|
||||
class CryptTestCase(unittest.TestCase):
|
||||
|
||||
def test_crypt(self):
|
||||
c = crypt.crypt('mypassword', 'ab')
|
||||
if test_support.verbose:
|
||||
print 'Test encryption: ', c
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(CryptTestCase)
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_main()
|
||||
Reference in New Issue
Block a user