This is an archive of the discontinued LLVM Phabricator instance.

Change dosep to report pass/failure of individual test cases as well.
ClosedPublic

Authored by zturner on May 27 2015, 12:39 PM.

Details

Reviewers
vharron
clayborg
Summary

Each .py file can contain many test cases, and dosep currently reports only (# of files whose exit status was non-zero) / (total # of files examined).

This can skew the results if you have many .py files where only a small fraction of the test cases inside the .py file actually fail. With this patch we now print both ratios. The output after all tests have been run now looksl ike this:

[1/1] Testing LLDB (with a separate subprocess per test)
FAILED: <snipped/>
Ran 377 test suites (12 failed) (3.18%)
Ran 363 test cases (25 failed) (6.88%)
FAIL: LLDB (suite) :: Test-rdar-10449092.py (Windows zturner-win81 8 6.2.9200 AMD64 Intel64 Family 6 Model 45 Stepping 7, GenuineIntel)
...

Diff Detail

Event Timeline

zturner updated this revision to Diff 26626.May 27 2015, 12:39 PM
zturner retitled this revision from to Change dosep to report pass/failure of individual test cases as well..
zturner updated this object.
zturner edited the test plan for this revision. (Show Details)
zturner added reviewers: vharron, clayborg.
zturner added a subscriber: Unknown Object (MLST).
clayborg requested changes to this revision.May 27 2015, 2:40 PM
clayborg edited edge metadata.

Looks like some windowns specific code was left in dosep.py:

import ctypes
from ctypes import wintypes

_OutputDebugString = ctypes.windll.kernel32.OutputDebugStringA
_OutputDebugString.argtypes = [wintypes.LPCSTR]
_OutputDebugString.restype = None
test/dosep.py
33–39

Doesn't this only need to be done on windows? Shouldn't you check for platform being windows?

This revision now requires changes to proceed.May 27 2015, 2:40 PM

Doh, sorry about that. Pretend you didn't see that, I'll get it out
tomorrow

zturner updated this revision to Diff 26694.May 28 2015, 9:49 AM
zturner edited edge metadata.

Get rid of windows-specific debugging code that got left in.

clayborg accepted this revision.May 28 2015, 10:03 AM
clayborg edited edge metadata.

Looks good.

This revision is now accepted and ready to land.May 28 2015, 10:03 AM
zturner closed this revision.Oct 15 2015, 1:52 PM