diff options
author | Klaus Kaempf <kkaempf@suse.de> | 2008-08-07 13:52:46 +0000 |
---|---|---|
committer | Klaus Kaempf <kkaempf@suse.de> | 2008-08-07 13:52:46 +0000 |
commit | 334bb2590d07674b79fc81b85f1b39993b732edc (patch) | |
tree | 7bc7a5a22a1905cd490a5040b35513842dad8355 /swig/python/tests | |
parent | 05fe38f57a532ee59ec7dbf80615a41dd7ce760c (diff) | |
download | libzypp-bindings-334bb2590d07674b79fc81b85f1b39993b732edc.tar.gz libzypp-bindings-334bb2590d07674b79fc81b85f1b39993b732edc.tar.bz2 libzypp-bindings-334bb2590d07674b79fc81b85f1b39993b732edc.zip |
make the bindings compile
cleanup of CMakeLists.txt
add 'tests' subdir for Perl, Python, Ruby
add 'loading' test
Diffstat (limited to 'swig/python/tests')
-rw-r--r-- | swig/python/tests/CMakeLists.txt | 7 | ||||
-rw-r--r-- | swig/python/tests/loading.py | 13 |
2 files changed, 20 insertions, 0 deletions
diff --git a/swig/python/tests/CMakeLists.txt b/swig/python/tests/CMakeLists.txt new file mode 100644 index 0000000..216dd21 --- /dev/null +++ b/swig/python/tests/CMakeLists.txt @@ -0,0 +1,7 @@ +# +# CMakeLists.txt for libzypp-bindings/swig/python/tests +# + +ENABLE_TESTING() + +ADD_TEST(bindings_python_loading python ${CMAKE_CURRENT_SOURCE_DIR}/loading.py) diff --git a/swig/python/tests/loading.py b/swig/python/tests/loading.py new file mode 100644 index 0000000..3a751a7 --- /dev/null +++ b/swig/python/tests/loading.py @@ -0,0 +1,13 @@ +import unittest + +import sys +sys.path.insert(0, '../../../build/swig/python') + +class TestSequenceFunctions(unittest.TestCase): + + def testloading(self): + import zypp + + +if __name__ == '__main__': + unittest.main() |