I suggest to put the test files in the test packages (eg: scomp.decaf.data and
scomp.x86.data).
The JUnit tests for Mac OS X, Linux and Windows could share a common base by
taking advantage of the files names.
For instance, AbstractTranslatorTestBase would contain a method testSimple()
which would call an abstract getOSName() to create the full name "simple_<OS
name>.s".
(<OS name> = "macosx", "linux" or "windows").
The test itself would read "simple.decaf", create the x86 tree and convert it
into a multiline string; this string could then be compared to a string
obtained by removing the comments and empty lines from "simple_<OS name>.s".
Original issue reported on code.google.com by codistm...@gmail.com on 26 Sep 2010 at 7:32
Original issue reported on code.google.com by
codistm...@gmail.com
on 26 Sep 2010 at 7:32