-
Notifications
You must be signed in to change notification settings - Fork 17
Plugin | Miniboxing Tests
Vlad Ureche edited this page Jun 11, 2014
·
9 revisions
Tests check the plugin functionality. The are grouped in:
-
<test>.scala
- the test source code, that will be compiled using the plugin -
<test>.flags
- (optional) the flags to be passed to the compiler -
<test>.check
- (optional) a file that indicates the expected output -- any difference causes the test to fail -
<test>.launch
- (optional) used in order to run the compiled program, this file contains the main class and the arguments used in the invocation
Source location: tests/correctness
To run the tests, use sbt:
$ sbt miniboxing-tests/test
Detected sbt version 0.12.2
[info] Loading project definition from /home/mbtest/miniboxing-plugin/project
[info] Set current project to miniboxing (in build file:/home/mbtest/miniboxing-plugin/)
-Xbootclasspath/a:/home/mbtest/miniboxing-plugin/tests/correctness/target/scala-2.10/classes:/home/mbtest/miniboxing-plugin/components/plugin/target/scala-2.10/classes:/home/mbtest/miniboxing-plugin/components/runtime/target/scala-2.10/classes:/home/mbtest/miniboxing-plugin/components/classloader/target/scala-2.10/classes:/home/mbtest/.sbt/boot/scala-2.10.3-SNAPSHOT/lib/scala-library.jar:/home/mbtest/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.10.3-SNAPSHOT.jar:/home/mbtest/.sbt/boot/scala-2.10.3-SNAPSHOT/lib/scala-compiler.jar:/home/mbtest/.ivy2/cache/org.scala-lang/scala-partest/jars/scala-partest-2.10.3-SNAPSHOT.jar
[info] Test run started
[info] Test miniboxing.infrastructure.TestSuite.testCompileOutput started
Picking tests from: /home/mbtest/miniboxing-plugin/components/plugin/target/scala-2.10
Picking tests from: /home/mbtest/miniboxing-plugin/tests/correctness/src/miniboxing/tests/compile
Compiling gh-bug-1.scala ... [ OK ]
Compiling gh-bug-11.scala ... [ OK ]
Compiling gh-bug-18-1.scala ... [ OK ]
Compiling gh-bug-18-2.scala ... [ OK ]
Compiling gh-bug-2.scala ... [ OK ]
Compiling gh-bug-3.scala ... [ OK ]
Compiling gh-bug-4.scala ... [ OK ]
Compiling gh-bug-7.scala ... [ OK ]
Compiling gh-bug-8.scala ... [ OK ]
Compiling gh-bug-9.scala ... [ OK ]
Compiling mb_any_methods.scala ... [ OK ]
Compiling mb_array_ops.scala ... [ OK ]
Compiling mb_benchmarks_array_base.scala ... [ OK ]
Compiling mb_benchmarks_array_separate_compilation.scala ... [ OK ]
Compiling mb_benchmarks_list.scala ... [ OK ]
Compiling mb_breeze_1.scala ... [ OK ]
Compiling mb_inheritance_parents_complex.scala ... [ OK ]
Compiling mb_inheritance_parents_first.scala ... [ OK ]
Compiling mb_inheritance_parents_generic.scala ... [ OK ]
Compiling mb_inheritance_parents_partial1.scala ... [ OK ]
Compiling mb_inheritance_parents_partial2.scala ... [ OK ]
Compiling mb_inheritance_parents_second.scala ... [ OK ]
Compiling mb_inheritance_parents_third.scala ... [ OK ]
Compiling mb_inheritance_parents_trait_first.scala ... [ OK ]
Compiling mb_inheritance_parents_trait_second.scala ... [ OK ]
Compiling mb_library_5.scala ... [ OK ]
Compiling mb_library_6.scala ... [ OK ]
Compiling mb_library_8.scala ... [ OK ]
Compiling mb_locals.scala ... [ OK ]
Compiling mb_nested_class_fifth.scala ... [ OK ]
Compiling mb_nested_class_first.scala ... [ OK ]
Compiling mb_nested_class_forth.scala ... [ OK ]
Compiling mb_nested_class_second.scala ... [ OK ]
Compiling mb_nested_class_third.scala ... [ OK ]
Compiling mb_normalize_1.scala ... [ OK ]
Compiling mb_normalize_2.scala ... [ OK ]
Compiling mb_normalize_3.scala ... [ OK ]
Compiling mb_normalize_4.scala ... [ OK ]
Compiling mb_normalize_5.scala ... [ OK ]
Compiling mb_normalize_6.scala ... [ OK ]
Compiling mb_normalize_7.scala ... [ OK ]
Compiling mb_normalize_8.scala ... [ OK ]
Compiling mb_normalize_9.scala ... [ OK ]
Compiling mb_optimized_spec.scala ... [ OK ]
Compiling mb_override_1.scala ... [ OK ]
Compiling mb_override_2.scala ... [ OK ]
Compiling mb_override_3.scala ... [ OK ]
Compiling mb_override_4.scala ... [ OK ]
Compiling mb_override_5.scala ... [ OK ]
Compiling mb_override_6.scala ... [ OK ]
Compiling mb_override_7.scala ... [ OK ]
Compiling mb_partial_specialization_basic.scala ... [ OK ]
Compiling mb_rewire_method.scala ... [ OK ]
Compiling mb_rewire_method_advanced.scala ... [ OK ]
Compiling mb_rewire_new.scala ... [ OK ]
Compiling mb_rewire_spire.scala ... [ OK ]
Compiling mb_rewire_val.scala ... [ OK ]
Compiling mb_signatures.scala ... [ OK ]
Compiling mb_spec_hijack_1.scala ... [ OK ]
Compiling mb_spec_hijack_2.scala ... [ OK ]
Compiling mb_spire_1.scala ... [ OK ]
Compiling mb_spire_10.scala ... [ OK ]
Compiling mb_spire_13.scala ... [ OK ]
Compiling mb_spire_14.scala ... [ OK ]
Compiling mb_spire_2.scala ... [ OK ]
Compiling mb_spire_3.scala ... [ OK ]
Compiling mb_spire_4.scala ... [ OK ]
Compiling mb_spire_5.scala ... [ OK ]
Compiling mb_spire_6.scala ... [ OK ]
Compiling mb_spire_7.scala ... [ OK ]
Compiling mb_spire_8.scala ... [ OK ]
Compiling mb_tparams_basic.scala ... [ OK ]
Compiling mb_tparams_rewire_method.scala ... [ OK ]
Compiling mb_tparams_rewire_new.scala ... [ OK ]
[info] Test run finished: 0 failed, 0 ignored, 1 total, 36.324s
[info] Passed: : Total 1, Failed 0, Errors 0, Passed 1, Skipped 0
[success] Total time: 38 s, completed 14 août 2013 00:33:59
All these tests are executed on each push to the repository by Travis CI: