/**
* Here are the definitions common to all the CTF parser tests.
- *
+ *
* @author alexmont
*
*/
public abstract class TestParams {
-
- /* Path to test traces */
- private static final String testTracePath1 = "Tests/traces/trace20m"; //$NON-NLS-1$
+
+ /*
+ * Path to test traces. Make sure you run the traces/get-traces.sh script
+ * first!
+ */
+ private static final String testTracePath1 = "traces/kernel"; //$NON-NLS-1$
private static CTFTrace testTrace1 = null;
private static CTFTrace testTraceFromFile1 = null;
-
+ private static final File testTraceFile1 = new File(testTracePath1);
+
private static final File emptyFile = new File(""); //$NON-NLS-1$
private static CTFTrace emptyTrace = null;
-
+
public static File getEmptyFile() {
return emptyFile;
}
-
+
+ public static File getTraceFile(){
+ return testTraceFile1;
+ }
public static CTFTrace getEmptyTrace() {
if (emptyTrace == null) {
try {
} catch (CTFReaderException e) {
/* We know this trace should exist */
throw new RuntimeException(e);
- }
+ }
}
return emptyTrace;
}
-
+
public static CTFTrace createTrace() throws CTFReaderException {
if (testTrace1 == null) {
testTrace1 = new CTFTrace(testTracePath1);