1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
3 * Copyright (c) 2010, 2011 École Polytechnique de Montréal
4 * Copyright (c) 2010, 2011 Alexandre Montplaisir <alexandre.montplaisir@gmail.com>
6 * All rights reserved. This program and the accompanying materials are
7 * made available under the terms of the Eclipse Public License v1.0 which
8 * accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.lttng2
.kernel
.core
.tests
.stateprovider
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
.CtfTmfEvent
;
16 import org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
.CtfTmfTrace
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.exceptions
.TmfTraceException
;
20 * Definitions used by all tests using CTF trace files
25 public abstract class CtfTestFiles
{
27 public final static long NANOSECS_PER_SEC
= 1000000000L;
30 * To run these tests, you will first need to run the get-traces.sh script
31 * located under lttng/org.eclipse.linuxtools.ctf.core.tests/traces/ .
33 public final static String traceFile
= "../org.eclipse.linuxtools.ctf.core.tests/traces/trace2"; //$NON-NLS-1$
34 public final static long startTime
= 1331668247314038062L;
35 public final static long endTime
= 1331668259054285979L; /* Expected end time of history */
37 private static CtfTmfTrace trace
= null;
39 public synchronized static CtfTmfTrace
getTestTrace() throws TmfTraceException
{
41 trace
= new CtfTmfTrace();
42 trace
.initTrace(null, traceFile
, CtfTmfEvent
.class);
This page took 0.030511 seconds and 5 git commands to generate.