mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Enable running just one unittest module via the master build script
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
1
b
1
b
@@ -5,7 +5,6 @@
|
|||||||
PYVER=2.6
|
PYVER=2.6
|
||||||
PYVER2=26
|
PYVER2=26
|
||||||
|
|
||||||
|
|
||||||
if [ "$OSTYPE" = "cygwin" ]; then
|
if [ "$OSTYPE" = "cygwin" ]; then
|
||||||
$TOOLS/python$PYVER2/python.exe -u build.py "$@"
|
$TOOLS/python$PYVER2/python.exe -u build.py "$@"
|
||||||
else
|
else
|
||||||
|
|||||||
10
build.py
10
build.py
@@ -49,6 +49,7 @@ Usage: ./build.py [command(s)] [options]
|
|||||||
SIP files
|
SIP files
|
||||||
sip Run sip
|
sip Run sip
|
||||||
test Run the unit test suite
|
test Run the unit test suite
|
||||||
|
test_* Run just one test module
|
||||||
|
|
||||||
build_wx Do the wxWidgets part of the build
|
build_wx Do the wxWidgets part of the build
|
||||||
build_py Build wxPython only
|
build_py Build wxPython only
|
||||||
@@ -80,7 +81,9 @@ def main(args):
|
|||||||
while commands:
|
while commands:
|
||||||
cmd = commands[0]
|
cmd = commands[0]
|
||||||
commands = commands[1:]
|
commands = commands[1:]
|
||||||
if cmd in ['dox', 'doxhtml', 'etg', 'sip', 'touch', 'test',
|
if cmd.startswith('test_'):
|
||||||
|
testOne(cmd, options, args)
|
||||||
|
elif cmd in ['dox', 'doxhtml', 'etg', 'sip', 'touch', 'test',
|
||||||
'build_wx', 'build_py', 'build',
|
'build_wx', 'build_py', 'build',
|
||||||
'clean_wx', 'clean_py', 'cleanall']:
|
'clean_wx', 'clean_py', 'cleanall']:
|
||||||
function = globals()[cmd]
|
function = globals()[cmd]
|
||||||
@@ -376,6 +379,11 @@ def test(options, args):
|
|||||||
runcmd(PYTHON + ' unittests/runtests.py -v')
|
runcmd(PYTHON + ' unittests/runtests.py -v')
|
||||||
|
|
||||||
|
|
||||||
|
def testOne(name, options, args):
|
||||||
|
msg('Running test %s:' % name)
|
||||||
|
pwd = pushDir(phoenixDir())
|
||||||
|
runcmd(PYTHON + ' unittests/%s.py -v' % name)
|
||||||
|
|
||||||
|
|
||||||
def build(options, args):
|
def build(options, args):
|
||||||
msg('Running command: build')
|
msg('Running command: build')
|
||||||
|
|||||||
Reference in New Issue
Block a user