Commit Graph

10 Commits

Author SHA1 Message Date
Chris Sosa
bca106d35e Update bash_completion to not use a temp file
TEST=Tested within chroot and using "repo start ooga b<tab>"

Change-Id: I372d13458fb89571db4cdd7561e91c68e1563941

Review URL: http://codereview.chromium.org/3191012
2010-08-19 16:18:42 -07:00
Darin Petkov
5ad2cb5d03 Add repo bash_completion under chroot.
BUG=5807
TEST=enter_chroot, tried repo bash completion

Change-Id: Ic90c7bd7748fb8c79b212f465326867bbdca9c80

Review URL: http://codereview.chromium.org/3110024
2010-08-18 14:01:56 -07:00
Darin Petkov
6944c5dd68 Handle tilde expansion in cros_workon tab completion.
BUG=5623
TEST=tried ~/trunk/src/scripts/cros_workon

Change-Id: I72aaf5d538ef53b06a4e454935528db0731f03c7

Review URL: http://codereview.chromium.org/3156025
2010-08-18 09:57:34 -07:00
Darin Petkov
4faf84bc14 cros_workon bash completion -- handle flags anywhere.
BUG=5623
TEST=tried ./cros_workon with various arguments

Change-Id: Ia1a48b73e4f55006fd767a7d15b8e38e467aa23e

Review URL: http://codereview.chromium.org/3152018
2010-08-13 15:32:50 -07:00
Darin Petkov
593e796dfa Implement basic tab-completion for cros_workon arguments.
Takes effect when you sync/re-enter chroot.

Also, minor non-exhaustive style cleanup of existing code.

BUG=5623
TEST=tried tab completion with ./cros_workon and various options

Change-Id: I46d2eb29205a3a4ce350b82e7eced7f2069095ca

Review URL: http://codereview.chromium.org/3185003
2010-08-13 14:45:02 -07:00
Eric Li
cad2b49f8a fix a typerr in bach_complete.
Review URL: http://codereview.chromium.org/1576011
2010-04-01 13:07:10 -07:00
Eric Li
3d13cd1bdb New autotest wrapper script and bash complete support.
A new command line script was introduced in this CL named autotest, which is intend to replace both build_autotest.sh and run_remote_tests.sh in the future.

This change list should be reviewed with
http://codereview.chromium.org/1513006
http://codereview.chromium.org/1595001

all together.

autotest --board x86-generic --build=all will build all client tests.

autotest --board x86-generic --build=unioxbench,ltp will build enlisted client tests.

autotest --board x86-generic -c client/tests/sleeptest/control -m 12.34.56.78 ...

will invoke autoserv inside emerge-x86-generic cross-compiling env, and do a prebuild of the client test before it got pushed onto client host.

you could also:

1. bash complete the directory/file name from autotest directory after -c or -s args.
2. supply any autoserv commandline args transparently.

Note: replace build_autotest.sh/run_remotes_test.sh is only a future plan. When all the three CLs got pushed, no existing use cases should be broken.

I need to change:
1. build_packages script from third_party/chromiumos-overlay/chromeos/scripts/build_packages.
2. add "enable_server_precompile: False " to third_party/autotest/files/global_config.ini

to activate it.

Review URL: http://codereview.chromium.org/1595001
2010-03-31 11:47:22 -07:00
Darin Petkov
d6bf1010bd Add bash completion for flags for some build scripts.
For example, ./build_packages --<tab> will try to complete all supported
./build_packages flags (or print them if completion is non-unique).
This completion could be used outside chroot.

Review URL: http://codereview.chromium.org/661096
2010-02-26 13:10:11 -08:00
Darin Petkov
726d36686c Fix name and add board completion to mod_image_for_test.sh.
Review URL: http://codereview.chromium.org/659005
2010-02-24 12:05:18 -08:00
Darin Petkov
049dbab5bd Programmatic bash completion for Chromium OS build scripts.
If you source this script inside chroot, you would get <tab> completion for the --board= argument for some build scripts.

For example,
. bash_completion
./build_image --board=x<tab>
may complete to
./build_image --board=x86-generic
if x86-generic is the only available board starting with "x". If not, it will list available boards with the given prefix.

We could extend this to work with setup_board and other scripts. Also, it may be nice to extend it to work outside chroot.

Does it make sense to make this part of the regular dev chroot by default? If so, not sure what the best way to do that. Maybe install this as a hard-host-depends and source it from the chroot user .bashrc?

Review URL: http://codereview.chromium.org/652129
2010-02-23 18:16:37 -08:00