aboutsummaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2010-04-14 11:40:06 +0200
committerOlivier Tilloy <olivier@tilloy.net>2010-04-14 11:40:06 +0200
commit6c6d0fda6928aab668bdf1a92e1bebfbcbd6dc52 (patch)
tree58bfe6c7c20b20fcedf1fe63d047149519993325 /SConstruct
parente984385f84ed7eaee17e3e9bdfd868f37fbc7dd2 (diff)
downloadpyexiv2-6c6d0fda6928aab668bdf1a92e1bebfbcbd6dc52.tar.gz
Add a scons target to run the unit tests.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 6 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 7e54c37..ec57e67 100644
--- a/SConstruct
+++ b/SConstruct
@@ -22,6 +22,10 @@ def build_doc():
sys.path.insert(0, os.path.join(curdir, 'src'))
SConscript('doc/SConscript')
+def run_tests():
+ from test.TestsRunner import run_unit_tests
+ run_unit_tests()
+
if not BUILD_TARGETS:
# Default target: lib
build_lib()
@@ -32,4 +36,6 @@ else:
# Note: building the doc requires the lib to be built and the pyexiv2
# module to be in the python path.
build_doc()
+ if 'test' in BUILD_TARGETS:
+ run_tests()