Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to lxml 3.6.0 #1215

Open
wants to merge 4,511 commits into
base: master
Choose a base branch
from
Open
Changes from 3 commits
Commits
Show all changes
4511 commits
Select commit Hold shift + click to select a range
815129b
Merge pull request #1136 from Daetalus/ref_nexedi_test_long
undingen Apr 18, 2016
3ec9cf9
Merge pull request #1064 from Daetalus/numpy_fixing_2
undingen Apr 18, 2016
73ab425
Merge commit '940204863f502b5b5d82144ed7c24ffc26e036d5' into refcounting
undingen Apr 18, 2016
916a2dc
Merge commit '2a3b70eb97fc2693bb97e804674646b41b8ad700' into refcounting
undingen Apr 18, 2016
81a372d
Merge commit '7819995dca114868749f41857b7f6372adf1fe05' into refcounting
undingen Apr 18, 2016
9f89ae2
these two test are passed now
Apr 19, 2016
a60b7d0
decref the float object when no longer need it anymore
Apr 19, 2016
4378ad1
Merge pull request #1137 from Daetalus/ref_nexedi_test_float
undingen Apr 19, 2016
b35206a
Turn on CI for the refcounting branch again
kmod Apr 18, 2016
01255f1
Merge pull request #1138 from kmod/refcounting
kmod Apr 19, 2016
30d2e36
refcounting: fix pypa parser leaks
undingen Apr 20, 2016
62300c6
interpreter+bjit: fix leak when encountering a dict or set node with …
undingen Apr 22, 2016
c699490
fix a leak in interactive mode, -m mode and a leak when calling tp_se…
undingen Apr 22, 2016
bacf0cf
Merge pull request #1140 from undingen/misc_refcounting_fixed
undingen Apr 22, 2016
cb6d62e
Minor tester improvement
kmod Mar 22, 2016
0467ab0
Add -q to the tester
kmod Apr 13, 2016
4eb5b94
move Location from rewriter.h to types.h
undingen Apr 5, 2016
61dc462
generate a decref info table and fix the bjit
undingen Apr 5, 2016
a9b9595
Fix some bjit/rewriter crashes
kmod Apr 17, 2016
4aaaa6f
Rewriter setattr checking
kmod Apr 17, 2016
f1c1234
Don't create Register decref-info entries
kmod Apr 17, 2016
c079bc4
Fix deinitFrame on deopt
kmod Apr 19, 2016
eb3a0fe
Re-enable the "block-local" bjit optimization
kmod Apr 19, 2016
5247cb0
Trying an optimization
kmod Apr 28, 2016
eff92bd
Merge pull request #1143 from kmod/tester_q
kmod Apr 28, 2016
b2c11fd
Add a bit more to our gdbinit
kmod Apr 29, 2016
9393fff
Disable the no-vreg-for-block-local optimization, again
kmod Apr 29, 2016
aea4f11
fix set.add() for existing keys and fix set ast node when encounterin…
undingen Apr 29, 2016
71195a5
Merge pull request #1145 from undingen/fix_set_insert_order
kmod Apr 29, 2016
42804b7
Remove some duplicated refUsed annotations
kmod Apr 29, 2016
6cdbb2a
Merge pull request #1144 from kmod/bjit
kmod Apr 29, 2016
4a5d4a7
Fix some dict behavior
kmod Apr 29, 2016
30ee1b0
Add missing refcounting annotation
kmod Apr 29, 2016
b92bd74
Some test notes
kmod Apr 29, 2016
3d315a5
Merge pull request #1146 from kmod/refcounting
kmod May 1, 2016
ff03e99
hyperlink dir file
KrishMunot May 1, 2016
5bfa36d
fix attrwrapper.pop and float.imag
undingen Apr 25, 2016
7c7bcdd
fix _PyTuple_Resize and a null pointer dereference in seqiter_next
undingen Apr 25, 2016
3689480
set: fix a few reference leaks when an exception gets throwen
undingen Apr 25, 2016
b85cb05
BoxIteratorGeneric: fix leak when next() throwes in the constructor
undingen Apr 19, 2016
f923dab
parser module: register static object
undingen Apr 26, 2016
b74be94
Merge pull request #1142 from undingen/misc_refcounting_fixed2
undingen May 2, 2016
0aaf8b9
avoid rearrangeArguments decref uninitialized memory
May 2, 2016
e1f9db5
decref file object when throw exception
May 2, 2016
9e7817e
Merge pull request #1151 from Daetalus/ref_nexedi_str
undingen May 2, 2016
5deae4d
Fix another raise-before-stealing-argument bug
kmod May 3, 2016
a0f0cb7
Merge pull request #1152 from kmod/refcounting
kmod May 3, 2016
ae919c9
Minor: mark these as noexcept
kmod May 3, 2016
ca2ed31
Add some lifetime information to temporaries in the cfg
kmod May 4, 2016
27b94e4
Add RewriterVar::replaceAttr()
kmod May 4, 2016
67943c2
Avoid allocations in pyElements()
kmod May 3, 2016
8618e75
Switch GCArray to PyObject_Malloc
kmod May 4, 2016
8001ad7
Add vector::reserve() calls everywhere we had StlCompatAllocators
kmod May 4, 2016
d3b6df9
Merge pull request #1153 from kmod/kill_some
kmod May 6, 2016
8497b61
Merge pull request #1154 from kmod/refcounting
kmod May 6, 2016
b2372b5
Fix a pyexpat issue
kmod May 6, 2016
a726eee
We were missing this define
kmod May 6, 2016
7b3743f
unwinder: allow the use of c++ exceptions in finalizers
undingen Apr 21, 2016
716ae2d
unwinder: ignore disabled frames
undingen May 5, 2016
702a57c
yield: make it steal the passed argument
undingen Apr 21, 2016
741f69f
generator: clean up abandonment generators
undingen Apr 18, 2016
e514642
allow generator to return non None values
undingen May 4, 2016
e07eda8
generator: borrow passed_generator
undingen May 5, 2016
24b8ce7
deopt: free additional deopt state copy of all object before starting…
undingen May 5, 2016
1e2ba21
Merge pull request #1139 from undingen/generator_del2
undingen May 6, 2016
f690f71
bjit: directly emit recordType again
undingen Apr 20, 2016
6de98e5
Merge pull request #1156 from undingen/bjit_recordType
undingen May 6, 2016
24fc085
Merge pull request #1155 from kmod/reftests2
kmod May 6, 2016
61b2566
Update test notes
kmod May 6, 2016
08b0c3f
Register owned attributes from rearrangeArguments
kmod May 6, 2016
8504ca4
These two tests are working with refcounting
kmod May 6, 2016
a941cdf
Merge pull request #1159 from kmod/reftests2
kmod May 7, 2016
c5858c7
Merge pull request #1150 from KrishMunot/patch-2
kmod May 7, 2016
a74aff9
Fix test_set crash
kmod May 6, 2016
d9aac0a
Fix some other exception-from-deopt cases
kmod May 7, 2016
968cd67
test_deque is working now
kmod May 7, 2016
1874cdd
Another setAddStolen issue
kmod May 7, 2016
784938e
Havent found a missing autoDecref in a while
kmod May 7, 2016
31050d6
Disable test_urllibnet.py.test_getcode
kmod May 7, 2016
b163e6c
Merge pull request #1160 from kmod/reftests3
kmod May 8, 2016
4bdc398
bitset begin() fix
corona10 May 8, 2016
db5c573
refcounting fixes for numpy in PyTuple_GetSlice, PyErr_SetExcInfo and…
undingen May 8, 2016
3ed04ee
Merge pull request #1163 from undingen/ref_integration2
undingen May 8, 2016
cb0fd07
Merge pull request #1162 from corona10/bitset_begin
kmod May 9, 2016
ef32270
Another run-arbitrary-code-during-unwinding issue
kmod May 9, 2016
3843340
bitset micro-optimize
corona10 May 8, 2016
6e93f47
Change from "bool is_unwinding" to "int num_uncaught"
kmod May 9, 2016
0f84817
Disable part of test_os.py
kmod May 9, 2016
a1a6e36
Merge pull request #1165 from kmod/reftests3
kmod May 9, 2016
dacfd45
Undo a bunch of "Pyston change"s in from_cpython
kmod Apr 15, 2016
865898f
Remove a bunch of changes we made to cpython's testsuite
kmod May 9, 2016
1f8f585
copy CPython sys.getsizeof implementation with some Pyston changes
May 9, 2016
7026d23
Merge pull request #1164 from corona10/bitset
kmod May 9, 2016
d36b99b
Merge pull request #1167 from Daetalus/nexedi_sys_getsizeof
kmod May 9, 2016
183aa5f
Merge pull request #1166 from kmod/undo_changes
kmod May 9, 2016
806a657
_PyInstance_Lookup returns a borrowed reference
kmod May 9, 2016
30c435c
Fix leaks in init_elementtree
kmod May 9, 2016
5c1d544
No more reffail in test/tests/ and test/cpython/
kmod May 9, 2016
3fdafd9
Continue the shutdown whack-a-mole game
kmod May 9, 2016
3beb6d1
These are working now
kmod May 9, 2016
1da14a3
Merge pull request #1168 from kmod/reftests2
kmod May 10, 2016
2f40d89
Functions that look at the return address should be noinline
kmod May 10, 2016
e3dc92d
Add setattrInternal
kmod May 10, 2016
a348ba7
Reenable clang_release and gcc_release for CI testing
kmod May 10, 2016
e54ca90
Update section_ordering.txt
kmod May 10, 2016
2480546
Zero-initialize oargs
kmod May 11, 2016
5aafab0
Fix usage of undef variables
kmod May 11, 2016
4180105
Call _PyImport_Fini to clean up c extensions
kmod May 11, 2016
a16e602
Merge pull request #1171 from kmod/undef_assert
kmod May 11, 2016
ec3339b
Disable the "extra" tests for now
kmod May 12, 2016
7fd2c60
Merge pull request #1169 from kmod/enable_gcc
kmod May 12, 2016
dceb1e9
A new sort-generator
kmod May 13, 2016
f834dfd
Try to reduce cxx-exception-fixup overhead
kmod May 13, 2016
163d76c
Remove some debug checks from InternedString
kmod May 13, 2016
85da655
Small optimization: try to use cached vreg assignment instead of look…
kmod May 13, 2016
4f03c2d
Add a bunch more kill flags
kmod May 13, 2016
520c119
Reenable -n tests for CI
kmod May 13, 2016
6940f10
Add a test for a case we put the decref too early
kmod May 13, 2016
3133326
Some notes about defaults-changing
kmod May 14, 2016
22b48e1
Merge pull request #1172 from kmod/jit_time
kmod May 16, 2016
ccfc141
Don't have attrwrapper.get convert to dict-backed
kmod May 16, 2016
f446716
interpreter: mark created_closure as live variable insids yields
undingen May 16, 2016
ec66b76
traverse BoxedClosure::parent
undingen May 16, 2016
578297b
Merge pull request #1173 from undingen/interp_created_closure
undingen May 16, 2016
e21bb8f
add a cmake option to enable memory debugging and refcounting debug s…
undingen May 13, 2016
0c6b51f
bjit: fix problem with creating very large sets, tuples,..
undingen May 12, 2016
85a9a4b
BoxedCApiFunction::tppCall: always check return value before calling …
undingen May 12, 2016
37aac26
refcounting changes for our integration & extra tests
undingen May 6, 2016
194bcb9
Have Debug builds default to ref checking
kmod May 16, 2016
4027c96
Merge pull request #1157 from undingen/ref_integration
undingen May 16, 2016
37c237f
check return value instead of calling checkAndThrowCAPIException()
undingen May 17, 2016
d27c22a
Merge pull request #1174 from undingen/checkAndThrow
undingen May 17, 2016
e1b5d9c
checkAndThrowCAPIException needs to do a 32bit comparison in some cases
undingen May 17, 2016
b1b6678
enable cffi test
undingen May 17, 2016
8b00456
Merge pull request #1175 from undingen/checkAndThrowCAPIException_size
undingen May 18, 2016
6042419
don't update boxed frame on exit when it's not used
undingen May 6, 2016
fd83f41
add tuple free list
undingen May 17, 2016
d9659bc
remove numpy submodule
May 18, 2016
69d4005
Make this command line match the one in CMakelists.txt
kmod May 16, 2016
1a5e605
Change rearrangeArgs to taking a callback
kmod May 15, 2016
6e7da64
Actually implement rearrangeArgumentsAndCall
kmod May 16, 2016
82fccc6
Try making rearrangeArgs not a template
kmod May 17, 2016
02c0a74
Merge pull request #1178 from undingen/perf_refcounting
kmod May 18, 2016
8201e33
Switch from our custom magic class to llvm::function_ref
kmod May 18, 2016
147549c
Merge pull request #1176 from kmod/rearrange_and_call
kmod May 18, 2016
7eb9ecf
Fix remaining "check refcounting" assertions
kmod May 19, 2016
6466fee
Add some LIKELY annotations to obmalloc
kmod May 18, 2016
261d33c
Revert to CPython's _PyUnicode_New
kmod May 18, 2016
4f9fa37
Add some likely/unlikely annotations to _PyUnicode_New
kmod May 18, 2016
3b3e586
Optimize PyObject_Malloc slightly
kmod May 19, 2016
7ac0fc6
Merge pull request #1181 from kmod/perf8
kmod May 19, 2016
ef4807e
update numpy test
May 18, 2016
2b1b870
Merge pull request #1179 from Daetalus/numpy_update_2
undingen May 19, 2016
2b881d1
add __rmod__ to str object
May 19, 2016
eb3e468
let PyEval_GetBuiltins return attrwrapper
May 19, 2016
bf8aafd
Merge commit '3ec9cf9' into merge_missing2
undingen May 19, 2016
f742d0c
Merge commit 'ff03e99' into merge_missing2
undingen May 19, 2016
3164dc3
Merge commit 'c5858c7' into merge_missing2
undingen May 19, 2016
64bc976
add __name__ attr to method-wrapper
May 19, 2016
da8686b
Merge pull request #1182 from kmod/check_refcounting
kmod May 19, 2016
1d1236b
Merge pull request #1170 from Daetalus/numpy_update
undingen May 19, 2016
96bcd8c
Support CAPI exceptions through this function
kmod May 19, 2016
413d022
Some numpy_test.py improvements
kmod May 19, 2016
307c2a0
Switch to smallvectors here
kmod May 19, 2016
4f83635
Extract the logic from DEFAULT_CLASS_SIMPLE
kmod May 19, 2016
49f8df1
Merge pull request #1183 from undingen/merge_missing2
kmod May 19, 2016
9c925c4
Merge pull request #1186 from kmod/numpy_perf
kmod May 20, 2016
a7653f0
Merge pull request #1187 from kmod/perf9
kmod May 20, 2016
7e53e4e
Reenable the 'extra' tests
kmod May 20, 2016
2023279
Don't create .pyc files for the main script
kmod May 20, 2016
cfae319
Oh it wasn't an issue, we were just passing more tests than expected
kmod May 20, 2016
8807084
Merge pull request #1189 from kmod/extra_tests
kmod May 20, 2016
24ee166
store and restore is_reraise flag
undingen May 19, 2016
1257cf6
enable sqlalchemy_smalltest
undingen May 19, 2016
c429f19
Merge pull request #1185 from undingen/sqlalchemy_ref
undingen May 21, 2016
1cfb7ac
Cleanup
kmod May 20, 2016
b5d22ec
Turn these optimizations back on
kmod May 20, 2016
24f4462
Merge pull request #1192 from kmod/refcounting_merge
kmod May 21, 2016
33e1db9
tuple: implement tp_as_sequence->sq_contains
undingen May 22, 2016
5816b3d
binop: use PyNumber_* for user defined classes
undingen May 20, 2016
b22043a
binopInternal: make inplace a template argument
undingen May 21, 2016
21ab994
Merge pull request #1198 from undingen/tuple_contains
undingen May 22, 2016
938b019
microptimization: mark _PyGC_generation0 as having a const address
undingen May 22, 2016
e335b4c
Merge pull request #1188 from dropbox/refcounting
kmod May 23, 2016
12e93c0
Force-rebuild during a pgo build
kmod May 23, 2016
2c916cb
Add numpy_fulltest.py that runs the full numpy testsuite
kmod May 23, 2016
e44c12e
Make bind_obj_out borrowed
kmod May 22, 2016
026b316
rearrangeArgs: don't own refs for positional_to_positional
kmod May 23, 2016
0d111f8
Loosen these checks if we imported a third party c extension
kmod May 23, 2016
9ffdead
Merge pull request #1202 from undingen/const_generation0
undingen May 23, 2016
62ee763
Merge pull request #1203 from undingen/use_pynumber
undingen May 23, 2016
9d5e5b2
there's no rewriter support in hex and oct in Pyston for now, so just…
May 23, 2016
a32afb2
Merge pull request #1201 from Daetalus/nexedi_numpy_fixing
undingen May 23, 2016
f9fcd85
Merge pull request #1200 from kmod/extra_refs
kmod May 23, 2016
2876c09
Update test results
kmod May 23, 2016
14ea4c0
Merge pull request #1206 from kmod/numpy_updatetest
kmod May 23, 2016
ea4cd6e
BoxIteratorGeneric: call PyIter_Next() lazily
undingen May 23, 2016
a31e032
revert some pyston changes now that we have ob_refcnt
undingen May 21, 2016
22b0776
update virtualenv to the one which always sets zip_safe=False
undingen May 23, 2016
1e54256
Merge pull request #1208 from undingen/zip_safe
undingen May 23, 2016
a6fca70
Merge pull request #1205 from undingen/BoxIteratorGeneric_fix
undingen May 24, 2016
19bf066
str: use tp_as_sequence instead of tp_as_number
undingen May 24, 2016
87f8c6a
Merge pull request #1210 from undingen/str_tp_as_number
kmod May 24, 2016
5e1a850
PyObject_New: register the type if the type is not yet registered
undingen May 23, 2016
b2a94fc
travis-ci: add some numpy requirements
undingen May 23, 2016
bf20355
Create a simple Dockerfile
kmod May 25, 2016
61ac7b5
Merge pull request #1207 from undingen/register_types
kmod May 25, 2016
d793a3a
Workaround for the "terminator in middle of basic block" issue
kmod May 24, 2016
a994ec0
Fix a rewriter bug
kmod May 24, 2016
8e8c9a8
Copy in CPython's descrobject.c
kmod May 24, 2016
4c3c693
Switch to using CPython's getset, member, wrapperdescr, and wrapper t…
kmod May 24, 2016
75d0050
Reenable our tpp_call rewriting for these types
kmod May 24, 2016
2f2c2f2
Support Rewriter::addGCReference, now without leaks
kmod May 24, 2016
0751c27
Use CPython's PyMethodDescr_Type
kmod May 24, 2016
7f84725
Reenable rewriting for method-descriptors
kmod May 24, 2016
c9cab0e
Merge pull request #1211 from kmod/docker2
kmod May 25, 2016
04f4515
Get rid of the numpy patch
kmod May 24, 2016
6dd62f7
cffi failures scare me
kmod May 25, 2016
a11ffa7
Manually specify the output of methoddescr.py
kmod May 25, 2016
7974eb8
Merge pull request #1209 from kmod/cpython_descr2
kmod May 25, 2016
499c4c0
Some packaging / distributing updates
kmod May 25, 2016
f4f3d39
exec, input: if globals has no __builtins__ add it as a dictwrapper
undingen May 25, 2016
865f7ba
Add a pyston/pyston-numpy docker image as well
kmod May 25, 2016
f788cfa
Merge pull request #1212 from kmod/packaging
kmod May 25, 2016
c4384c6
update list of failing cpython tests
undingen May 25, 2016
970ed60
Bump version numbers
kmod May 25, 2016
c6d8021
Merge pull request #1226 from kmod/packaging
kmod May 25, 2016
08d75e5
Merge pull request #1223 from undingen/cpython_tests2
kmod May 25, 2016
e37660e
Merge pull request #1221 from undingen/exec_builtins
kmod May 25, 2016
d1b799e
Temporarily disable the clang build on travis-CI
kmod Jun 6, 2016
ecb7025
Fix gcc debug-mode issue
kmod Jun 7, 2016
5380b5c
Fix std::move error on temporary object
c-rhodes Jun 7, 2016
b1137c1
Merge pull request #1237 from c-rhodes/fix_builtins_std_move
undingen Jun 7, 2016
251f48a
Bump build time to 60 minutes
kmod Jun 7, 2016
5ae5bf2
Merge pull request #1235 from kmod/disable_clang_build
kmod Jun 7, 2016
ce69b81
bjit: change PP sizes and some misc minor improvements
undingen May 26, 2016
031526a
bjit: let OSR handle multiple loops
undingen May 26, 2016
4253de6
bjit: directly emit 'is' and 'is not' comparisons
undingen May 26, 2016
dc85d00
bjit: make nonzeroHelper return a borrowed reference
undingen May 29, 2016
a9a9c6c
bjit: use r12 and r15
undingen May 30, 2016
b022674
bjit: reenable local block var optimization
undingen May 27, 2016
75b794a
bjit: allocate code block using mmap
undingen May 26, 2016
ce2d965
rewriter: cleanup call() using a template and add a can_throw argumen…
undingen Jun 2, 2016
229fb46
rewriter: directly embed additional ref uses and bump uses early when…
undingen Jun 2, 2016
9fd4924
bjit: enable MAP_32BIT
undingen Jun 4, 2016
ccdbbaa
float.cpp: now that we have float.c use some of the functions directly
undingen Jun 7, 2016
11c0b2c
use std::isinf and std::isnan
undingen Jun 7, 2016
820dd0c
Merge pull request #1236 from undingen/cleanup_float_cpp
undingen Jun 8, 2016
e717448
Merge pull request #1227 from undingen/bjit_opt2
undingen Jun 8, 2016
43b1eb7
Update to lxml 3.6.0
undingen May 25, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -325,7 +325,7 @@ add_test(NAME gc_unittest COMMAND gc_unittest)
add_test(NAME analysis_unittest COMMAND analysis_unittest)

macro(add_pyston_test testname directory)
add_test(NAME pyston_${testname}_${directory} COMMAND ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/tester.py -R ./pyston -j${TEST_THREADS} -k -a=-S ${ARGV2} ${ARGV3} ${ARGV4} ${CMAKE_SOURCE_DIR}/test/${directory})
add_test(NAME pyston_${testname}_${directory} COMMAND ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/tester.py -R ./pyston -j${TEST_THREADS} -q -k -a=-S ${ARGV2} ${ARGV3} ${ARGV4} ${CMAKE_SOURCE_DIR}/test/${directory})
endmacro()

# tests testname directory arguments
42 changes: 31 additions & 11 deletions tools/tester.py
Original file line number Diff line number Diff line change
@@ -42,6 +42,14 @@
SKIP_FAILING_TESTS = False
VERBOSE = 1

DISPLAY_SKIPS = False
DISPLAY_SUCCESSES = True

def success_message(msg):
if DISPLAY_SUCCESSES:
return msg
return ""

PYTHONIOENCODING = 'utf-8'

# For fun, can test pypy.
@@ -145,7 +153,7 @@ def run_test(fn, check_stats, run_memcheck):
del check_stats, run_memcheck

if opts.skip:
return "(skipped: %s)" % opts.skip
return ("(skipped: %s)" % opts.skip) if DISPLAY_SKIPS else ""

env = dict(os.environ)
env["PYTHONPATH"] = EXTMODULE_DIR_PYSTON
@@ -189,7 +197,9 @@ def get_test_options(fn, check_stats, run_memcheck):
l = l[len("# run_args:"):].split()
opts.jit_args += l
elif l.startswith("# expected:"):
assert opts.expected == "success", "Multiple 'expected:' lines found!"
opts.expected = l[len("# expected:"):].strip()
assert opts.expected != "success", "'expected: success' is the default and is ignored"
elif l.startswith("# should_error"):
opts.should_error = True
elif l.startswith("# fail-if:"):
@@ -258,7 +268,9 @@ def determine_test_result(fn, opts, code, out, stderr, elapsed):
if not have_stats:
color = 31
msg = "no stats available"
if KEEP_GOING:
if opts.expected == "fail":
return success_message("Expected failure (no stats found)")
elif KEEP_GOING:
failed.append(fn)
if VERBOSE >= 1:
return "\033[%dmFAILED\033[0m (%s)\n%s" % (color, msg, stderr)
@@ -307,7 +319,7 @@ def determine_test_result(fn, opts, code, out, stderr, elapsed):
msg = "Exited with code %d (expected code %d)" % (code, expected_code)

if opts.expected == "fail":
return "Expected failure (got code %d, should be %d)" % (code, expected_code)
return success_message("Expected failure (got code %d, should be %d)" % (code, expected_code))
elif KEEP_GOING:
failed.append(fn)
if VERBOSE >= 1:
@@ -333,7 +345,7 @@ def determine_test_result(fn, opts, code, out, stderr, elapsed):

elif out != expected_out:
if opts.expected == "fail":
return "Expected failure (bad output)"
return success_message("Expected failure (bad output)")
else:
diff = diff_output(expected_out, out, "expected_", "received_")
if KEEP_GOING:
@@ -347,7 +359,7 @@ def determine_test_result(fn, opts, code, out, stderr, elapsed):
raise Exception("Failed on %s:\n%s" % (fn, diff))
elif not TEST_PYPY and canonicalize_stderr(stderr) != canonicalize_stderr(expected_err):
if opts.expected == "fail":
return "Expected failure (bad stderr)"
return success_message("Expected failure (bad stderr)")
else:
diff = diff_output(expected_err, stderr, "expectederr_", "receivederr_")
if KEEP_GOING:
@@ -428,7 +440,7 @@ def noninit_count(s):
else:
r += ("(Skipping memchecks)",)

return r
return success_message(r)

q = Queue.Queue()
cv = threading.Condition()
@@ -476,6 +488,8 @@ def fileSize(fn):
help='tests to skip (comma-separated)')
parser.add_argument('-e', '--exit-code-only', action='store_true',
help="only check exit code; don't run CPython to get expected output to compare against")
parser.add_argument('-q', '--quiet', action='store_true',
help="Only display failing tests")
parser.add_argument('--skip-failing', action='store_true',
help="skip tests expected to fail")
parser.add_argument('--order-by-mtime', action='store_true',
@@ -497,6 +511,7 @@ def main(orig_dir):
global VERBOSE
global EXTMODULE_DIR_PYSTON
global EXTMODULE_DIR
global DISPLAY_SUCCESSES

run_memcheck = False

@@ -512,6 +527,9 @@ def main(orig_dir):
EXIT_CODE_ONLY = opts.exit_code_only
SKIP_FAILING_TESTS = opts.skip_failing

if opts.quiet:
DISPLAY_SUCCESSES = False

TEST_DIR = os.path.join(orig_dir, opts.test_dir)
EXTMODULE_DIR_PYSTON = os.path.abspath(os.path.dirname(os.path.realpath(IMAGE)) + "/test/test_extension/")
EXTMODULE_DIR = os.path.abspath(os.path.dirname(os.path.realpath(IMAGE)) + "/test/test_extension/build/lib.linux-x86_64-2.7/")
@@ -598,11 +616,13 @@ def main(orig_dir):
print "(%s also failed)" % fn
sys.exit(1)
break
name = os.path.basename(fn).rjust(FN_JUST_SIZE)
msgs = results[fn]
if isinstance(msgs,str):
msgs = [msgs]
print ' '.join([name] + list(msgs))

if results[fn]:
name = os.path.basename(fn).rjust(FN_JUST_SIZE)
msgs = results[fn]
if isinstance(msgs,str):
msgs = [msgs]
print ' '.join([name] + list(msgs))

for t in threads:
t.join()