diff options
author | Brad King <brad.king@kitware.com> | 2014-09-04 13:48:20 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-09-04 13:48:20 (GMT) |
commit | 44e6612fdc84ad9a351bb95c18937764475a21b7 (patch) | |
tree | 1b29b9723c50f1329cea29977216a4366b8776a3 | |
parent | 9651cb70ae65d42823c286c8721947fb1f3b6d26 (diff) | |
parent | 2603e128818e187a11db3c52a0d6777e58d2d4d9 (diff) | |
download | CMake-44e6612fdc84ad9a351bb95c18937764475a21b7.zip CMake-44e6612fdc84ad9a351bb95c18937764475a21b7.tar.gz CMake-44e6612fdc84ad9a351bb95c18937764475a21b7.tar.bz2 |
Merge topic 'bash-complete-ctest-labels'
2603e128 bash-completion: Complete 'ctest' label names
-rw-r--r-- | Auxiliary/bash-completion/ctest | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Auxiliary/bash-completion/ctest b/Auxiliary/bash-completion/ctest index 25cb998..327e12c 100644 --- a/Auxiliary/bash-completion/ctest +++ b/Auxiliary/bash-completion/ctest @@ -19,8 +19,12 @@ _ctest() _filedir return ;; - -L|--label-regex|-LE|--label-exclude|--track|-I|--tests-information|\ - --max-width|--timeout|--stop-time) + -L|--label-regex|-LE|--label-exclude) + COMPREPLY=( $( compgen -W '$( ctest --print-labels 2>/dev/null | + grep "^ " 2>/dev/null | cut -d" " -f 3 )' -- "$cur" ) ) + return + ;; + --track|-I|--tests-information|--max-width|--timeout|--stop-time) # argument required but no completions available return ;; |