Improve test cases, speed and accuracy.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core.tests / src / org / eclipse / linuxtools / ctf / core / tests / TestParams.java
index cf3dbc61e4e1ab5eca896337c263d25c6fd5fb5e..ede840ab360d93cb800de45002046b445b107ee4 100644 (file)
@@ -7,24 +7,31 @@ import org.eclipse.linuxtools.ctf.core.trace.CTFTrace;
 
 /**
  * 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 {
@@ -32,11 +39,11 @@ public abstract class TestParams {
             } 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);
This page took 0.023989 seconds and 5 git commands to generate.