js94065 / scomp

Automatically exported from code.google.com/p/scomp
0 stars 0 forks source link

Commit the Decaf and x86 source files for the translator tests and create the JUnit tests #131

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by codistm...@gmail.com on 26 Sep 2010 at 9:16