This page is no longer maintained — Please continue to the home page at www.scala-lang.org

msiltest

1 reply
rytz
Joined: 2008-07-01,
User offline. Last seen 45 weeks 5 days ago.
Hi Miguel,
i added a tool for running parts of our test suite on the cross-compiler. If you update the msilbranch you'll find it in "test/msiltest". It can run "pos", "neg" and "run" tests.
Please let me know if running the tool works for you. it runs only on linux / mac. Maybe alsoin cygwin.
The source is in https://lampsvn.epfl.ch/svn-repos/scala/msiltest/trunk
Cheers: Lukas



lamppc11:msil luc$ test/msiltest --help msiltest [--help] [--testdir path] [--scalaccmd file] [--ilasmcmd file] [--monocmd file] [--monopath path] [--diffcmd file] [--debug] [--show-log] [--show-diff] [--pos] [--neg] [--run] [--all] [testfiles]


lamppc11:msil luc$ test/msiltest test/files/pos/bug262.scala running 1 tests with settings
--diffcmd diff--monocmd mono --scalaccmd /Users/luc/scala/msil/test/../build/msil-pack/bin/scalac-net--monopath /Users/luc/scala/msil/test/../build/msil-pack/lib --ilasmcmd ilasm--testdir /Users/luc/scala/msil/test
test files: test/files/pos/bug262.scala
test/files/pos/bug262.scala                                                    [  OK  ] all tests passed.


lamppc11:msil luc$ test/msiltest test/files/run/absoverride.scala --debug running 1 tests with settings
--diffcmd diff --debug--testdir /Users/luc/scala/msil/test --monocmd mono--scalaccmd /Users/luc/scala/msil/test/../build/msil-pack/bin/scalac-net --monopath /Users/luc/scala/msil/test/../build/msil-pack/lib--ilasmcmd ilasm
test files: test/files/run/absoverride.scala
[msiltest] [debug:compile] /Users/luc/scala/msil/test/../build/msil-pack/bin/scalac-net  -d /Users/luc/scala/msil/test/msiltest.out absoverride.scala [msiltest] [debug:ilasm] ilasm /exe /output:test.exe /Users/luc/scala/msil/test/msiltest.out/absoverride.msil /Users/luc/scala/msil/test/msiltest.out/Test.msil [msiltest] [debug:execute] mono test.exe msil[msiltest] [debug:diff] diff /Users/luc/scala/msil/test/files/run/absoverride-msil.check /Users/luc/scala/msil/test/files/run/absoverride.log test/files/run/absoverride.scala                                               [  OK  ]all tests passed.



lamppc11:msil luc$ test/msiltest test/files/pos/bug287.scala --show-log running 1 tests with settings
--ilasmcmd ilasm --testdir /Users/luc/scala/msil/test--scalaccmd /Users/luc/scala/msil/test/../build/msil-pack/bin/scalac-net --show-log--monocmd mono--diffcmd diff --monopath /Users/luc/scala/msil/test/../build/msil-pack/lib
test files: test/files/pos/bug287.scala
bug287.scala:2: error: not found: value java  class mystream extends java.io.BufferedOutputStream(new java.io.FileOutputStream("/dev/null")) {                          ^bug287.scala:2: error: too many arguments for constructor Object: ()System.Object   class mystream extends java.io.BufferedOutputStream(new java.io.FileOutputStream("/dev/null")) {                 ^ bug287.scala:7: error: value write is not a member of AnyRef with ScalaObject      super.write( foo ); // error             ^bug287.scala:9: error: value write is not a member of AnyRef with ScalaObject       super.write( foo, 0, foo.length ); // this works however            ^ four errors foundtest/files/pos/bug287.scala                                                    [FAILED] 1 out of 1 tests failed.


rytz
Joined: 2008-07-01,
User offline. Last seen 45 weeks 5 days ago.
Re: msiltest

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland