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.
- data/BESTOF +13 -0
- data/ChangeLog +19 -0
- data/MATRIX +6 -0
- data/NEWS +34 -4
- data/PITFALLS +13 -0
- data/Rakefile +19 -2
- data/SPEC.gemspec +18 -0
- data/SPEC.yml +21 -7
- data/bin/getopts/uttk.rb +23 -10
- data/lib/uttk.rb +16 -12
- data/lib/uttk/dumpers/Mail.rb +41 -0
- data/lib/uttk/dumpers/Yaml.rb +2 -2
- data/lib/uttk/filters/KeepSkipBased.rb +1 -1
- data/lib/uttk/generators/templates/loader.rb +1 -1
- data/lib/uttk/generators/templates/strategy-command.rb +72 -0
- data/lib/uttk/generators/templates/strategy.rb +4 -3
- data/lib/uttk/generators/templates/unit_test.rb +1 -1
- data/lib/uttk/loaders/Loader.rb +1 -1
- data/lib/uttk/loaders/Ruby.rb +1 -1
- data/lib/uttk/loaders/Yaml.rb +2 -2
- data/lib/uttk/logger/section_node.rb +1 -1
- data/lib/uttk/logger/severity.rb +1 -1
- data/lib/uttk/logger/to_uttk_log.rb +2 -2
- data/lib/uttk/logger/verbosity.rb +1 -1
- data/lib/uttk/logger_factory.rb +1 -1
- data/lib/uttk/status.rb +1 -1
- data/lib/uttk/strategies/Abort.rb +1 -1
- data/lib/uttk/strategies/Assert.rb +1 -1
- data/lib/uttk/strategies/Authors.rb +2 -2
- data/lib/uttk/strategies/Bootstrap.rb +38 -11
- data/lib/uttk/strategies/Checkout.rb +3 -2
- data/lib/uttk/strategies/Clean.rb +1 -1
- data/lib/uttk/strategies/Collection.rb +3 -3
- data/lib/uttk/strategies/Command.rb +95 -0
- data/lib/uttk/strategies/Composite/contents_eval.rb +1 -1
- data/lib/uttk/strategies/Configure.rb +34 -25
- data/lib/uttk/strategies/Error.rb +1 -1
- data/lib/uttk/strategies/Fail.rb +1 -1
- data/lib/uttk/strategies/HostSelector.rb +143 -0
- data/lib/uttk/strategies/Import.rb +2 -2
- data/lib/uttk/strategies/Iterate.rb +1 -1
- data/lib/uttk/strategies/JUnit.rb +1 -1
- data/lib/uttk/strategies/Jump.rb +81 -0
- data/lib/uttk/strategies/Make.rb +28 -58
- data/lib/uttk/strategies/Package.rb +5 -6
- data/lib/uttk/strategies/PackageCollection.rb +1 -1
- data/lib/uttk/strategies/Pass.rb +1 -1
- data/lib/uttk/strategies/RUnit.rb +63 -49
- data/lib/uttk/strategies/SignalCmd.rb +1 -1
- data/lib/uttk/strategies/Sleep.rb +1 -1
- data/lib/uttk/strategies/SqlQuery.rb +1 -1
- data/lib/uttk/strategies/Strategy.rb +153 -3
- data/lib/uttk/strategies/SubCmd.rb +51 -31
- data/lib/uttk/strategies/Suite.rb +1 -1
- data/lib/uttk/strategies/Test.rb +1 -1
- data/lib/uttk/strategies/{ProbabilityThreshold.rb → Threshold.rb} +3 -3
- data/lib/uttk/streams.rb +1 -1
- data/lib/uttk/streams/Diff.rb +1 -1
- data/lib/uttk/streams/Stream.rb +1 -1
- data/lib/uttk/version_id.rb +1 -1
- data/lib/uttk/weights/WExpr.rb +1 -1
- data/lib/uttk/weights/WFloat.rb +1 -1
- data/lib/uttk/weights/WMin.rb +1 -1
- data/lib/uttk/weights/Weight.rb +1 -1
- data/lib/www/images/opentriangle.gif +0 -0
- data/lib/www/images/triangle.gif +0 -0
- data/lib/www/stylesheets/uttk.css +167 -0
- data/misc/expandtab.rb +1 -1
- data/test/examples/students/mini-lib.yml +1 -1
- data/test/fixtures/binaries/segv +0 -0
- data/test/functional/base.yml +29 -0
- data/test/functional/cat.yml +2 -2
- data/test/functional/cmd.yml +5 -0
- data/test/functional/command.yml +14 -0
- data/test/functional/diff.yml +2 -2
- data/test/functional/env_cmd.yml +3 -3
- data/test/functional/exit.yml +1 -1
- data/test/functional/host_selector.yml +30 -0
- data/test/functional/iterate.yml +31 -37
- data/test/functional/jump.yml +34 -0
- data/test/functional/pkg.yml +1 -1
- data/test/functional/{probability_threshold.yml → threshold.yml} +2 -2
- data/test/functional/timeout.yml +1 -1
- data/test/functional/wc.yml +2 -2
- data/test/unit/dumpers/mail_test.rb +46 -0
- data/test/unit/filters/keep_skip_based_test.rb +1 -1
- data/test/unit/filters/text_filter_test.rb +1 -1
- metadata +258 -253
- data/test/fixtures/demo/command-tutorial/steps/1/check.yml +0 -5
- data/test/fixtures/demo/command-tutorial/steps/1/pluralizer.rb +0 -10
- data/test/fixtures/demo/command-tutorial/steps/2/bad_check.yml +0 -7
- data/test/fixtures/demo/command-tutorial/steps/2/check.yml +0 -7
- data/test/fixtures/demo/command-tutorial/steps/2/pluralizer.rb +0 -10
- data/test/fixtures/demo/command-tutorial/steps/3.1/check.yml +0 -12
- data/test/fixtures/demo/command-tutorial/steps/3/check.yml +0 -14
- data/test/fixtures/demo/command-tutorial/steps/4.1/bird.txt +0 -1
- data/test/fixtures/demo/command-tutorial/steps/4.1/check.yml +0 -12
- data/test/fixtures/demo/command-tutorial/steps/4/check.yml +0 -12
- data/test/fixtures/demo/command-tutorial/steps/4/pluralizer.rb +0 -12
- data/test/fixtures/demo/command-tutorial/steps/5.1/bird.txt +0 -1
- data/test/fixtures/demo/command-tutorial/steps/5.1/check.yml +0 -17
- data/test/fixtures/demo/command-tutorial/steps/5.1/pluralizer.rb +0 -17
- data/test/fixtures/demo/command-tutorial/steps/5/bird.txt +0 -1
- data/test/fixtures/demo/command-tutorial/steps/5/check.yml +0 -16
- data/test/fixtures/demo/command-tutorial/steps/5/pluralizer.rb +0 -16
- data/test/fixtures/demo/command-tutorial/steps/6.1/bird.txt +0 -1
- data/test/fixtures/demo/command-tutorial/steps/6.1/check.yml +0 -22
- data/test/fixtures/demo/command-tutorial/steps/6.1/pluralizer.rb +0 -17
- data/test/fixtures/demo/command-tutorial/steps/6/bird.txt +0 -1
- data/test/fixtures/demo/command-tutorial/steps/6/check.yml +0 -21
- data/test/fixtures/demo/command-tutorial/steps/6/pluralizer.rb +0 -17
- data/test/fixtures/demo/command-tutorial/steps/7/bird.txt +0 -1
- data/test/fixtures/demo/command-tutorial/steps/7/check.yml +0 -22
- data/test/fixtures/demo/command-tutorial/steps/7/pluralizer.rb +0 -17
@@ -1,14 +0,0 @@
|
|
1
|
-
---
|
2
|
-
Test the pluralizer program: !S::Suite
|
3
|
-
contents:
|
4
|
-
- Test the bird word: !S::Cmd
|
5
|
-
command: ./pluralizer.rb
|
6
|
-
args:
|
7
|
-
- "bird"
|
8
|
-
output: "birds\n"
|
9
|
-
exit: 0
|
10
|
-
- Test the ant word: !S::Cmd
|
11
|
-
command: ./pluralizer.rb
|
12
|
-
args: "ant"
|
13
|
-
output: "ants\n"
|
14
|
-
exit: 0
|
@@ -1 +0,0 @@
|
|
1
|
-
bird
|
@@ -1 +0,0 @@
|
|
1
|
-
bird
|
@@ -1,17 +0,0 @@
|
|
1
|
-
---
|
2
|
-
Test the pluralizer program: !S::Suite
|
3
|
-
attributes: !S::Cmd
|
4
|
-
command: ./pluralizer.rb
|
5
|
-
exit: 0
|
6
|
-
contents:
|
7
|
-
- Test the bird word:
|
8
|
-
input: !path bird.txt
|
9
|
-
output: "birds\n"
|
10
|
-
- Test the ant word:
|
11
|
-
args: "ant"
|
12
|
-
output: "ants\n"
|
13
|
-
- Test a bad word:
|
14
|
-
args: "b1rd"
|
15
|
-
output: ""
|
16
|
-
error: "wrong word!\n"
|
17
|
-
exit: 1
|
@@ -1 +0,0 @@
|
|
1
|
-
bird
|
@@ -1,16 +0,0 @@
|
|
1
|
-
---
|
2
|
-
Test the pluralizer program: !S::Suite
|
3
|
-
attributes: !S::Cmd
|
4
|
-
command: ./pluralizer.rb
|
5
|
-
exit: 0
|
6
|
-
contents:
|
7
|
-
- Test the bird word:
|
8
|
-
input: !path bird.txt
|
9
|
-
output: "birds\n"
|
10
|
-
- Test the ant word:
|
11
|
-
args: "ant"
|
12
|
-
output: "ants\n"
|
13
|
-
- Test a bad word:
|
14
|
-
args: "b1rd"
|
15
|
-
output: ""
|
16
|
-
error: "wrong word!\n"
|
@@ -1 +0,0 @@
|
|
1
|
-
bird
|
@@ -1,22 +0,0 @@
|
|
1
|
-
---
|
2
|
-
Test the pluralizer program: !S::Suite
|
3
|
-
attributes: !S::Cmd
|
4
|
-
command: ./pluralizer.rb
|
5
|
-
exit: 0
|
6
|
-
contents:
|
7
|
-
- Test the bird word:
|
8
|
-
input: !path bird.txt
|
9
|
-
output: "birds\n"
|
10
|
-
- Test the ant word:
|
11
|
-
args: "ant"
|
12
|
-
output: "ants\n"
|
13
|
-
- Test a bad word:
|
14
|
-
weight: 2
|
15
|
-
args: "b1rd"
|
16
|
-
output: ""
|
17
|
-
error: "wrong word!\n"
|
18
|
-
exit: 1
|
19
|
-
- Test the trap word:
|
20
|
-
weight: -1
|
21
|
-
args: "child"
|
22
|
-
output: "childs\n"
|
@@ -1 +0,0 @@
|
|
1
|
-
bird
|
@@ -1,21 +0,0 @@
|
|
1
|
-
---
|
2
|
-
Test the pluralizer program: !S::Suite
|
3
|
-
attributes: !S::Cmd
|
4
|
-
command: ./pluralizer.rb
|
5
|
-
exit: 0
|
6
|
-
contents:
|
7
|
-
- Test the bird word:
|
8
|
-
input: !path bird.txt
|
9
|
-
output: "birds\n"
|
10
|
-
- Test the ant word:
|
11
|
-
args: "ant"
|
12
|
-
output: "ants\n"
|
13
|
-
- Test a bad word:
|
14
|
-
args: "b1rd"
|
15
|
-
output: ""
|
16
|
-
error: "wrong word!\n"
|
17
|
-
exit: 1
|
18
|
-
- Test the trap word:
|
19
|
-
weight: -1
|
20
|
-
args: "child"
|
21
|
-
output: "childs\n"
|
@@ -1 +0,0 @@
|
|
1
|
-
bird
|
@@ -1,22 +0,0 @@
|
|
1
|
-
---
|
2
|
-
Test the pluralizer program: !S::Suite
|
3
|
-
attributes: !S::Cmd
|
4
|
-
command: ./pluralizer.rb
|
5
|
-
exit: 0
|
6
|
-
contents:
|
7
|
-
- Test the bird word:
|
8
|
-
input: !path bird.txt
|
9
|
-
output: "birds\n"
|
10
|
-
- Test the ant word:
|
11
|
-
args: "ant"
|
12
|
-
output: "ants\n"
|
13
|
-
- Test a bad word:
|
14
|
-
weight: <<my_var>>
|
15
|
-
args: "b1rd"
|
16
|
-
output: ""
|
17
|
-
error: "wrong word!\n"
|
18
|
-
exit: 1
|
19
|
-
- Test the trap word:
|
20
|
-
weight: -1
|
21
|
-
args: "child"
|
22
|
-
output: "childs\n"
|