uttk 0.3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/AUTHORS +36 -0
- data/COPYING +18 -0
- data/ChangeLog +7673 -0
- data/GUIDELINES +86 -0
- data/LGPL +504 -0
- data/NEWS +158 -0
- data/NORM +137 -0
- data/README +180 -0
- data/Rakefile +8 -0
- data/SPEC.gemspec +15 -0
- data/SPEC.yml +60 -0
- data/TODO +23 -0
- data/TODO.old +31 -0
- data/VERSION +5 -0
- data/bin/getopts/uttk.rb +390 -0
- data/bin/uttk +188 -0
- data/bin/uttk-unit +125 -0
- data/lib/uttk.rb +288 -0
- data/lib/uttk/dumpers/Basic.rb +23 -0
- data/lib/uttk/dumpers/BasicColor.rb +35 -0
- data/lib/uttk/dumpers/Dumper.rb +77 -0
- data/lib/uttk/dumpers/Html.rb +271 -0
- data/lib/uttk/dumpers/Path.rb +24 -0
- data/lib/uttk/dumpers/Xml.rb +88 -0
- data/lib/uttk/dumpers/Yaml.rb +138 -0
- data/lib/uttk/filters.rb +128 -0
- data/lib/uttk/filters/Buffer.rb +119 -0
- data/lib/uttk/filters/Compact.rb +75 -0
- data/lib/uttk/filters/Default.rb +27 -0
- data/lib/uttk/filters/DefaultColor.rb +27 -0
- data/lib/uttk/filters/Filter.rb +53 -0
- data/lib/uttk/filters/Id.rb +30 -0
- data/lib/uttk/filters/JustStatus.rb +25 -0
- data/lib/uttk/filters/KeepSkipBased.rb +38 -0
- data/lib/uttk/filters/NodeCut.rb +97 -0
- data/lib/uttk/filters/RPathFilter.rb +134 -0
- data/lib/uttk/filters/Saver.rb +53 -0
- data/lib/uttk/filters/TextFilter.rb +69 -0
- data/lib/uttk/generators/dumper_generator.rb +28 -0
- data/lib/uttk/generators/filter_generator.rb +28 -0
- data/lib/uttk/generators/generator.rb +86 -0
- data/lib/uttk/generators/generator_generator.rb +26 -0
- data/lib/uttk/generators/loader_generator.rb +28 -0
- data/lib/uttk/generators/path_filter_generator.rb +28 -0
- data/lib/uttk/generators/strategy_generator.rb +28 -0
- data/lib/uttk/generators/templates/dumper.rb +50 -0
- data/lib/uttk/generators/templates/filter.rb +50 -0
- data/lib/uttk/generators/templates/generator.rb +28 -0
- data/lib/uttk/generators/templates/loader.rb +26 -0
- data/lib/uttk/generators/templates/path_filter.rb +28 -0
- data/lib/uttk/generators/templates/strategy.rb +59 -0
- data/lib/uttk/generators/templates/strategy.yml +28 -0
- data/lib/uttk/generators/templates/unit_test.rb +46 -0
- data/lib/uttk/loaders/Loader.rb +180 -0
- data/lib/uttk/loaders/Ruby.rb +28 -0
- data/lib/uttk/loaders/Yaml.rb +98 -0
- data/lib/uttk/logger.rb +306 -0
- data/lib/uttk/logger/backend.rb +170 -0
- data/lib/uttk/logger/path.rb +202 -0
- data/lib/uttk/logger/section_node.rb +214 -0
- data/lib/uttk/logger/severity.rb +63 -0
- data/lib/uttk/logger/to_uttk_log.rb +127 -0
- data/lib/uttk/logger/verbosity.rb +61 -0
- data/lib/uttk/logger_factory.rb +55 -0
- data/lib/uttk/path_filters/ColorStatus.rb +57 -0
- data/lib/uttk/path_filters/PathFilter.rb +27 -0
- data/lib/uttk/path_filters/RemoveTypes.rb +25 -0
- data/lib/uttk/status.rb +146 -0
- data/lib/uttk/strategies/Abort.rb +24 -0
- data/lib/uttk/strategies/Assert.rb +44 -0
- data/lib/uttk/strategies/Authors.rb +45 -0
- data/lib/uttk/strategies/Block.rb +113 -0
- data/lib/uttk/strategies/Bootstrap.rb +55 -0
- data/lib/uttk/strategies/Checkout.rb +64 -0
- data/lib/uttk/strategies/Clean.rb +29 -0
- data/lib/uttk/strategies/Cmd.rb +60 -0
- data/lib/uttk/strategies/CmdBase.rb +130 -0
- data/lib/uttk/strategies/Collection.rb +158 -0
- data/lib/uttk/strategies/Compile.rb +59 -0
- data/lib/uttk/strategies/Composite.rb +201 -0
- data/lib/uttk/strategies/Composite/contents_eval.rb +40 -0
- data/lib/uttk/strategies/Configure.rb +66 -0
- data/lib/uttk/strategies/Error.rb +23 -0
- data/lib/uttk/strategies/Fail.rb +26 -0
- data/lib/uttk/strategies/IOBased.rb +159 -0
- data/lib/uttk/strategies/Import.rb +60 -0
- data/lib/uttk/strategies/Iterate.rb +139 -0
- data/lib/uttk/strategies/JUnit.rb +205 -0
- data/lib/uttk/strategies/KillAll.rb +62 -0
- data/lib/uttk/strategies/Make.rb +94 -0
- data/lib/uttk/strategies/Package.rb +129 -0
- data/lib/uttk/strategies/PackageCollection.rb +78 -0
- data/lib/uttk/strategies/Pass.rb +24 -0
- data/lib/uttk/strategies/Pool.rb +104 -0
- data/lib/uttk/strategies/ProbabilityThreshold.rb +46 -0
- data/lib/uttk/strategies/Proxy.rb +42 -0
- data/lib/uttk/strategies/RMatch.rb +92 -0
- data/lib/uttk/strategies/RUnit.rb +132 -0
- data/lib/uttk/strategies/SignalCmd.rb +85 -0
- data/lib/uttk/strategies/Sleep.rb +36 -0
- data/lib/uttk/strategies/SqlQuery.rb +120 -0
- data/lib/uttk/strategies/Strategy.rb +683 -0
- data/lib/uttk/strategies/Stub.rb +37 -0
- data/lib/uttk/strategies/SubCmd.rb +77 -0
- data/lib/uttk/strategies/Suite.rb +71 -0
- data/lib/uttk/strategies/Test.rb +89 -0
- data/lib/uttk/streams.rb +69 -0
- data/lib/uttk/streams/Diff.rb +60 -0
- data/lib/uttk/streams/HexaDiff.rb +35 -0
- data/lib/uttk/streams/Stream.rb +76 -0
- data/lib/uttk/weights.rb +17 -0
- data/lib/uttk/weights/WExpr.rb +68 -0
- data/lib/uttk/weights/WFloat.rb +23 -0
- data/lib/uttk/weights/WMin.rb +22 -0
- data/lib/uttk/weights/Weight.rb +105 -0
- data/lib/www/javascripts/uttk.js +185 -0
- data/misc/expandtab.rb +29 -0
- data/misc/header.rb +44 -0
- data/misc/renaming +57 -0
- data/misc/textile_compiler +194 -0
- data/misc/uttk-grep.sh +8 -0
- data/misc/uttk-line-count.rb +143 -0
- data/test/examples-suite.yml +8 -0
- data/test/examples/README +68 -0
- data/test/examples/basic.rb +10 -0
- data/test/examples/basic.yml +9 -0
- data/test/examples/cache/cache_and_fatal.yml +5 -0
- data/test/examples/cache/simple.yml +30 -0
- data/test/examples/sql/basic.yml +24 -0
- data/test/examples/students-suite.yml +9 -0
- data/test/examples/students/ball.yml +11 -0
- data/test/examples/students/glob_stud.yml +20 -0
- data/test/examples/students/mini-lib.yml +61 -0
- data/test/examples/students/pool_stud.yml +31 -0
- data/test/examples/students/stud.yml +21 -0
- data/test/fixtures/ball/20040804-exam_a1-zapngo-tessar_m.tar.gz +0 -0
- data/test/fixtures/ball/Makefile +24 -0
- data/test/fixtures/ball/bar_p-mini-lib.tar.bz2 +0 -0
- data/test/fixtures/ball/bar_p-mini-lib/Makefile +20 -0
- data/test/fixtures/ball/bar_p-mini-lib/my_strlen.c +13 -0
- data/test/fixtures/ball/foo_s-mini-lib.tar.bz2 +0 -0
- data/test/fixtures/ball/foo_s-mini-lib/Makefile +20 -0
- data/test/fixtures/ball/foo_s-mini-lib/configure +2 -0
- data/test/fixtures/ball/foo_s-mini-lib/my_strlen.c +10 -0
- data/test/fixtures/ball/hello.tar.bz2 +0 -0
- data/test/fixtures/ball/hello.tar.gz +0 -0
- data/test/fixtures/ball/hello/Makefile +14 -0
- data/test/fixtures/ball/hello/hello.c +7 -0
- data/test/fixtures/ball/jack-exit.tar.bz2 +0 -0
- data/test/fixtures/ball/jack-exit/Makefile +14 -0
- data/test/fixtures/ball/jack-exit/exit.c +16 -0
- data/test/fixtures/ball/joe-exit.tar.bz2 +0 -0
- data/test/fixtures/ball/joe-exit/Makefile +14 -0
- data/test/fixtures/ball/joe-exit/exit.c +8 -0
- data/test/fixtures/ball/joe_i-mini-lib.tar.bz2 +0 -0
- data/test/fixtures/ball/joe_i-mini-lib/Makefile +20 -0
- data/test/fixtures/ball/joe_i-mini-lib/configure +2 -0
- data/test/fixtures/ball/joe_i-mini-lib/my_strlen.c +10 -0
- data/test/fixtures/ball/john-exit.tar.bz2 +0 -0
- data/test/fixtures/ball/john-exit/Makefile +14 -0
- data/test/fixtures/ball/john-exit/exit.c +6 -0
- data/test/fixtures/ball/qux_j-mini-lib.tar.bz2 +0 -0
- data/test/fixtures/ball/qux_j-mini-lib/Makefile +20 -0
- data/test/fixtures/ball/qux_j-mini-lib/my_strlen.c +12 -0
- data/test/fixtures/binaries/segv +0 -0
- data/test/fixtures/binaries/segv.c +10 -0
- data/test/fixtures/binaries/segv.rb +2 -0
- data/test/fixtures/demo/command-tutorial/steps/1/check.yml +5 -0
- data/test/fixtures/demo/command-tutorial/steps/1/pluralizer.rb +10 -0
- data/test/fixtures/demo/command-tutorial/steps/2/bad_check.yml +7 -0
- data/test/fixtures/demo/command-tutorial/steps/2/check.yml +7 -0
- data/test/fixtures/demo/command-tutorial/steps/2/pluralizer.rb +10 -0
- data/test/fixtures/demo/command-tutorial/steps/3.1/check.yml +12 -0
- data/test/fixtures/demo/command-tutorial/steps/3/check.yml +14 -0
- data/test/fixtures/demo/command-tutorial/steps/4.1/bird.txt +1 -0
- data/test/fixtures/demo/command-tutorial/steps/4.1/check.yml +12 -0
- data/test/fixtures/demo/command-tutorial/steps/4/check.yml +12 -0
- data/test/fixtures/demo/command-tutorial/steps/4/pluralizer.rb +12 -0
- data/test/fixtures/demo/command-tutorial/steps/5.1/bird.txt +1 -0
- data/test/fixtures/demo/command-tutorial/steps/5.1/check.yml +17 -0
- data/test/fixtures/demo/command-tutorial/steps/5.1/pluralizer.rb +17 -0
- data/test/fixtures/demo/command-tutorial/steps/5/bird.txt +1 -0
- data/test/fixtures/demo/command-tutorial/steps/5/check.yml +16 -0
- data/test/fixtures/demo/command-tutorial/steps/5/pluralizer.rb +16 -0
- data/test/fixtures/demo/command-tutorial/steps/6.1/bird.txt +1 -0
- data/test/fixtures/demo/command-tutorial/steps/6.1/check.yml +22 -0
- data/test/fixtures/demo/command-tutorial/steps/6.1/pluralizer.rb +17 -0
- data/test/fixtures/demo/command-tutorial/steps/6/bird.txt +1 -0
- data/test/fixtures/demo/command-tutorial/steps/6/check.yml +21 -0
- data/test/fixtures/demo/command-tutorial/steps/6/pluralizer.rb +17 -0
- data/test/fixtures/demo/command-tutorial/steps/7/bird.txt +1 -0
- data/test/fixtures/demo/command-tutorial/steps/7/check.yml +22 -0
- data/test/fixtures/demo/command-tutorial/steps/7/pluralizer.rb +17 -0
- data/test/fixtures/demo/filter-tutorial/check.yml +20 -0
- data/test/fixtures/demo/filter-tutorial/filters/CutSkip100.rb +19 -0
- data/test/fixtures/demo/filter-tutorial/pluralizer.rb +17 -0
- data/test/fixtures/java/unit/MultiRight/Foo/Foo.java +11 -0
- data/test/fixtures/java/unit/MultiRight/Foo/FooTest.java +15 -0
- data/test/fixtures/java/unit/MultiRight/MultiRight.java +13 -0
- data/test/fixtures/java/unit/MultiRight/MultiRightTest.java +12 -0
- data/test/fixtures/java/unit/MultiRight/bar/Bar.java +11 -0
- data/test/fixtures/java/unit/MultiRight/bar/BarTest.java +21 -0
- data/test/fixtures/java/unit/MultiRight/build.sh +7 -0
- data/test/fixtures/java/unit/SimpleException/SimpleExceptionTest.java +11 -0
- data/test/fixtures/java/unit/SimpleException/build.sh +4 -0
- data/test/fixtures/java/unit/build.sh +9 -0
- data/test/fixtures/java/unit/multibar.yml +6 -0
- data/test/fixtures/java/unit/multifoo.yml +6 -0
- data/test/fixtures/java/unit/multiright.yml +8 -0
- data/test/fixtures/java/unit/simple_exception.yml +6 -0
- data/test/fixtures/mini-lib/Makefile +9 -0
- data/test/fixtures/mini-lib/strlen.c +15 -0
- data/test/fixtures/package/pkg_foo.tar.gz +0 -0
- data/test/fixtures/package/pkg_foo/Makefile +20 -0
- data/test/fixtures/package/pkg_foo/bootstrap +3 -0
- data/test/fixtures/package/pkg_foo/configure +3 -0
- data/test/fixtures/package/pkg_foo/foo.sh +2 -0
- data/test/fixtures/text/1.txt +4 -0
- data/test/fixtures/unit/bad.rb +26 -0
- data/test/fixtures/unit/error.rb +6 -0
- data/test/fixtures/unit/good.rb +26 -0
- data/test/functional-suite.yml +10 -0
- data/test/functional/author.yml +11 -0
- data/test/functional/base.yml +119 -0
- data/test/functional/base_pool.yml +13 -0
- data/test/functional/block.yml +13 -0
- data/test/functional/cat.yml +16 -0
- data/test/functional/cmd.yml +17 -0
- data/test/functional/diff.yml +27 -0
- data/test/functional/env_cmd.yml +53 -0
- data/test/functional/exit.yml +15 -0
- data/test/functional/fatal.yml +23 -0
- data/test/functional/glob.yml +11 -0
- data/test/functional/hexa-diff.yml +25 -0
- data/test/functional/import.yml +41 -0
- data/test/functional/iterate.yml +99 -0
- data/test/functional/killall.yml +31 -0
- data/test/functional/pkg.yml +14 -0
- data/test/functional/probability_threshold.yml +35 -0
- data/test/functional/r_unit.yml +26 -0
- data/test/functional/rmatch.yml +122 -0
- data/test/functional/signal_cmd.yml +22 -0
- data/test/functional/sub.yml +15 -0
- data/test/functional/test.yml +25 -0
- data/test/functional/timeout.yml +20 -0
- data/test/functional/wc.yml +26 -0
- data/test/functional/weight.yml +152 -0
- data/test/pkg-suite.yml +8 -0
- data/test/pkg/cmdline.yml +80 -0
- data/test/pool-suite.yml +8 -0
- data/test/pool/base.yml +12 -0
- data/test/pool/pool.yml +25 -0
- data/test/ruby-suite.rb +10 -0
- data/test/ruby-suite.yml +5 -0
- data/test/ruby/base.rb +119 -0
- data/test/ruby/iterate.rb +21 -0
- data/test/ruby/wc.rb +43 -0
- data/test/unit-suite.yml +10 -0
- data/test/unit/dumpers/path_test.rb +46 -0
- data/test/unit/dumpers/xml_test.rb +65 -0
- data/test/unit/dumpers/yaml_test.rb +65 -0
- data/test/unit/filters/buffer_test.rb +168 -0
- data/test/unit/filters/keep_skip_based_test.rb +46 -0
- data/test/unit/filters/node_cut_test.rb +72 -0
- data/test/unit/filters/rpath_filter_test.rb +191 -0
- data/test/unit/filters/text_filter_test.rb +46 -0
- data/test/unit/filters_test.rb +119 -0
- data/test/unit/logger/section_node_test.rb +120 -0
- data/test/unit/logger/severity_test.rb +37 -0
- data/test/unit/logger/to_uttk_log_test.rb +113 -0
- data/test/unit/logger/verbosity_test.rb +44 -0
- data/test/unit/logger_test.rb +203 -0
- data/test/unit/strategies/suite_test.rb +151 -0
- data/test/uttk-check.yml +8 -0
- data/test/uttk-distcheck.yml +18 -0
- metadata +399 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
|
|
2
|
+
= Introduction
|
|
3
|
+
|
|
4
|
+
This directory contains a set of a typical examples of Uttk. In this directory
|
|
5
|
+
you can find several test examples.You can run all the tests included in this
|
|
6
|
+
directory by simply typing this command:
|
|
7
|
+
|
|
8
|
+
$ uttk test/examples-suite.yml
|
|
9
|
+
|
|
10
|
+
== Cache
|
|
11
|
+
|
|
12
|
+
This example shows you how to use the cache feature of Uttk to avoid to rerun
|
|
13
|
+
all the time, already pass test. Use it this way.
|
|
14
|
+
|
|
15
|
+
$ uttk -C test/examples/cache/simple.yml
|
|
16
|
+
|
|
17
|
+
In this mode, Uttk is interactive. If the suite failed, it will ask you to rerun
|
|
18
|
+
it. Since this suite is designed to fail 5 times.
|
|
19
|
+
|
|
20
|
+
== SQL
|
|
21
|
+
|
|
22
|
+
This example shows you how you can test your SQL queries. See the
|
|
23
|
+
Uttk::Strategies::SqlQuery strategy documentation for further informations.
|
|
24
|
+
|
|
25
|
+
$ uttk test/examples/sql/basic.yml
|
|
26
|
+
|
|
27
|
+
== Students
|
|
28
|
+
|
|
29
|
+
This directory consists of several examples that show how to test a complete
|
|
30
|
+
tarball or a mini library or a set of students program. You can run all the
|
|
31
|
+
tests included in this directory by simply typing this command:
|
|
32
|
+
|
|
33
|
+
$ uttk test/examples/students-suite.yml
|
|
34
|
+
|
|
35
|
+
=== ball.yml
|
|
36
|
+
|
|
37
|
+
It applies one test to a tarball containing a basic project (helloworld). See
|
|
38
|
+
the Uttk::Strategies::Package documentation for further information.
|
|
39
|
+
|
|
40
|
+
$ uttk test/examples/students/ball.yml
|
|
41
|
+
|
|
42
|
+
=== stud.yml
|
|
43
|
+
|
|
44
|
+
It applies several tests to a basic tarball containing a simple `exit' program.
|
|
45
|
+
|
|
46
|
+
$ uttk test/examples/students/stud.yml
|
|
47
|
+
|
|
48
|
+
=== pool_stud.yml
|
|
49
|
+
|
|
50
|
+
It does the same as `stud.yml' but in a parallelized way instead of a sequence
|
|
51
|
+
way.
|
|
52
|
+
|
|
53
|
+
$ uttk test/examples/students/pool_stud.yml
|
|
54
|
+
|
|
55
|
+
=== glob_stud.yml
|
|
56
|
+
|
|
57
|
+
It collects a set of tarballs and apply them a sequence of tests. See the
|
|
58
|
+
Uttk::Strategies::Glob documentation for further information.
|
|
59
|
+
|
|
60
|
+
$ uttk test/examples/students/glob_stud.yml
|
|
61
|
+
|
|
62
|
+
=== mini-lib.yml
|
|
63
|
+
|
|
64
|
+
It applies to a set of tarball containing a library and applies them a sequence
|
|
65
|
+
of tests.
|
|
66
|
+
|
|
67
|
+
$ uttk test/examples/students/mini-lib.yml
|
|
68
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
Relaunch 5 times this test with the cache feature to obtain a PASS: !S::Suite
|
|
4
|
+
|
|
5
|
+
timeout: 1.5
|
|
6
|
+
|
|
7
|
+
attributes: !S::Sleep
|
|
8
|
+
delay: 1
|
|
9
|
+
|
|
10
|
+
contents:
|
|
11
|
+
|
|
12
|
+
- first:
|
|
13
|
+
symbols:
|
|
14
|
+
foo: a
|
|
15
|
+
|
|
16
|
+
- second:
|
|
17
|
+
symbols:
|
|
18
|
+
foo: <<foo>>/b
|
|
19
|
+
|
|
20
|
+
- third
|
|
21
|
+
|
|
22
|
+
- fourth:
|
|
23
|
+
symbols:
|
|
24
|
+
foo: <<foo>>/c
|
|
25
|
+
|
|
26
|
+
- fith
|
|
27
|
+
|
|
28
|
+
- sixth: !S::Cmd
|
|
29
|
+
command: echo -n <<foo>>
|
|
30
|
+
output: a/b/c
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
Test SQL Query strategy: !S::Suite
|
|
4
|
+
|
|
5
|
+
attributes: !S::SqlQuery
|
|
6
|
+
driver : Pg
|
|
7
|
+
host : logo
|
|
8
|
+
database : cuissa_v
|
|
9
|
+
user : cuissa_v
|
|
10
|
+
passwd : ******
|
|
11
|
+
ref_schema: reference
|
|
12
|
+
|
|
13
|
+
contents:
|
|
14
|
+
|
|
15
|
+
- test1:
|
|
16
|
+
query: SELECT * FROM %s.park
|
|
17
|
+
|
|
18
|
+
- test2:
|
|
19
|
+
query: SELECT * FROM %s.park
|
|
20
|
+
my_schema: toto
|
|
21
|
+
|
|
22
|
+
- test3:
|
|
23
|
+
query: SELECT * FROM reference.park
|
|
24
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
Test a TarBall (ball.yml): !S::Package
|
|
4
|
+
url: file://<<pwd>>/../../fixtures/ball/hello.tar.gz
|
|
5
|
+
skip_steps: [ check, distcheck, install ]
|
|
6
|
+
test:
|
|
7
|
+
Test the HelloWorld: !S::Cmd
|
|
8
|
+
command: ./hello
|
|
9
|
+
output: "HelloWorld!\n"
|
|
10
|
+
dir: <<extract_dir>>
|
|
11
|
+
exit: 0
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
Test students tarball with a globbing (glob_stud.yml): !S::Iterate
|
|
4
|
+
over: !pathlist <<pwd>>/../../fixtures/ball/(*)-exit.tar.bz2
|
|
5
|
+
iter: [it_path, it_login]
|
|
6
|
+
# FIXME regexp: !re "/([a-z]*)-[a-z]*\.tar\.bz2"
|
|
7
|
+
test:
|
|
8
|
+
Project of <<it_login>>: !S::Package
|
|
9
|
+
skip_steps: [ check, distcheck, install ]
|
|
10
|
+
url: file://<<it_path>>
|
|
11
|
+
test:
|
|
12
|
+
Test the student exit command: !S::Suite
|
|
13
|
+
attributes: !S::Cmd
|
|
14
|
+
command: "./exit"
|
|
15
|
+
dir: <<extract_dir>>
|
|
16
|
+
timeout: 2
|
|
17
|
+
contents:
|
|
18
|
+
- test exit 0: { args: 0, exit: 0 }
|
|
19
|
+
- test exit 42: { args: 42, exit: 42 }
|
|
20
|
+
- test exit 3: { args: 3, exit: 3 }
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
Test the mini lib: !S::ProbabilityThreshold
|
|
4
|
+
threshold: 0.43
|
|
5
|
+
test: !S::Iterate
|
|
6
|
+
over: !pathlist <<pwd>>/../../fixtures/ball/(*)-mini-lib.tar.bz2
|
|
7
|
+
iter: [it_file, it_name]
|
|
8
|
+
test:
|
|
9
|
+
Testing the mini-lib of <<it_name>>: !S::Suite
|
|
10
|
+
attributes:
|
|
11
|
+
timeout: 4
|
|
12
|
+
symbols:
|
|
13
|
+
driver: <<pwd>>/../../fixtures/mini-lib
|
|
14
|
+
contents:
|
|
15
|
+
|
|
16
|
+
- Extracting: !S::Checkout
|
|
17
|
+
url: file://<<it_file>>
|
|
18
|
+
weight: 0
|
|
19
|
+
fatal: true
|
|
20
|
+
|
|
21
|
+
- Configuring: !S::Configure
|
|
22
|
+
dir: <<extract_dir>>
|
|
23
|
+
weight: 0
|
|
24
|
+
|
|
25
|
+
- Building: !S::Cmd
|
|
26
|
+
command: make
|
|
27
|
+
dir: <<extract_dir>>
|
|
28
|
+
exit: 0
|
|
29
|
+
weight: 0
|
|
30
|
+
verbose_print: true
|
|
31
|
+
fatal: true
|
|
32
|
+
|
|
33
|
+
- Building Driver: !S::Cmd
|
|
34
|
+
command: make STUD_DIR=<<extract_dir>>
|
|
35
|
+
dir: <<driver>>
|
|
36
|
+
exit: 0
|
|
37
|
+
weight: 0
|
|
38
|
+
verbose_print: true
|
|
39
|
+
fatal: true
|
|
40
|
+
|
|
41
|
+
- Tests for the mini lib: !S::Suite
|
|
42
|
+
attributes: !S::Cmd
|
|
43
|
+
command: ./mini-lib-strlen
|
|
44
|
+
dir: <<driver>>
|
|
45
|
+
timeout: 2
|
|
46
|
+
contents:
|
|
47
|
+
- a: { args: 'a', exit: 1 }
|
|
48
|
+
- abcdef: { args: 'abcdef', exit: 6 }
|
|
49
|
+
- empty string: { args: "empty string", exit: 0 }
|
|
50
|
+
- nul string: { args: "the null string", exit: 0 }
|
|
51
|
+
|
|
52
|
+
- Cleaning Driver: !S::Cmd
|
|
53
|
+
command: make clean
|
|
54
|
+
dir: <<driver>>
|
|
55
|
+
exit: 0
|
|
56
|
+
weight: 0
|
|
57
|
+
|
|
58
|
+
- Cleaning Tmp: !S::Clean
|
|
59
|
+
dir: <<extract_dir>>
|
|
60
|
+
weight: 0
|
|
61
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#FIXME: When executing this test suite via the students-suite it never ends and
|
|
2
|
+
# use 100% of cpu. If you execute it alone is quite fast.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Test students tarball (pool_stud.yml): !S::Pool
|
|
6
|
+
|
|
7
|
+
# FIXME remove this assertion when the load will be mutexed.
|
|
8
|
+
# pre_assertion: |
|
|
9
|
+
# Uttk::Strategies::Checkout.name
|
|
10
|
+
# false
|
|
11
|
+
# This test doesn't work for the moment
|
|
12
|
+
|
|
13
|
+
symbols:
|
|
14
|
+
dir: <<pwd>>/../../fixtures/ball
|
|
15
|
+
attributes: !S::Package
|
|
16
|
+
skip_steps: [ check, distcheck, install ]
|
|
17
|
+
test:
|
|
18
|
+
test the student exit command: !S::Suite
|
|
19
|
+
attributes: !S::Cmd
|
|
20
|
+
command: "./exit"
|
|
21
|
+
timeout: 2
|
|
22
|
+
dir: <<extract_dir>>
|
|
23
|
+
contents:
|
|
24
|
+
- test with 0: { args: 0, exit: 0 }
|
|
25
|
+
- test with 42: { args: 42, exit: 42 }
|
|
26
|
+
- test with 3: { args: 3, exit: 3 }
|
|
27
|
+
contents:
|
|
28
|
+
- joe: { url: file://<<dir>>/joe-exit.tar.bz2, weight: 3 }
|
|
29
|
+
- john: { url: file://<<dir>>/john-exit.tar.bz2, weight: 2 }
|
|
30
|
+
- jack: { url: file://<<dir>>/jack-exit.tar.bz2, weight: 1 }
|
|
31
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
Test students tarball (stud.yml): !S::Suite
|
|
4
|
+
attributes: !S::Package
|
|
5
|
+
skip_steps: [ check, distcheck, install ]
|
|
6
|
+
test:
|
|
7
|
+
test the student exit command: !S::Suite
|
|
8
|
+
attributes: !S::Cmd
|
|
9
|
+
command: "./exit"
|
|
10
|
+
timeout: 2
|
|
11
|
+
dir: <<extract_dir>>
|
|
12
|
+
contents:
|
|
13
|
+
- test with 0: { args: 0, exit: 0 }
|
|
14
|
+
- test with 42: { args: 42, exit: 42 }
|
|
15
|
+
- test with 3: { args: 3, exit: 3 }
|
|
16
|
+
contents:
|
|
17
|
+
|
|
18
|
+
- joe: { url: file://<<pwd>>/../../fixtures/ball/joe-exit.tar.bz2, weight: 3 }
|
|
19
|
+
- john: { url: file://<<pwd>>/../../fixtures/ball/john-exit.tar.bz2, weight: 2 }
|
|
20
|
+
- jack: { url: file://<<pwd>>/../../fixtures/ball/jack-exit.tar.bz2, weight: 1 }
|
|
21
|
+
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
GZ= \
|
|
3
|
+
hello
|
|
4
|
+
|
|
5
|
+
BZ2= \
|
|
6
|
+
jack-exit \
|
|
7
|
+
joe-exit \
|
|
8
|
+
john-exit \
|
|
9
|
+
bar_p-mini-lib \
|
|
10
|
+
foo_s-mini-lib \
|
|
11
|
+
joe_i-mini-lib \
|
|
12
|
+
qux_j-mini-lib
|
|
13
|
+
|
|
14
|
+
TARBALLS=$(addsuffix .tar.gz, $(GZ)) $(addsuffix .tar.bz2, $(BZ2))
|
|
15
|
+
|
|
16
|
+
.SUFFIXES: .tar.bz2 .tar.gz
|
|
17
|
+
|
|
18
|
+
%.tar.bz2: %
|
|
19
|
+
tar cvf - $< | bzip2 -z -c > $@
|
|
20
|
+
|
|
21
|
+
%.tar.gz: %
|
|
22
|
+
tar cvzf $@ $<
|
|
23
|
+
|
|
24
|
+
tarballs:: $(TARBALLS)
|
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
RANLIB=ranlib
|
|
2
|
+
|
|
3
|
+
OBJ=my_strlen.o
|
|
4
|
+
|
|
5
|
+
AUTHOR=bar_p
|
|
6
|
+
PROJECT=mini-lib
|
|
7
|
+
DIR=$(AUTHOR)-$(PROJECT)
|
|
8
|
+
TARBALL=$(DIR).tar.bz2
|
|
9
|
+
|
|
10
|
+
all: libmini-lib.a
|
|
11
|
+
|
|
12
|
+
libmini-lib.a: $(OBJ)
|
|
13
|
+
$(AR) cr $@ $(OBJ)
|
|
14
|
+
$(RANLIB) $@
|
|
15
|
+
|
|
16
|
+
clean:
|
|
17
|
+
rm -f *.o *.a
|
|
18
|
+
|
|
19
|
+
dist:
|
|
20
|
+
cd .. && tar cvjf $(TARBALL) $(DIR)
|
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
RANLIB=ranlib
|
|
2
|
+
|
|
3
|
+
OBJ=my_strlen.o
|
|
4
|
+
|
|
5
|
+
AUTHOR=foo_s
|
|
6
|
+
PROJECT=mini-lib
|
|
7
|
+
DIR=$(AUTHOR)-$(PROJECT)
|
|
8
|
+
TARBALL=$(DIR).tar.bz2
|
|
9
|
+
|
|
10
|
+
all: libmini-lib.a
|
|
11
|
+
|
|
12
|
+
libmini-lib.a: $(OBJ)
|
|
13
|
+
$(AR) cr $@ $(OBJ)
|
|
14
|
+
$(RANLIB) $@
|
|
15
|
+
|
|
16
|
+
clean:
|
|
17
|
+
rm -f *.o *.a
|
|
18
|
+
|
|
19
|
+
dist:
|
|
20
|
+
cd .. && tar cvjf $(TARBALL) $(DIR)
|
|
Binary file
|
|
Binary file
|