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 java
.io
.FileNotFoundException
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
.CtfTmfEvent
;
18 import org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
.CtfTmfTrace
;
21 * Definitions used by all tests using CTF trace files
26 public abstract class CTFTestFiles
{
28 public final static long NANOSECS_PER_SEC
= 1000000000L;
31 * To run these tests, you will need to download the following trace, at:
32 * http://www.dorsal.polymtl.ca/~alexmont/data/trace2.tar.bz2
34 * and extract it in the
35 * .../org.eclipse.linuxtools.lttng2.kernel.core.tests/traces/ directory.
36 * You can also set up a custom path below.
38 public final static String traceFile
= "traces/trace2"; //$NON-NLS-1$
39 public final static long startTime
= 18669367225825L;
41 public static CtfTmfTrace trace
= null;
43 public static CtfTmfTrace
getTestTrace() throws FileNotFoundException
{
45 trace
= new CtfTmfTrace();
46 trace
.initTrace("test-trace2", traceFile
, CtfTmfEvent
.class); //$NON-NLS-1$
This page took 0.032787 seconds and 5 git commands to generate.