build: waf quicktest nearly works
[nivanova/samba-autobuild/.git] / source4 / selftest / wscript
1 # selftest main code.
2
3 import Scripting, os
4
5 ########################################################################
6 # main test entry point
7 def cmd_test(opt):
8     '''Run the full test suite'''
9     print "Starting full test"
10
11 ########################################################################
12 # main test entry point
13 def cmd_quicktest(opt):
14     '''Run the quick test suite'''
15     print "Starting quick test"
16     #Scripting.commands += ['build']
17     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'
18     ret = os.system(SELFTEST)
19
20 def set_options(opt):
21     opt.ADD_COMMAND('test', cmd_test)
22     opt.ADD_COMMAND('quicktest', cmd_quicktest)