0
Commit Graph

15 Commits

Author SHA1 Message Date
Raul Tambre
26d7db41b1 tools: Use Python 3 style print statements [5/9]
Initial conversion performed using '2to3 -f print .'.
Imports added and duplicate parentheses removed manually.
Manually converted files, comments and inline code that 2to3 missed.
Afterwards ran "git cl format --python" and cherry-picked the formatting changes.

There are no intended behavioural changes.

Bug: 941669
Change-Id: I6aece261941a1a10fbc329bc4ac1012a9a06ebd7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1818518
Commit-Queue: Raul Tambre <raul@tambre.ee>
Auto-Submit: Raul Tambre <raul@tambre.ee>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699699}
2019-09-25 11:06:35 +00:00
Daniel Bratell
500f6b1d3d Remove potential hang+timeout from _nocompile tests
If output buffers got full while running the tests, the
script would hang, polling the process forever and it would never
return a return_code from proc.poll().

This might have caused some random timouts but if so, it is
unclear what 64 KB output filled up the buffers, unless the buffers
were smaller than local testing would indicate.

This stores stdout and stderr in temporary files and reads those
files back into memory after the process has finished.

Bug: 882852
Change-Id: I4e6ace2bb783fadcde3f43643ccad03c58ef519a
Reviewed-on: https://chromium-review.googlesource.com/c/1425736
Commit-Queue: Daniel Bratell <bratell@opera.com>
Reviewed-by: Eric Seckler <eseckler@chromium.org>
Reviewed-by: Albert J. Wong <ajwong@chromium.org>
Cr-Commit-Position: refs/heads/master@{#625603}
2019-01-24 11:19:50 +00:00
Hans Wennborg
8261b16886 Make nocompile tests respect clang_base_path
This will help reproducing nocompile test failures with locally built
Clang, and also fixes a TODO from 2011 :-)

Bug: 913420
Change-Id: I613f0836d92c8f3f6513e0e03af83206447e4c76
Reviewed-on: https://chromium-review.googlesource.com/c/1409188
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#622440}
2019-01-14 13:40:16 +00:00
Eric Seckler
e056c759fd tools: Increase timeout of nocompile tests due to test flakiness.
The linux jumbo bot is flaking on content nocompile tests due to the
nocompilation tests timing out. This patch increases the timeout to
twice what it was before.

Bug: 882852
Change-Id: Ib2bc0023acd8d677ea77eb2769a5f83da39ed0da
Reviewed-on: https://chromium-review.googlesource.com/c/1248601
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Eric Seckler <eseckler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596199}
2018-10-03 14:11:46 +00:00
Eric Seckler
c1f97a8cd4 tools: Add more diagnostic output to nocompile_driver.py
Bug: 882852
Change-Id: Ie88e6fceb726cd69963eaed5eef90f71f55b38e4
Reviewed-on: https://chromium-review.googlesource.com/1222313
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Commit-Queue: Eric Seckler <eseckler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590876}
2018-09-13 00:35:37 +00:00
tzik
cffd16beb3 Switch nocompile_driver.py to libc++ and C++14
As the main sources has switched to C++14, nocompile tests should also
switch to it.

Bug: 554717
Change-Id: Ib06b3e931b78d545e709d6f7b886ca895840fbd9
Reviewed-on: https://chromium-review.googlesource.com/593372
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#490826}
2017-08-01 00:23:32 +00:00
Trent Apted
71169bb955 Fix nocompile_driver.py when there are spaces in CFLAGS
To fix, retain the array-ness of the arguments rather
than concatenating strings.

Bug: 749393
Change-Id: Icceacf14e30117da1617134e4ef6a364f9808275
Reviewed-on: https://chromium-review.googlesource.com/587693
Reviewed-by: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
Cr-Commit-Position: refs/heads/master@{#490147}
2017-07-28 00:12:10 +00:00
yyanagisawa
c6d96b97b1 Make no-compile test output sorted with test name.
To make no-compile test deterministic, we also need to make the test
name shown in the same order.
Since I thought order of test names are not important, let me sort it
before printed.

Note that this change may make swarming to ignore executing tests even if
somebody edit *.nc.  However, I think the actual tests for non-compile
tests have already done in compile step and build would fail if test
failed, executing generated should not be needed for each *.nc update.

BUG=678903,105388

Review-Url: https://codereview.chromium.org/2655613002
Cr-Commit-Position: refs/heads/master@{#446018}
2017-01-25 14:58:25 +00:00
wychen
77cbaaa8e8 Make no-compile test deterministic
BUG=678903

Review-Url: https://codereview.chromium.org/2644003002
Cr-Commit-Position: refs/heads/master@{#445366}
2017-01-23 12:46:47 +00:00
derat
39e7fb1fdf Fix "notificiation" and "soruce" typos.
Fix occurences of "notificiation" (rather than
"notification") and "soruce" (rather than "source").

BUG=none
TBR=eae@chromium.org,jbauman@chromium.org,sdefresne@chromium.org,sgurun@chromium.org,stanisc@chromium.org,tommycli@chromium.org,yusukes@chromium.org

Review-Url: https://codereview.chromium.org/2322343002
Cr-Commit-Position: refs/heads/master@{#417705}
2016-09-09 21:01:22 +00:00
tzik
b5f8f4bca7 Fix base_nocompile_tests dependency
nocompile_tests wasn't aware header file dependencies that included by
a .nc file. That makes a test failure sticky.

This CL makes nocompile_driver.py to emit a depfile to let ninja know
the implicit dependencies.

Review URL: https://codereview.chromium.org/1698763002

Cr-Commit-Position: refs/heads/master@{#375504}
2016-02-16 02:36:01 +00:00
dcheng
b760d7244b Switch to clang for nocompile tests and rebaseline existing results.
BUG=105388

Review URL: https://codereview.chromium.org/678263003

Cr-Commit-Position: refs/heads/master@{#302483}
2014-11-03 21:29:44 +00:00
dcheng@chromium.org
2d72cfee8e Fix no-compile tests in base.
- Fixed a nocompile test wasn't ever no compiled (probably a side effect
  of http://crrev.com/111889) and never worked.
- Updated the error messages to those used by gcc 4.6 in Precise
- Minor improvement to the nocompile driver that makes the compiler
  output more friendly when the regex includes a single quote. Hopefully
  no one needs to match a double quote for awhile...

TBR=darin

Review URL: https://codereview.chromium.org/12040055

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178434 0039d316-1c4b-4281-b951-d872f2087c98
2013-01-23 23:49:55 +00:00
maruel@chromium.org
cb155a802b Fix python scripts in src/tools/
Make sure that:
- shebang is only present for executable files
- shebang is #!/usr/bin/env python
- __main__ is only present for executable files
- file's executable bit is coherent

Also fix EOF LF to be only one.

TBR=timurrrr@chromium.org
BUG=105108
TEST=

Review URL: http://codereview.chromium.org/8678023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111960 0039d316-1c4b-4281-b951-d872f2087c98
2011-11-29 17:25:34 +00:00
ajwong@chromium.org
81814bce79 Create a "no compile" drivers script in python to unittest compile time asserts.
BUG=87341
TEST=enable some of the existing no-compile tests and run on try bots.

Review URL: http://codereview.chromium.org/7458012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100564 0039d316-1c4b-4281-b951-d872f2087c98
2011-09-10 03:03:00 +00:00