Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: tools/bash-completion

Issue 2454403002: Match more test targets for bash completion. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Flag completion rule for bash. 5 # Flag completion rule for bash.
6 # To load in your shell, "source path/to/this/file". 6 # To load in your shell, "source path/to/this/file".
7 7
8 # Usage examples 8 # Usage examples
9 # ============== 9 # ==============
10 # 10 #
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 complete -F _chrome_flag google-chrome 74 complete -F _chrome_flag google-chrome
75 complete -F _chrome_flag chrome 75 complete -F _chrome_flag chrome
76 if [ $(uname) = "Darwin" ] 76 if [ $(uname) = "Darwin" ]
77 then 77 then
78 complete -F _chrome_flag Chromium 78 complete -F _chrome_flag Chromium
79 fi 79 fi
80 80
81 for gtest_test_executable in $( 81 for gtest_test_executable in $(
82 cd $chrome_source; 82 cd $chrome_source;
83 git ls-files '*/BUILD.gn' | xargs sed -ne 's/^test("\([^"]\+\)").*$/\1/p' 83 git ls-files '*/BUILD.gn' | xargs sed -ne 's/^.*test("\([^"]\+\)").*$/\1/p'
84 ); do 84 ); do
85 complete -F _gtest_flag $gtest_test_executable 85 complete -F _gtest_flag $gtest_test_executable
86 done 86 done
87 87
88 complete -F _layout_test_flag run-webkit-tests 88 complete -F _layout_test_flag run-webkit-tests
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698