\r
import org.springframework.context.ApplicationContext;\r
\r
+import org.apache.commons.logging.Log;\r
+import org.apache.commons.logging.LogFactory;\r
import org.apache.tools.ant.Project;\r
\r
import junit.framework.TestCase;\r
\r
/** High level tests for SLC Ant. */\r
public class TestAntBuild extends TestCase {\r
+ private static Log log = LogFactory.getLog(TestAntBuild.class);\r
+\r
/** Tests an end-to-end Ant run. */\r
public void testAllRunSimple() {\r
- File[] reportFiles = new File("src/test/slc/work/results/report/")\r
- .listFiles();\r
+ String slcBase = System.getProperty("it.slc.base");\r
+ File slcBaseDir = new File(slcBase).getAbsoluteFile();\r
+ log.info("SLC base: " + slcBaseDir);\r
+\r
+ String reportDirPath = slcBaseDir.getPath() + "/work/results/report/";\r
+ File[] reportFiles = new File(reportDirPath).listFiles();\r
for (File file : reportFiles) {\r
file.delete();\r
}\r
\r
- File slcBaseDir = new File("./src/test/slc").getAbsoluteFile();\r
-\r
File antFile = new File(slcBaseDir.getPath()\r
+ "/root/Category1/SubCategory2/build.xml");\r
Project p = AntRegistryUtil.runAll(antFile);\r
TestStatus.FAILED,\r
"Compare eu-reform-expected.txt with eu-reform-reached.txt");\r
\r
- String reportDirPath = "src/test/slc/work/results/report/";\r
assertTrue(new File(reportDirPath + "index.html").exists());\r
assertTrue(new File(reportDirPath + "slc-resultsList.html").exists());\r
assertTrue(new File(reportDirPath + "slc-result-1.html").exists());\r