Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.kernel.core.tests / src / org / eclipse / linuxtools / lttng2 / kernel / core / tests / stateprovider / CtfTestFiles.java
CommitLineData
efc403bb
AM
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>
e743c3b8 5 *
efc403bb
AM
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
e743c3b8 10 *
efc403bb
AM
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.lttng2.kernel.core.tests.stateprovider;
14
efc403bb
AM
15import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfEvent;
16import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace;
b4f71e4a 17import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
efc403bb
AM
18
19/**
20 * Definitions used by all tests using CTF trace files
e743c3b8 21 *
efc403bb 22 * @author alexmont
e743c3b8 23 *
efc403bb 24 */
e743c3b8 25@SuppressWarnings("javadoc")
dc0f7bfe 26public abstract class CtfTestFiles {
efc403bb
AM
27
28 public final static long NANOSECS_PER_SEC = 1000000000L;
29
30 /*
4e7ad864
AM
31 * To run these tests, you will first need to run the get-traces.sh script
32 * located under lttng/org.eclipse.linuxtools.ctf.core.tests/traces/ .
efc403bb 33 */
4e7ad864 34 public final static String traceFile = "../org.eclipse.linuxtools.ctf.core.tests/traces/trace2"; //$NON-NLS-1$
cc2292bd 35 public final static long startTime = 1331668247314038062L;
1e4bb526 36 public final static long endTime = 1331668259054285979L; /* Expected end time of history */
8020be3c 37
ebd67b34 38 public synchronized static CtfTmfTrace getTestTrace() throws TmfTraceException {
619105f7
AM
39 CtfTmfTrace trace = new CtfTmfTrace();
40 trace.initTrace(null, traceFile, CtfTmfEvent.class);
8020be3c 41 return trace;
efc403bb
AM
42 }
43
44}
This page took 0.028735 seconds and 5 git commands to generate.