summaryrefslogtreecommitdiff
path: root/qa/test.py
diff options
context:
space:
mode:
authorsaurabhb172020-02-26 16:36:01 +0530
committersaurabhb172020-02-26 16:36:01 +0530
commit1fa449fed953fa11f6bd0ea82cc2d3b115ee0781 (patch)
treead18839d8b4eb1f13419d07878cc4ec4c9b70032 /qa/test.py
parentc38609295ad4b617aef472b9c575aee18710a50f (diff)
downloadKiCad-eSim-1fa449fed953fa11f6bd0ea82cc2d3b115ee0781.tar.gz
KiCad-eSim-1fa449fed953fa11f6bd0ea82cc2d3b115ee0781.tar.bz2
KiCad-eSim-1fa449fed953fa11f6bd0ea82cc2d3b115ee0781.zip
Remaining files transfered
Diffstat (limited to 'qa/test.py')
-rw-r--r--qa/test.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/qa/test.py b/qa/test.py
new file mode 100644
index 0000000..3ebb937
--- /dev/null
+++ b/qa/test.py
@@ -0,0 +1,18 @@
+import unittest
+import platform
+import sys
+
+if platform.python_version() < '2.7':
+ unittest = __import__('unittest2')
+else:
+ import unittest
+
+if __name__ == '__main__':
+ testsuite = unittest.TestLoader().discover('testcases',pattern="*.py")
+ results = unittest.TextTestRunner(verbosity=100).run(testsuite)
+
+ # Return an error code if any of the testsuite tests fail
+ if not results.wasSuccessful():
+ sys.exit(1)
+
+