Skip to content
Snippets Groups Projects
Commit ec2b7edb authored by Guy Zana's avatar Guy Zana
Browse files

java: integrate all elf tests with the cli test command

parent c250f9ce
No related branches found
No related tags found
No related merge requests found
package com.cloudius.cli.tests;
import java.io.File;
import java.util.HashMap;
import com.cloudius.cli.main.RhinoCLI;
......@@ -46,9 +47,25 @@ public class TestRunner extends ScriptableObject {
return rc;
}
public void registerELFTests() {
File dir = new File("/tests");
File[] files = dir.listFiles();
for (File f: files) {
try {
if (f.getName().contains(".so")) {
this.register(f.getName(),
new TestELF(f.getCanonicalPath().toString()));
}
} catch (Exception ex) {
// Do nothing
}
}
}
@JSFunction
public void registerAllTests() {
this.register("TCPEchoServerTest", new TCPEchoServerTest());
this.registerELFTests();
}
@JSFunction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment