uttk 0.3.6.1 → 0.4.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. data/BESTOF +13 -0
  2. data/ChangeLog +19 -0
  3. data/MATRIX +6 -0
  4. data/NEWS +34 -4
  5. data/PITFALLS +13 -0
  6. data/Rakefile +19 -2
  7. data/SPEC.gemspec +18 -0
  8. data/SPEC.yml +21 -7
  9. data/bin/getopts/uttk.rb +23 -10
  10. data/lib/uttk.rb +16 -12
  11. data/lib/uttk/dumpers/Mail.rb +41 -0
  12. data/lib/uttk/dumpers/Yaml.rb +2 -2
  13. data/lib/uttk/filters/KeepSkipBased.rb +1 -1
  14. data/lib/uttk/generators/templates/loader.rb +1 -1
  15. data/lib/uttk/generators/templates/strategy-command.rb +72 -0
  16. data/lib/uttk/generators/templates/strategy.rb +4 -3
  17. data/lib/uttk/generators/templates/unit_test.rb +1 -1
  18. data/lib/uttk/loaders/Loader.rb +1 -1
  19. data/lib/uttk/loaders/Ruby.rb +1 -1
  20. data/lib/uttk/loaders/Yaml.rb +2 -2
  21. data/lib/uttk/logger/section_node.rb +1 -1
  22. data/lib/uttk/logger/severity.rb +1 -1
  23. data/lib/uttk/logger/to_uttk_log.rb +2 -2
  24. data/lib/uttk/logger/verbosity.rb +1 -1
  25. data/lib/uttk/logger_factory.rb +1 -1
  26. data/lib/uttk/status.rb +1 -1
  27. data/lib/uttk/strategies/Abort.rb +1 -1
  28. data/lib/uttk/strategies/Assert.rb +1 -1
  29. data/lib/uttk/strategies/Authors.rb +2 -2
  30. data/lib/uttk/strategies/Bootstrap.rb +38 -11
  31. data/lib/uttk/strategies/Checkout.rb +3 -2
  32. data/lib/uttk/strategies/Clean.rb +1 -1
  33. data/lib/uttk/strategies/Collection.rb +3 -3
  34. data/lib/uttk/strategies/Command.rb +95 -0
  35. data/lib/uttk/strategies/Composite/contents_eval.rb +1 -1
  36. data/lib/uttk/strategies/Configure.rb +34 -25
  37. data/lib/uttk/strategies/Error.rb +1 -1
  38. data/lib/uttk/strategies/Fail.rb +1 -1
  39. data/lib/uttk/strategies/HostSelector.rb +143 -0
  40. data/lib/uttk/strategies/Import.rb +2 -2
  41. data/lib/uttk/strategies/Iterate.rb +1 -1
  42. data/lib/uttk/strategies/JUnit.rb +1 -1
  43. data/lib/uttk/strategies/Jump.rb +81 -0
  44. data/lib/uttk/strategies/Make.rb +28 -58
  45. data/lib/uttk/strategies/Package.rb +5 -6
  46. data/lib/uttk/strategies/PackageCollection.rb +1 -1
  47. data/lib/uttk/strategies/Pass.rb +1 -1
  48. data/lib/uttk/strategies/RUnit.rb +63 -49
  49. data/lib/uttk/strategies/SignalCmd.rb +1 -1
  50. data/lib/uttk/strategies/Sleep.rb +1 -1
  51. data/lib/uttk/strategies/SqlQuery.rb +1 -1
  52. data/lib/uttk/strategies/Strategy.rb +153 -3
  53. data/lib/uttk/strategies/SubCmd.rb +51 -31
  54. data/lib/uttk/strategies/Suite.rb +1 -1
  55. data/lib/uttk/strategies/Test.rb +1 -1
  56. data/lib/uttk/strategies/{ProbabilityThreshold.rb → Threshold.rb} +3 -3
  57. data/lib/uttk/streams.rb +1 -1
  58. data/lib/uttk/streams/Diff.rb +1 -1
  59. data/lib/uttk/streams/Stream.rb +1 -1
  60. data/lib/uttk/version_id.rb +1 -1
  61. data/lib/uttk/weights/WExpr.rb +1 -1
  62. data/lib/uttk/weights/WFloat.rb +1 -1
  63. data/lib/uttk/weights/WMin.rb +1 -1
  64. data/lib/uttk/weights/Weight.rb +1 -1
  65. data/lib/www/images/opentriangle.gif +0 -0
  66. data/lib/www/images/triangle.gif +0 -0
  67. data/lib/www/stylesheets/uttk.css +167 -0
  68. data/misc/expandtab.rb +1 -1
  69. data/test/examples/students/mini-lib.yml +1 -1
  70. data/test/fixtures/binaries/segv +0 -0
  71. data/test/functional/base.yml +29 -0
  72. data/test/functional/cat.yml +2 -2
  73. data/test/functional/cmd.yml +5 -0
  74. data/test/functional/command.yml +14 -0
  75. data/test/functional/diff.yml +2 -2
  76. data/test/functional/env_cmd.yml +3 -3
  77. data/test/functional/exit.yml +1 -1
  78. data/test/functional/host_selector.yml +30 -0
  79. data/test/functional/iterate.yml +31 -37
  80. data/test/functional/jump.yml +34 -0
  81. data/test/functional/pkg.yml +1 -1
  82. data/test/functional/{probability_threshold.yml → threshold.yml} +2 -2
  83. data/test/functional/timeout.yml +1 -1
  84. data/test/functional/wc.yml +2 -2
  85. data/test/unit/dumpers/mail_test.rb +46 -0
  86. data/test/unit/filters/keep_skip_based_test.rb +1 -1
  87. data/test/unit/filters/text_filter_test.rb +1 -1
  88. metadata +258 -253
  89. data/test/fixtures/demo/command-tutorial/steps/1/check.yml +0 -5
  90. data/test/fixtures/demo/command-tutorial/steps/1/pluralizer.rb +0 -10
  91. data/test/fixtures/demo/command-tutorial/steps/2/bad_check.yml +0 -7
  92. data/test/fixtures/demo/command-tutorial/steps/2/check.yml +0 -7
  93. data/test/fixtures/demo/command-tutorial/steps/2/pluralizer.rb +0 -10
  94. data/test/fixtures/demo/command-tutorial/steps/3.1/check.yml +0 -12
  95. data/test/fixtures/demo/command-tutorial/steps/3/check.yml +0 -14
  96. data/test/fixtures/demo/command-tutorial/steps/4.1/bird.txt +0 -1
  97. data/test/fixtures/demo/command-tutorial/steps/4.1/check.yml +0 -12
  98. data/test/fixtures/demo/command-tutorial/steps/4/check.yml +0 -12
  99. data/test/fixtures/demo/command-tutorial/steps/4/pluralizer.rb +0 -12
  100. data/test/fixtures/demo/command-tutorial/steps/5.1/bird.txt +0 -1
  101. data/test/fixtures/demo/command-tutorial/steps/5.1/check.yml +0 -17
  102. data/test/fixtures/demo/command-tutorial/steps/5.1/pluralizer.rb +0 -17
  103. data/test/fixtures/demo/command-tutorial/steps/5/bird.txt +0 -1
  104. data/test/fixtures/demo/command-tutorial/steps/5/check.yml +0 -16
  105. data/test/fixtures/demo/command-tutorial/steps/5/pluralizer.rb +0 -16
  106. data/test/fixtures/demo/command-tutorial/steps/6.1/bird.txt +0 -1
  107. data/test/fixtures/demo/command-tutorial/steps/6.1/check.yml +0 -22
  108. data/test/fixtures/demo/command-tutorial/steps/6.1/pluralizer.rb +0 -17
  109. data/test/fixtures/demo/command-tutorial/steps/6/bird.txt +0 -1
  110. data/test/fixtures/demo/command-tutorial/steps/6/check.yml +0 -21
  111. data/test/fixtures/demo/command-tutorial/steps/6/pluralizer.rb +0 -17
  112. data/test/fixtures/demo/command-tutorial/steps/7/bird.txt +0 -1
  113. data/test/fixtures/demo/command-tutorial/steps/7/check.yml +0 -22
  114. data/test/fixtures/demo/command-tutorial/steps/7/pluralizer.rb +0 -17
@@ -1,7 +1,7 @@
1
1
  # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
2
2
  # Copyright:: Copyright (c) 2004, 2005 Uttk team. All rights reserved.
3
3
  # License:: LGPL
4
- # $Id: /fey/uttk/trunk/lib/uttk/strategies/Suite.rb 8778 2005-09-26T04:34:48.103938Z ertai $
4
+ # $Id: /w/fey/uttk/trunk/lib/uttk/strategies/Suite.rb 8778 2005-09-26T04:34:48.103938Z ertai $
5
5
 
6
6
 
7
7
  module Uttk
@@ -1,7 +1,7 @@
1
1
  # Author:: Nicolas Despres <nicolas.despres@gmail.com>.
2
2
  # Copyright:: Copyright (c) 2004, 2005 Uttk team. All rights reserved.
3
3
  # License:: LGPL
4
- # $Id: /fey/uttk/trunk/lib/uttk/strategies/Test.rb 8778 2005-09-26T04:34:48.103938Z ertai $
4
+ # $Id: /w/fey/uttk/trunk/lib/uttk/strategies/Test.rb 8778 2005-09-26T04:34:48.103938Z ertai $
5
5
 
6
6
 
7
7
  require 'yaml'
@@ -1,7 +1,7 @@
1
1
  # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
2
2
  # Copyright:: Copyright (c) 2004, 2005 Uttk team. All rights reserved.
3
3
  # License:: LGPL
4
- # $Id: /w/fey/uttk/trunk/lib/uttk/strategies/ProbabilityThreshold.rb 22102 2006-02-21T23:03:39.538964Z pouillar $
4
+ # $Id: /w/fey/uttk/trunk/lib/uttk/strategies/Threshold.rb 23188 2006-04-01T12:55:14.164563Z ertai $
5
5
 
6
6
 
7
7
  module Uttk
@@ -10,7 +10,7 @@ module Uttk
10
10
 
11
11
  # I validate the status of the strategy _test_ if it is under the value of
12
12
  # my _threshold_ attribute.
13
- class ProbabilityThreshold < Proxy
13
+ class Threshold < Proxy
14
14
  include Concrete
15
15
 
16
16
  def prologue
@@ -39,7 +39,7 @@ module Uttk
39
39
  attribute :threshold, 'the probability threshold', :mandatory, nil
40
40
  Weights::Weight
41
41
 
42
- end # class ProbabilityThreshold
42
+ end # class Threshold
43
43
 
44
44
  end # module Strategies
45
45
 
data/lib/uttk/streams.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
2
2
  # Copyright:: Copyright (c) 2005 Uttk team. All rights reserved.
3
3
  # License:: LGPL
4
- # Revision:: $Id: /fey/uttk/trunk/lib/uttk/streams.rb 8778 2005-09-26T04:34:48.103938Z ertai $
4
+ # Revision:: $Id: /w/fey/uttk/trunk/lib/uttk/streams.rb 8778 2005-09-26T04:34:48.103938Z ertai $
5
5
 
6
6
  module Uttk
7
7
 
@@ -1,7 +1,7 @@
1
1
  # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
2
2
  # Copyright:: Copyright (c) 2004, 2005 Uttk team. All rights reserved.
3
3
  # License:: LGPL
4
- # $Id: /fey/uttk/trunk/lib/uttk/streams/Diff.rb 8778 2005-09-26T04:34:48.103938Z ertai $
4
+ # $Id: /w/fey/uttk/trunk/lib/uttk/streams/Diff.rb 8778 2005-09-26T04:34:48.103938Z ertai $
5
5
 
6
6
 
7
7
  module Uttk
@@ -1,7 +1,7 @@
1
1
  # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
2
2
  # Copyright:: Copyright (c) 2004, 2005 Uttk team. All rights reserved.
3
3
  # License:: LGPL
4
- # $Id: /fey/uttk/trunk/lib/uttk/streams/Stream.rb 8778 2005-09-26T04:34:48.103938Z ertai $
4
+ # $Id: /w/fey/uttk/trunk/lib/uttk/streams/Stream.rb 8778 2005-09-26T04:34:48.103938Z ertai $
5
5
 
6
6
 
7
7
  module Uttk
@@ -6,7 +6,7 @@
6
6
 
7
7
  module Uttk
8
8
 
9
- VersionId = ::Version.parse("dev-util/uttk-0.3_p1#KID")
9
+ VersionId = ::Version.parse("dev-util/uttk-0.4#Teenager")
10
10
 
11
11
  def VersionId.text
12
12
  require 'erb'
@@ -1,7 +1,7 @@
1
1
  # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
2
2
  # Copyright:: Copyright (c) 2004, 2005 Uttk team. All rights reserved.
3
3
  # License:: LGPL
4
- # $Id: /fey/uttk/trunk/lib/uttk/weights/WExpr.rb 8778 2005-09-26T04:34:48.103938Z ertai $
4
+ # $Id: /w/fey/uttk/trunk/lib/uttk/weights/WExpr.rb 8778 2005-09-26T04:34:48.103938Z ertai $
5
5
 
6
6
 
7
7
  module Uttk
@@ -1,7 +1,7 @@
1
1
  # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
2
2
  # Copyright:: Copyright (c) 2004, 2005 Uttk team. All rights reserved.
3
3
  # License:: LGPL
4
- # $Id: /fey/uttk/trunk/lib/uttk/weights/WFloat.rb 8778 2005-09-26T04:34:48.103938Z ertai $
4
+ # $Id: /w/fey/uttk/trunk/lib/uttk/weights/WFloat.rb 8778 2005-09-26T04:34:48.103938Z ertai $
5
5
 
6
6
 
7
7
  module Uttk
@@ -1,7 +1,7 @@
1
1
  # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
2
2
  # Copyright:: Copyright (c) 2004, 2005 Uttk team. All rights reserved.
3
3
  # License:: LGPL
4
- # $Id: /fey/uttk/trunk/lib/uttk/weights/WMin.rb 8778 2005-09-26T04:34:48.103938Z ertai $
4
+ # $Id: /w/fey/uttk/trunk/lib/uttk/weights/WMin.rb 8778 2005-09-26T04:34:48.103938Z ertai $
5
5
 
6
6
 
7
7
  module Uttk
@@ -1,7 +1,7 @@
1
1
  # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
2
2
  # Copyright:: Copyright (c) 2004, 2005 Uttk team. All rights reserved.
3
3
  # License:: LGPL
4
- # $Id: /fey/uttk/trunk/lib/uttk/weights/Weight.rb 8800 2005-10-09T11:12:27.126567Z ertai $
4
+ # $Id: /w/fey/uttk/trunk/lib/uttk/weights/Weight.rb 8800 2005-10-09T11:12:27.126567Z ertai $
5
5
 
6
6
 
7
7
  require 'delegate'
Binary file
Binary file
@@ -0,0 +1,167 @@
1
+ /* Body */
2
+
3
+ body {
4
+ font-size : 9pt;
5
+ }
6
+
7
+ pre {
8
+ font-size : 8pt;
9
+ margin : 0em 0em 0em 0em;
10
+ font-weight : normal;
11
+ color : grey;
12
+ }
13
+
14
+ pre#attribute {
15
+ font-size : 8pt;
16
+ margin : 0.5em 0.5em 0.5em 0.5em;
17
+ font-weight : normal;
18
+ color : grey;
19
+ }
20
+
21
+ /* Node */
22
+
23
+ .node {
24
+ margin : 0.4em 0.4em 0.4em 0.4em;
25
+ background : #ccc;
26
+ border : 1px solid #666;
27
+ }
28
+
29
+ .node .title {
30
+ border-collapse : separate;
31
+ border-spacing : 0px;
32
+ border-width : 0px 0px 0px 0px;
33
+ border-style : solid;
34
+ font-size : 9pt;
35
+ color : black;
36
+ }
37
+
38
+ /* Attribute */
39
+
40
+ .attribute {
41
+ margin : 0em 0em 0em 0em;
42
+ }
43
+
44
+ .attribute_alone {
45
+ margin : 0em 0em 0em 0em;
46
+ }
47
+
48
+ /* Test Status */
49
+
50
+ .leaf {
51
+ margin : 0.4em 0.4em 0.4em 0.4em;
52
+ background-color: rgb(250,250,250);
53
+ border-right : 1px solid rgb(153,153,153);
54
+ border-left : 1px solid rgb(153,153,153);
55
+ border-bottom : 1px solid rgb(153,153,153);
56
+ }
57
+
58
+ #PASS.title, #FAIL.title, #SKIP.title, #ABORT.title, #ERROR.title, #UNKNOWN.title, #NONE.title {
59
+ font-size : 9pt;
60
+ font-weight : bold;
61
+ width : 100%;
62
+ }
63
+
64
+ #NONE.title {
65
+ background : #eee;
66
+ }
67
+
68
+ #PASS.title {
69
+ background-color: #a0f0c0;
70
+ }
71
+
72
+ #FAIL.title {
73
+ background-color: #f08099;
74
+ }
75
+
76
+ #SKIP.title {
77
+ background-color: #ffdf5e;
78
+ }
79
+
80
+ #ABORT.title {
81
+ background-color: #b08bff;
82
+ }
83
+
84
+ #ERROR.title {
85
+ background-color: red;
86
+ }
87
+
88
+ /* Header */
89
+ .uttk_header {
90
+ border : 0px solid black;
91
+ margin : 0em 0.5em 0em 0.5em;
92
+ }
93
+
94
+ /* Informations */
95
+ .uttk_infos_box {
96
+ margin : 0.8em 0.8em 0.8em 0.8em;
97
+ background : #9999FF;
98
+ font-size : 9pt;
99
+ font-weight : bold;
100
+ border : 1.5px solid #0000FF;
101
+ }
102
+
103
+ .uttk_title_box {
104
+ text-align : center;
105
+ font-size : 12pt;
106
+ font-weight : bold;
107
+ padding-bottom : 5px;
108
+ border-bottom : 1.5px solid black;
109
+ }
110
+
111
+ .key {
112
+ font-size : 9pt;
113
+ font-weight : bold;
114
+ color : black;
115
+ vertical-align : top;
116
+ }
117
+
118
+ .value {
119
+ font-size : 8pt;
120
+ font-weight : normal;
121
+ color : grey;
122
+ }
123
+
124
+ .uttk_infos {
125
+ margin : 0.8em 0.8em 0.8em 0.8em;
126
+ width : 80%;
127
+ text-align : center;
128
+ }
129
+
130
+
131
+ /* Diff */
132
+
133
+ .diff_plus {
134
+ background : #9999FF;
135
+ padding : 0px;
136
+ margin : 0em 0em 0em 0em;
137
+ font-size : 9pt;
138
+ font-weight : bold;
139
+ color : black;
140
+ width : 100%;
141
+ }
142
+
143
+ .diff_minus {
144
+ background : #ccff66;
145
+ padding : 0px;
146
+ margin : 0em 0em 0em 0em;
147
+ font-size : 9pt;
148
+ font-weight : bold;
149
+ color : black;
150
+ width : 100%;
151
+ }
152
+
153
+ .diff_useless {
154
+ padding : 0px;
155
+ margin : 0em 0em 0em 0em;
156
+ font-size : 9pt;
157
+ color : gray;
158
+ }
159
+
160
+ .diff_infos {
161
+ padding : 0px;
162
+ margin : 0em 0em 0em 0em;
163
+ background : #66ff99;
164
+ font-size : 9pt;
165
+ color : black;
166
+ width : 100%;
167
+ }
data/misc/expandtab.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
3
3
  # Copyright:: Copyright (c) 2005 Uttk team. All rights reserved.
4
4
  # License:: LGPL
5
- # $Id: /fey/uttk/trunk/misc/expandtab.rb 8784 2005-09-26T12:11:55.049358Z ertai $
5
+ # $Id: /w/fey/uttk/trunk/misc/expandtab.rb 8784 2005-09-26T12:11:55.049358Z ertai $
6
6
 
7
7
  class String
8
8
  def process!
@@ -1,6 +1,6 @@
1
1
  ---
2
2
 
3
- Test the mini lib: !S::ProbabilityThreshold
3
+ Test the mini lib: !S::Threshold
4
4
  threshold: 0.43
5
5
  test: !S::Iterate
6
6
  over: !pathlist <<pwd>>/../../fixtures/ball/(*)-mini-lib.tar.bz2
Binary file
@@ -77,6 +77,35 @@ Test the basic features of Strategy and Suite (base.yml): !S::Suite
77
77
  args: 1
78
78
  - check for zombies: !S::KillAll
79
79
  regexp: !re sleep
80
+ - command: !S::Command
81
+ command: 'true'
82
+ exit: 0
83
+ - bad command: !S::Command
84
+ command: /bin/unexisting_command
85
+ exit: 127
86
+ - abort command: !S::Suite
87
+ contents:
88
+ - match: !S::RMatch
89
+ test: !S::Command
90
+ timeout: 0.3
91
+ command: sleep
92
+ args: 1
93
+ match:
94
+ - //reason/abort 'test' with timeout 0.3s
95
+ - //status/ABORT
96
+ - check for zombies: !S::KillAll
97
+ regexp: !re sleep
98
+ - abort suite command: !S::Suite
99
+ contents:
100
+ - suite: !S::Suite
101
+ weight: -1
102
+ timeout: 0.1
103
+ contents:
104
+ - command: !S::Command
105
+ command: sleep
106
+ args: 1
107
+ - check for zombies: !S::KillAll
108
+ regexp: !re sleep
80
109
  - timeout suite of suite: !S::Suite
81
110
  weight: -1
82
111
  timeout: 0.01
@@ -3,12 +3,12 @@
3
3
  Test cat program: !S::Suite
4
4
  contents:
5
5
 
6
- - simple equal: !S::Cmd
6
+ - simple equal: !S::Command
7
7
  command: cat
8
8
  input: !path <<pwd>>/cat.yml
9
9
  output: !path <<pwd>>/cat.yml
10
10
 
11
- - simple different: !S::Cmd
11
+ - simple different: !S::Command
12
12
  command: cat
13
13
  weight: -1
14
14
  input: !path <<pwd>>/cat.yml
@@ -11,6 +11,11 @@ Test suite for the Cmd strategy: !S::Suite
11
11
  exit: 134
12
12
  weight: -1
13
13
 
14
+ - build segfault C: !S::Cmd
15
+ command: gcc <<pwd>>/../fixtures/binaries/segv.c -o <<pwd>>/../fixtures/binaries/segv
16
+ weight: 0
17
+ fatal: true
18
+
14
19
  - segfault C: !S::Cmd
15
20
  command: <<pwd>>/../fixtures/binaries/segv
16
21
  exit: 139
@@ -0,0 +1,14 @@
1
+ ---
2
+
3
+ Test suite for the Command strategy: !S::Suite
4
+
5
+ contents:
6
+
7
+ - segfault ruby: !S::Command
8
+ command: ruby
9
+ args: <<pwd>>/../fixtures/binaries/segv.rb
10
+ exit: 134
11
+
12
+ - segfault C: !S::Command
13
+ command: <<pwd>>/../fixtures/binaries/segv
14
+ exit: 139
@@ -1,8 +1,8 @@
1
1
  ---
2
2
 
3
3
  Test Cmd with StreamDiff: !S::Suite
4
- attributes: !S::Cmd
5
- stream_class: Diff
4
+ attributes: !S::Command
5
+ matcher: UM::GnuDiffMatcher
6
6
  command: cat
7
7
  contents:
8
8
 
@@ -1,10 +1,10 @@
1
1
  ---
2
2
 
3
- Test the env feature in S::Cmd (env_cmd.yml): !S::Suite
3
+ Test the env feature in S::Command (env_cmd.yml): !S::Suite
4
4
  contents:
5
5
 
6
- - Check the env propagation with S::Cmd: !S::Suite
7
- attributes: !S::Cmd
6
+ - Check the env propagation with S::Command: !S::Suite
7
+ attributes: !S::Command
8
8
  command: <<ruby>> -e "print ENV['FOO']"
9
9
  exit: 0
10
10
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
 
3
3
  Test the exit status verification: !S::Suite
4
- attributes: !S::Cmd {}
4
+ attributes: !S::Command {}
5
5
  contents:
6
6
  - test1 true exit 0:
7
7
  command: 'true'
@@ -0,0 +1,30 @@
1
+ --- !S::Pass {}
2
+ #Test the HostSelector strategy: !S::Suite
3
+ # contents:
4
+ # - good test 1: !S::RMatch
5
+ # test:
6
+ # x: !S::HostSelector
7
+ # # ...
8
+ # match:
9
+ # - // # ...
10
+ # - //
11
+ # - //
12
+ # dont_match:
13
+ # - // # ...
14
+ # - //
15
+ # - //
16
+ #
17
+ # - bad test 1: !S::RMatch
18
+ # test:
19
+ # x: !S::HostSelector
20
+ # # ...
21
+ # match:
22
+ # - // # ...
23
+ # - //
24
+ # - //
25
+ # dont_match:
26
+ # - // # ...
27
+ # - //
28
+ # - //
29
+ #
30
+ # - # ...