mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Adds test scripts to deploy, run and retrieve results from integration tests.
Adds a simple script for jenkins to run to retrieve the test results from. Adds a script that allows developers to download and run tests from a specific language easily. Adds a script that allows the tests to be run from within an ssh session on the roborio. Change-Id: Ibe6ddc4e1dcbb8192e6552c3901e96f6907a8020
This commit is contained in:
@@ -24,20 +24,6 @@ import org.apache.tools.ant.taskdefs.optional.junit.JUnitTest;
|
||||
*/
|
||||
public class AntJunitLanucher {
|
||||
|
||||
/**
|
||||
* Deletes the given file recursively
|
||||
*
|
||||
* @param f
|
||||
* the file to delete
|
||||
*/
|
||||
static void deleteFile(File f) {
|
||||
if (f.isDirectory()) {
|
||||
for (File c : f.listFiles())
|
||||
deleteFile(c);
|
||||
}
|
||||
f.delete();
|
||||
}
|
||||
|
||||
public static void main(String... args) {
|
||||
if (args.length == 0) {
|
||||
String path = String.format("%s/%s",
|
||||
@@ -46,9 +32,6 @@ public class AntJunitLanucher {
|
||||
Project project = new Project();
|
||||
|
||||
try {
|
||||
// Delete the the old test directory if it exists
|
||||
deleteFile(new File(pathToReports));
|
||||
|
||||
// Create the file to store the test output
|
||||
new File(pathToReports).mkdirs();
|
||||
JUnitTask task = new JUnitTask();
|
||||
|
||||
Reference in New Issue
Block a user