| Index: tools/testrunner/server/constants.py
|
| diff --git a/tools/bash-completion.sh b/tools/testrunner/server/constants.py
|
| old mode 100755
|
| new mode 100644
|
| similarity index 62%
|
| copy from tools/bash-completion.sh
|
| copy to tools/testrunner/server/constants.py
|
| index 9f65c677317536ae284b29f362e6aa5fce4b88fd..5aefcbad0d3043970ae2cfe8a08e93ff6c585a2b
|
| --- a/tools/bash-completion.sh
|
| +++ b/tools/testrunner/server/constants.py
|
| @@ -1,4 +1,3 @@
|
| -#!/bin/bash
|
| # Copyright 2012 the V8 project authors. All rights reserved.
|
| # Redistribution and use in source and binary forms, with or without
|
| # modification, are permitted provided that the following conditions are
|
| @@ -26,30 +25,27 @@
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -# Inspired by and based on:
|
| -# http://src.chromium.org/viewvc/chrome/trunk/src/tools/bash-completion
|
|
|
| -# Flag completion rule for bash.
|
| -# To load in your shell, "source path/to/this/file".
|
| +CLIENT_PORT = 9991 # Port for the local client to connect to.
|
| +PEER_PORT = 9992 # Port for peers on the network to connect to.
|
| +PRESENCE_PORT = 9993 # Port for presence daemon.
|
| +STATUS_PORT = 9994 # Port for network requests not related to workpackets.
|
|
|
| -v8_source=$(readlink -f $(dirname $BASH_SOURCE)/..)
|
| +END_OF_STREAM = "end of dtest stream" # Marker for end of network requests.
|
| +SIZE_T = 4 # Number of bytes used for network request size header.
|
|
|
| -_v8_flag() {
|
| - local cur defines targets
|
| - cur="${COMP_WORDS[COMP_CWORD]}"
|
| - defines=$(cat src/flag-definitions.h \
|
| - | grep "^DEFINE" \
|
| - | grep -v "DEFINE_implication" \
|
| - | sed -e 's/_/-/g')
|
| - targets=$(echo "$defines" \
|
| - | sed -ne 's/^DEFINE-[^(]*(\([^,]*\).*/--\1/p'; \
|
| - echo "$defines" \
|
| - | sed -ne 's/^DEFINE-bool(\([^,]*\).*/--no\1/p'; \
|
| - cat src/d8.cc \
|
| - | grep "strcmp(argv\[i\]" \
|
| - | sed -ne 's/^[^"]*"--\([^"]*\)".*/--\1/p')
|
| - COMPREPLY=($(compgen -W "$targets" -- "$cur"))
|
| - return 0
|
| -}
|
| +# Messages understood by the local request handler.
|
| +ADD_TRUSTED = "add trusted"
|
| +INFORM_DURATION = "inform about duration"
|
| +REQUEST_PEERS = "get peers"
|
| +UNRESPONSIVE_PEER = "unresponsive peer"
|
| +REQUEST_PUBKEY_FINGERPRINT = "get pubkey fingerprint"
|
| +REQUEST_STATUS = "get status"
|
| +UPDATE_PERF = "update performance"
|
|
|
| -complete -F _v8_flag -f d8
|
| +# Messages understood by the status request handler.
|
| +LIST_TRUSTED_PUBKEYS = "list trusted pubkeys"
|
| +GET_SIGNED_PUBKEY = "pass on signed pubkey"
|
| +NOTIFY_NEW_TRUSTED = "new trusted peer"
|
| +TRUST_YOU_NOW = "trust you now"
|
| +DO_YOU_TRUST = "do you trust"
|
|
|