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,5 +0,0 @@
1
- ---
2
- Test the pluralizer program: !S::Cmd
3
- command: ./pluralizer.rb
4
- args:
5
- - "bird"
@@ -1,10 +0,0 @@
1
- #! /usr/bin/env ruby
2
-
3
- def main()
4
- if (ARGV.length != 1)
5
- exit 1
6
- end
7
- puts ARGV[0] + "s"
8
- end
9
-
10
- main
@@ -1,7 +0,0 @@
1
- ---
2
- Test the pluralizer program: !S::Cmd
3
- command: ruby plural.rb
4
- args:
5
- - "bird"
6
- output: "wrong value\n"
7
- exit: 0
@@ -1,7 +0,0 @@
1
- ---
2
- Test the pluralizer program: !S::Cmd
3
- command: ./pluralizer.rb
4
- args:
5
- - "bird"
6
- output: "birds\n"
7
- exit: 0
@@ -1,10 +0,0 @@
1
- #! /usr/bin/env ruby
2
-
3
- def main()
4
- if (ARGV.length != 1)
5
- exit 1
6
- end
7
- puts ARGV[0] + "s"
8
- end
9
-
10
- main
@@ -1,12 +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
- args: "bird"
9
- output: "birds\n"
10
- - Test the ant word:
11
- args: "ant"
12
- output: "ants\n"
@@ -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,12 +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"
@@ -1,12 +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: "bird"
9
- output: "birds\n"
10
- - Test the ant word:
11
- args: "ant"
12
- output: "ants\n"
@@ -1,12 +0,0 @@
1
- #! /usr/bin/env ruby
2
-
3
- def main()
4
- if (ARGV.length == 0)
5
- stream = STDIN.gets.chomp
6
- puts stream + "s"
7
- else
8
- puts ARGV[0] + "s"
9
- end
10
- end
11
-
12
- main
@@ -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,17 +0,0 @@
1
- #! /usr/bin/env ruby
2
-
3
- def main()
4
- if (ARGV.length == 0)
5
- word = STDIN.gets.chomp
6
- else
7
- word = ARGV[0]
8
- end
9
- if word =~ /\d/
10
- STDERR.puts "wrong word!"
11
- exit 1
12
- else
13
- puts word + "s"
14
- end
15
- end
16
-
17
- main
@@ -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,16 +0,0 @@
1
- #! /usr/bin/env ruby
2
-
3
- def main()
4
- if (ARGV.length == 0)
5
- word = STDIN.gets.chomp
6
- else
7
- word = ARGV[0]
8
- end
9
- if word =~ /\d/
10
- STDERR.puts "wrong word!"
11
- else
12
- puts word + "s"
13
- end
14
- end
15
-
16
- main
@@ -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,17 +0,0 @@
1
- #! /usr/bin/env ruby
2
-
3
- def main()
4
- if (ARGV.length == 0)
5
- word = STDIN.gets.chomp
6
- else
7
- word = ARGV[0]
8
- end
9
- if word =~ /\d/
10
- STDERR.puts "wrong word!"
11
- exit 1
12
- else
13
- puts word + "s"
14
- end
15
- end
16
-
17
- main
@@ -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,17 +0,0 @@
1
- #! /usr/bin/env ruby
2
-
3
- def main()
4
- if (ARGV.length == 0)
5
- word = STDIN.gets.chomp
6
- else
7
- word = ARGV[0]
8
- end
9
- if word =~ /\d/
10
- STDERR.puts "wrong word!"
11
- exit 1
12
- else
13
- puts word + "s"
14
- end
15
- end
16
-
17
- main
@@ -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"
@@ -1,17 +0,0 @@
1
- #! /usr/bin/env ruby
2
-
3
- def main()
4
- if (ARGV.length == 0)
5
- word = STDIN.gets.chomp
6
- else
7
- word = ARGV[0]
8
- end
9
- if word =~ /\d/
10
- STDERR.puts "wrong word!"
11
- exit 1
12
- else
13
- puts word + "s"
14
- end
15
- end
16
-
17
- main