Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/SLSimpleTestSuite.java @ 13961:4eda2fa64da6
SL: Run test as part of "mx unittest"
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Sat, 15 Feb 2014 08:00:16 -0800 |
parents | 030e75d4d7dc |
children |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/SLSimpleTestSuite.java Sat Feb 15 07:59:48 2014 -0800 +++ b/graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/SLSimpleTestSuite.java Sat Feb 15 08:00:16 2014 -0800 @@ -22,6 +22,7 @@ */ package com.oracle.truffle.sl.test; +import org.junit.*; import org.junit.runner.*; @RunWith(SLTestRunner.class) @@ -32,4 +33,11 @@ SLTestRunner.runInMain(SLSimpleTestSuite.class, args); } + /* + * Our "mx unittest" command looks for methods that are annotated with @Test. By just defining + * an empty method, this class gets included and the test suite is properly executed. + */ + @Test + public void unittest() { + } }