regress (5187:a0ff86ffdefe) regress (5247:fdbfa56f0b09)
1#! /usr/bin/env python
2# Copyright (c) 2005-2007 The Regents of The University of Michigan
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 38 unchanged lines hidden (view full) ---

47optparser.add_option('--variants', dest='variants',
48 default='fast',
49 help='comma-separated list of build variants to test '
50 " (default: '%default')" )
51optparser.add_option('--scons-opts', dest='scons_opts', default='',
52 help='scons options', metavar='OPTS')
53optparser.add_option('-j', '--jobs', type='int', default=1,
54 help='number of parallel jobs to use')
1#! /usr/bin/env python
2# Copyright (c) 2005-2007 The Regents of The University of Michigan
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 38 unchanged lines hidden (view full) ---

47optparser.add_option('--variants', dest='variants',
48 default='fast',
49 help='comma-separated list of build variants to test '
50 " (default: '%default')" )
51optparser.add_option('--scons-opts', dest='scons_opts', default='',
52 help='scons options', metavar='OPTS')
53optparser.add_option('-j', '--jobs', type='int', default=1,
54 help='number of parallel jobs to use')
55optparser.add_option('-k', '--keep-going', action='store_true',
56 help='keep going after errors')
55
56(options, tests) = optparser.parse_args()
57
58
59# split list options on ',' to get Python lists
60builds = options.builds.split(',')
61variants = options.variants.split(',')
62

--- 37 unchanged lines hidden (view full) ---

100 targets = ['build/%s/tests/%s/%s' % (build, variant, test)
101 for build in builds
102 for variant in variants
103 for test in tests]
104
105scons_opts = options.scons_opts
106if options.jobs != 1:
107 scons_opts += ' -j %d' % options.jobs
57
58(options, tests) = optparser.parse_args()
59
60
61# split list options on ',' to get Python lists
62builds = options.builds.split(',')
63variants = options.variants.split(',')
64

--- 37 unchanged lines hidden (view full) ---

102 targets = ['build/%s/tests/%s/%s' % (build, variant, test)
103 for build in builds
104 for variant in variants
105 for test in tests]
106
107scons_opts = options.scons_opts
108if options.jobs != 1:
109 scons_opts += ' -j %d' % options.jobs
110if options.keep_going:
111 scons_opts += ' -k'
108
109system('scons IGNORE_STYLE=True %s %s' % (scons_opts, ' '.join(targets)))
110
111sys.exit(0)
112
113system('scons IGNORE_STYLE=True %s %s' % (scons_opts, ' '.join(targets)))
114
115sys.exit(0)