summaryrefslogtreecommitdiff
path: root/source4/selftest/wscript
blob: d271ce783c1afb080a7727052d10edbf09e2f58d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# selftest main code.

import Scripting, os

########################################################################
# main test entry point
def cmd_test(opt):
    '''Run the full test suite'''
    print "Starting full test"

########################################################################
# main test entry point
def cmd_quicktest(opt):
    '''Run the quick test suite'''
    print "Starting quick test"
    #Scripting.commands += ['build']
    SELFTEST = 'PYTHON=/usr/bin/python perl -W ../selftest/selftest.pl --prefix=./st --builddir=. --srcdir=. --exclude=./selftest/skip --testlist="./selftest/tests.sh|" --exclude=./selftest/slow --quick --include=./selftest/quick --socket-wrapper | perl -W ../selftest/filter-subunit.pl --expected-failures=./selftest/knownfail | /usr/bin/perl -W ../selftest/format-subunit.pl --prefix=./st --format=plain --immediate'
    ret = os.system(SELFTEST)

def set_options(opt):
    opt.ADD_COMMAND('test', cmd_test)
    opt.ADD_COMMAND('quicktest', cmd_quicktest)