Skip to content

Plugin | Miniboxing Tests

Vlad Ureche edited this page Jun 12, 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
[info] Loading project definition from /mnt/data1/Work/Workspace/dev/miniboxing-plugin/project
[info] Set current project to miniboxing (in build file:/mnt/data1/Work/Workspace/dev/miniboxing-plugin/)
[info] Test run started
[info] Test miniboxing.infrastructure.TestSuite.testCompileOutput started
Picking tests from: /mnt/data1/Work/Workspace/dev/miniboxing-plugin/tests/correctness/../../components/plugin/target/scala-2.11
Picking tests from: /mnt/data1/Work/Workspace/dev/miniboxing-plugin/tests/correctness/resources/miniboxing/tests/compile
Compiling collections-2way.scala                                       ... [ OK ]
Compiling collections-no-spec.scala                                    ... [ OK ]
Compiling collections.scala                                            ... [ OK ]
Compiling gh-bug-1.scala                                               ... [ OK ]
Compiling gh-bug-102.scala                                             ... [ OK ]
Compiling gh-bug-11.scala                                              ... [ OK ]
Compiling gh-bug-18-nested-class-override-1.scala                      ... [ OK ]
Compiling gh-bug-18-nested-class-override-2.scala                      ... [ OK ]
Compiling gh-bug-2.scala                                               ... [ OK ]
Compiling gh-bug-3.scala                                               ... [ OK ]
Compiling gh-bug-36.scala                                              ... [ OK ]
Compiling gh-bug-37.scala                                              ... [ OK ]
Compiling gh-bug-39.scala                                              ... [ OK ]
Compiling gh-bug-4.scala                                               ... [ OK ]
Compiling gh-bug-51.scala                                              ... [ OK ]
Compiling gh-bug-53-1.scala                                            ... [ OK ]
Compiling gh-bug-53-2.scala                                            ... [ OK ]
Compiling gh-bug-53-3.scala                                            ... [ OK ]
Compiling gh-bug-55.scala                                              ... [ OK ]
Compiling gh-bug-60.scala                                              ... [ OK ]
Compiling gh-bug-61.scala                                              ... [ OK ]
Compiling gh-bug-63.scala                                              ... [ OK ]
Compiling gh-bug-64-workaround-full.scala                              ... [ OK ]
Compiling gh-bug-64-workaround.scala                                   ... [ OK ]
Compiling gh-bug-64.scala                                              ... [ OK ]
Compiling gh-bug-69.scala                                              ... [ OK ]
Compiling gh-bug-7.scala                                               ... [ OK ]
Compiling gh-bug-71.scala                                              ... [ OK ]
Compiling gh-bug-74.scala                                              ... [ OK ]
Compiling gh-bug-75.scala                                              ... [ OK ]
Compiling gh-bug-76.scala                                              ... [ OK ]
Compiling gh-bug-8.scala                                               ... [ OK ]
Compiling gh-bug-82-1.scala                                            ... [ OK ]
Compiling gh-bug-82-2.scala                                            ... [ OK ]
Compiling gh-bug-82-3.scala                                            ... [ OK ]
Compiling gh-bug-83-1.scala                                            ... [ OK ]
Compiling gh-bug-83-2.scala                                            ... [ OK ]
Compiling gh-bug-84.scala                                              ... [ OK ]
Compiling gh-bug-85-full.scala                                         ... [ OK ]
Compiling gh-bug-85-reduced.scala                                      ... [ OK ]
Compiling gh-bug-88.scala                                              ... [ OK ]
Compiling gh-bug-89.scala                                              ... [ OK ]
Compiling gh-bug-9.scala                                               ... [ OK ]
Compiling gh-bug-90.scala                                              ... [ OK ]
Compiling gh-bug-91.scala                                              ... [ OK ]
Compiling gh-bug-93-full.scala                                         ... [ OK ]
Compiling gh-bug-93-partial.scala                                      ... [ OK ]
Compiling gh-bug-93-red.scala                                          ... [ OK ]
Compiling gh-bug-93-red2.scala                                         ... [ OK ]
Compiling gh-bug-93-red3.scala                                         ... [ OK ]
Compiling gh-bug-93.scala                                              ... [ OK ]
Compiling gh-bug-94.scala                                              ... [ OK ]
Compiling gh-bug-95.scala                                              ... [ OK ]
Compiling gh-bug-98.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_base.scala                      ... [ OK ]
Compiling mb_benchmarks_list.scala                                     ... [ OK ]
Compiling mb_breeze_1.scala                                            ... [ OK ]
Compiling mb_breeze_2.scala                                            ... [ OK ]
Compiling mb_breeze_3.scala                                            ... [ OK ]
Compiling mb_caseclass_1.scala                                         ... [ OK ]
Compiling mb_duplicator_tpar_si_7626.scala                             ... [ OK ]
Compiling mb_erasure_torture1.scala                                    ... [ OK ]
Compiling mb_erasure_torture10.scala                                   ... [ OK ]
Compiling mb_erasure_torture11.scala                                   ... [ OK ]
Compiling mb_erasure_torture12.scala                                   ... [ OK ]
Compiling mb_erasure_torture2.scala                                    ... [ OK ]
Compiling mb_erasure_torture3.scala                                    ... [ OK ]
Compiling mb_erasure_torture4.scala                                    ... [ OK ]
Compiling mb_erasure_torture5.scala                                    ... [ OK ]
Compiling mb_erasure_torture6.scala                                    ... [ OK ]
Compiling mb_erasure_torture7.scala                                    ... [ OK ]
Compiling mb_erasure_torture8.scala                                    ... [ OK ]
Compiling mb_erasure_torture9.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_7_1.scala                                         ... [ OK ]
Compiling mb_library_7_2.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_sixth.scala                                  ... [ OK ]
Compiling mb_nested_class_third.scala                                  ... [ OK ]
Compiling mb_nested_specialization_1.scala                             ... [ OK ]
Compiling mb_nested_specialization_2.scala                             ... [ OK ]
Compiling mb_nested_specialization_3.scala                             ... [ OK ]
Compiling mb_nested_specialization_4.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_old_annot.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_11.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_4_1.scala                                           ... [ OK ]
Compiling mb_spire_4_2.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_super_1.scala                                             ... [ OK ]
Compiling mb_tparams_basic.scala                                       ... [ OK ]
Compiling mb_tparams_rewire_method.scala                               ... [ OK ]
Compiling mb_tparams_rewire_new.scala                                  ... [ OK ]
Compiling tutorial.scala                                               ... [ OK ]

  147 tests ran, all good :)

[info] Test run finished: 0 failed, 0 ignored, 1 total, 42.132s
[info] Passed: Total 1, Failed 0, Errors 0, Passed 1
[success] Total time: 43 s, completed Jun 12, 2014 1:07:14 AM

All these tests are executed on each push to the repository by Travis CI:

Next Steps

You can continue with the following resources: