]> git.ipfire.org Git - pakfire.git/commitdiff
python: Add an example test
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Jan 2021 16:21:36 +0000 (16:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Jan 2021 16:21:36 +0000 (16:21 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
tests/python/test.py [new file with mode: 0755]

index d14a53b8031bcb4c73a7872043544105ff1728c2..7ab952b0537a248cd4267d17650e9b398eb66eed 100644 (file)
@@ -595,7 +595,8 @@ TESTS_ENVIRONMENT = \
        PYTHONPATH="$(top_srcdir)/.libs:$(top_srcdir)/src" \
        topdir="$(shell pwd)"
 
-#dist_check_SCRIPTS = \
+dist_check_SCRIPTS = \
+       tests/python/test.py
 #      tests/module-load.py
 
 TESTS = \
diff --git a/tests/python/test.py b/tests/python/test.py
new file mode 100755 (executable)
index 0000000..f1a5a05
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/python3
+
+import unittest
+
+class Test(unittest.TestCase):
+       """
+               This is an example test for Pakfire
+       """
+       def test_example(self):
+               self.assertEqual("ABC", "ABC")
+
+if __name__ == "__main__":
+       unittest.main()