summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-25 01:25:40 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-25 01:25:40 +0000
commit279d79f15246126b9fc7f9a8c8036d94cd2b9b3b (patch)
tree01b962ce3313ebce9697b6976f065d8685737628
parentbe9cb978c720f69353ff93238f7b6a63f5ee8667 (diff)
downloadchromium_src-279d79f15246126b9fc7f9a8c8036d94cd2b9b3b.zip
chromium_src-279d79f15246126b9fc7f9a8c8036d94cd2b9b3b.tar.gz
chromium_src-279d79f15246126b9fc7f9a8c8036d94cd2b9b3b.tar.bz2
Set svn:executable bit on scripts that are executable.
Add a PRESUBMIT.py to run checkperms.py when it is modified and to run pylint on it. R=thestig@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/10134019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133835 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--tools/checkperms/PRESUBMIT.py27
-rwxr-xr-x[-rw-r--r--]tools/git/git-utils.sh2
-rwxr-xr-x[-rw-r--r--]tools/heapcheck/heapcheck_std.sh3
-rwxr-xr-x[-rw-r--r--]tools/isolate/trace_child_process.py0
-rwxr-xr-x[-rw-r--r--]tools/memory_watcher/scripts/finditem.pl3
-rwxr-xr-x[-rw-r--r--]tools/memory_watcher/scripts/memprof.pl4
-rwxr-xr-x[-rw-r--r--]tools/memory_watcher/scripts/memtrace.pl4
-rwxr-xr-x[-rw-r--r--]tools/memory_watcher/scripts/summary.pl3
-rwxr-xr-x[-rw-r--r--]tools/traceline/traceline/scripts/split.py2
-rwxr-xr-x[-rw-r--r--]tools/valgrind/regrind.sh3
-rwxr-xr-x[-rw-r--r--]tools/valgrind/shard-all-tests.sh3
-rwxr-xr-xtools/valgrind/test_suppressions.py1
12 files changed, 45 insertions, 10 deletions
diff --git a/tools/checkperms/PRESUBMIT.py b/tools/checkperms/PRESUBMIT.py
new file mode 100644
index 0000000..c2f9356
--- /dev/null
+++ b/tools/checkperms/PRESUBMIT.py
@@ -0,0 +1,27 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Top-level presubmit script for checkperms.
+
+See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
+details on the presubmit API built into gcl.
+"""
+
+
+def CommonChecks(input_api, output_api):
+ output = []
+ output.extend(input_api.canned_checks.RunPylint(input_api, output_api))
+ # Run it like if it were a unit test.
+ output.extend(
+ input_api.canned_checks.RunUnitTests(
+ input_api, output_api, ['./checkperms.py']))
+ return output
+
+
+def CheckChangeOnUpload(input_api, output_api):
+ return CommonChecks(input_api, output_api)
+
+
+def CheckChangeOnCommit(input_api, output_api):
+ return CommonChecks(input_api, output_api)
diff --git a/tools/git/git-utils.sh b/tools/git/git-utils.sh
index 6f347cb..608d27a 100644..100755
--- a/tools/git/git-utils.sh
+++ b/tools/git/git-utils.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/tools/heapcheck/heapcheck_std.sh b/tools/heapcheck/heapcheck_std.sh
index 012a169..b5ec947 100644..100755
--- a/tools/heapcheck/heapcheck_std.sh
+++ b/tools/heapcheck/heapcheck_std.sh
@@ -1,6 +1,5 @@
#!/bin/sh
-
-# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
exec "${@}" 2>heapcheck.log
diff --git a/tools/isolate/trace_child_process.py b/tools/isolate/trace_child_process.py
index 3a8367b..3a8367b 100644..100755
--- a/tools/isolate/trace_child_process.py
+++ b/tools/isolate/trace_child_process.py
diff --git a/tools/memory_watcher/scripts/finditem.pl b/tools/memory_watcher/scripts/finditem.pl
index e1171ef..4962fa3 100644..100755
--- a/tools/memory_watcher/scripts/finditem.pl
+++ b/tools/memory_watcher/scripts/finditem.pl
@@ -1,4 +1,7 @@
#!/usr/bin/perl
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
sub process_raw($$) {
my $file = shift;
diff --git a/tools/memory_watcher/scripts/memprof.pl b/tools/memory_watcher/scripts/memprof.pl
index 571336f..58ad8ab 100644..100755
--- a/tools/memory_watcher/scripts/memprof.pl
+++ b/tools/memory_watcher/scripts/memprof.pl
@@ -1,5 +1,7 @@
#!/usr/bin/perl
-
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
#
# Given a memwatcher logfile, group memory allocations by callstack.
#
diff --git a/tools/memory_watcher/scripts/memtrace.pl b/tools/memory_watcher/scripts/memtrace.pl
index 0d36efa..66e7528 100644..100755
--- a/tools/memory_watcher/scripts/memtrace.pl
+++ b/tools/memory_watcher/scripts/memtrace.pl
@@ -1,5 +1,7 @@
#!/usr/bin/perl
-
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
#
# Blame callstacks for each memory allocation.
# Similar to memprof.pl, will also try to filter out unuseful stacks.
diff --git a/tools/memory_watcher/scripts/summary.pl b/tools/memory_watcher/scripts/summary.pl
index aca4e0d..4ba10c1 100644..100755
--- a/tools/memory_watcher/scripts/summary.pl
+++ b/tools/memory_watcher/scripts/summary.pl
@@ -1,4 +1,7 @@
#!/usr/bin/perl
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
#
# Read a memtrace logfile from stdin and group memory allocations by logical
# code component. The code component is guessed from the callstack, and
diff --git a/tools/traceline/traceline/scripts/split.py b/tools/traceline/traceline/scripts/split.py
index 3b7bf90..6f20e04 100644..100755
--- a/tools/traceline/traceline/scripts/split.py
+++ b/tools/traceline/traceline/scripts/split.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/tools/valgrind/regrind.sh b/tools/valgrind/regrind.sh
index 78e6f73..0f90ba7 100644..100755
--- a/tools/valgrind/regrind.sh
+++ b/tools/valgrind/regrind.sh
@@ -1,6 +1,5 @@
#!/bin/sh
-
-# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/tools/valgrind/shard-all-tests.sh b/tools/valgrind/shard-all-tests.sh
index c496fb9..dfcf3d7 100644..100755
--- a/tools/valgrind/shard-all-tests.sh
+++ b/tools/valgrind/shard-all-tests.sh
@@ -1,6 +1,5 @@
#!/bin/sh
-
-# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/tools/valgrind/test_suppressions.py b/tools/valgrind/test_suppressions.py
index d9a6cb4..3a03035b 100755
--- a/tools/valgrind/test_suppressions.py
+++ b/tools/valgrind/test_suppressions.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.