i added a tool for running parts of our test suite on the cross-compiler. If you update the msil
branch 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 also
in cygwin.
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 found
test/files/pos/bug287.scala [FAILED]
1 out of 1 tests failed.