Improving scenarios and shell tools.
Change-Id: Ia4b189bd255e1074da54c84f528d3b9b014618b9
Showing
4 changed files
with
22 additions
and
2 deletions
... | @@ -23,6 +23,19 @@ function _stc-opts () { | ... | @@ -23,6 +23,19 @@ function _stc-opts () { |
23 | complete -F _stc-opts stc | 23 | complete -F _stc-opts stc |
24 | 24 | ||
25 | 25 | ||
26 | +# Tab completion settings for stl | ||
27 | +function _stl-opts () { | ||
28 | + local cur=${COMP_WORDS[COMP_CWORD]} | ||
29 | + if [ $COMP_CWORD -eq 1 ]; then | ||
30 | + COMPREPLY=( $( compgen -W "$(cd /tmp/stc && ls -1)" -- $cur ) ) | ||
31 | + elif [ $COMP_CWORD -eq 2 ]; then | ||
32 | + COMPREPLY=( $( compgen -W "$(cd /tmp/stc/$3 && ls -1)" -- $cur ) ) | ||
33 | + fi | ||
34 | +} | ||
35 | + | ||
36 | +complete -F _stl-opts stl | ||
37 | + | ||
38 | + | ||
26 | # Tab completion settings for cell | 39 | # Tab completion settings for cell |
27 | function _cell-opts () { | 40 | function _cell-opts () { |
28 | local cur=${COMP_WORDS[COMP_CWORD]} | 41 | local cur=${COMP_WORDS[COMP_CWORD]} | ... | ... |
tools/test/bin/stl
0 → 100755
1 | +#!/bin/bash | ||
2 | +#------------------------------------------------------------------------------- | ||
3 | +# System Test Coordinator | ||
4 | +#------------------------------------------------------------------------------- | ||
5 | + | ||
6 | +log=${2:-*} | ||
7 | +less /tmp/stc/$1/${log%.log}.log | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -13,7 +13,7 @@ | ... | @@ -13,7 +13,7 @@ |
13 | ~ See the License for the specific language governing permissions and | 13 | ~ See the License for the specific language governing permissions and |
14 | ~ limitations under the License. | 14 | ~ limitations under the License. |
15 | --> | 15 | --> |
16 | -<scenario name="archetypes-test" description="ONOS archetypes test"> | 16 | +<scenario name="archetypes" description="ONOS archetypes test"> |
17 | <group name="Archetypes" cwd="${WORKSPACE}/tmp/test-app"> | 17 | <group name="Archetypes" cwd="${WORKSPACE}/tmp/test-app"> |
18 | <step name="Clean-Up" cwd="${WORKSPACE}/tmp" env="~" | 18 | <step name="Clean-Up" cwd="${WORKSPACE}/tmp" env="~" |
19 | exec="rm -r test-app"/> | 19 | exec="rm -r test-app"/> | ... | ... |
... | @@ -13,7 +13,7 @@ | ... | @@ -13,7 +13,7 @@ |
13 | ~ See the License for the specific language governing permissions and | 13 | ~ See the License for the specific language governing permissions and |
14 | ~ limitations under the License. | 14 | ~ limitations under the License. |
15 | --> | 15 | --> |
16 | -<scenario name="smoke-test" description="ONOS smoke test"> | 16 | +<scenario name="smoke" description="ONOS smoke test"> |
17 | <import file="${ONOS_SCENARIOS}/prerequisites.xml"/> | 17 | <import file="${ONOS_SCENARIOS}/prerequisites.xml"/> |
18 | 18 | ||
19 | <import file="${ONOS_SCENARIOS}/setup.xml"/> | 19 | <import file="${ONOS_SCENARIOS}/setup.xml"/> | ... | ... |
-
Please register or login to post a comment