ref: 229ea5630ca56d961af169df8b1c66b19e954a56
parent: cb0415db6f21cc0df0293b63e15f6a17b71457ef
author: Paul Brossier <piem@piem.org>
date: Sun Sep 16 22:34:13 EDT 2007
python/test: added simple python unit test model
--- /dev/null
+++ b/python/test/all_tests.py
@@ -1,0 +1,15 @@
+#! /usr/bin/python
+
+# add ${src}/python and ${src}/python/aubio/.libs to python path
+# so the script is runnable from a compiled source tree.
+import sys, os
+sys.path.append('..')
+sys.path.append(os.path.join('..','aubio','.libs'))
+
+import unittest
+
+modules_to_test = ('aubiomodule')
+
+if __name__ == '__main__':
+ for module in modules_to_test: exec('from %s import *' % module)
+ unittest.main()
--- /dev/null
+++ b/python/test/aubiomodule.py
@@ -1,0 +1,14 @@
+import unittest
+
+class aubiomodule_test_case(unittest.TestCase):
+
+ def test_aubio(self):
+ """ try importing aubio module """
+ import aubio
+
+ def test_aubiowrapper(self):
+ """ try importing aubio.aubiowrapper module """
+ from aubio import aubiowrapper
+
+if __name__ == '__main__':
+ unittest.main()