tests/python/vdbtests.py
changeset 177 fd154978bab5
child 178 5d1c3e5fab6b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/python/vdbtests.py	Mon Jul 08 12:37:49 2019 +0100
@@ -0,0 +1,32 @@
+#
+# jv:vdb - Visual / VM Debugger
+# Copyright (C) 2015-now Jan Vrany
+#
+# This software is licensed under 'Creative Commons Attribution-NonCommercial 4.0 International License'
+#
+# You may find a full license text in LICENSE.txt or at http://creativecommons.org/licenses/by-nc/4.0/
+#
+
+"""
+This script contains tests Pythin vdb support.
+To run all tests
+
+    gdb -q --ex "source vdbtests.py" -ex 'py run()' -ex "quit"
+
+To run single test, for example, _instanceTests.test_context_03():
+
+    gdb -q --ex "source vdbtests.py" -ex 'py run(parse_and_eval_test("test_01"))' -ex "quit"
+
+"""
+
+import os
+import sys
+import unittest
+
+vdb_tests_python_dir = os.path.dirname(__file__)
+vdb_python_dir = os.path.join(vdb_tests_python_dir, '..' , '..' , 'python')
+
+sys.path.append(vdb_python_dir)
+
+import gdb
+import vdb