aboutsummaryrefslogtreecommitdiffstats
path: root/test/SConscript
blob: f1efb4e001701bc8ce91c6b18831bc205fe44b5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- coding: utf-8 -*-

from TestsRunner import run_unit_tests

def tests_builder(target, source, env):
    result = run_unit_tests()
    if result.wasSuccessful():
        return None
    else:
        return result.errors + result.failures

env = Environment()
env.Command('test', None, tests_builder)