diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2010-04-14 11:40:06 +0200 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2010-04-14 11:40:06 +0200 |
commit | 6c6d0fda6928aab668bdf1a92e1bebfbcbd6dc52 (patch) | |
tree | 58bfe6c7c20b20fcedf1fe63d047149519993325 /SConstruct | |
parent | e984385f84ed7eaee17e3e9bdfd868f37fbc7dd2 (diff) | |
download | pyexiv2-6c6d0fda6928aab668bdf1a92e1bebfbcbd6dc52.tar.gz |
Add a scons target to run the unit tests.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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() |