<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="Tests"/>
<classpathentry combineaccessrules="false" kind="src" path="/org.eclipse.linuxtools.ctf.core"/>
<classpathentry kind="output" path="bin"/>
</classpath>
javaCompiler...args
build.xml
target
-Tests/traces
+++ /dev/null
-/kernel-1
-/kernel-3
-/trace20m
-/kernel.txt
-/kernel-2
+++ /dev/null
-#!/bin/bash
-
-if [ $EUID -ne 0 ]
-then
- echo "Must be run as root"
- exit
-fi
-
-if [ $# -ne 2 ]
-then
- echo "Need 2 arguments, the output folder and the size in MB.";
- exit
-fi
-
-path=$1
-size=$2
-
-if [ -d $path ]; then
- echo "Directory already exists, aborting."
- exit 1
-fi
-
-lttng create -o "$path"
-
-lttng enable-event -k -a
-
-lttng start
-
-echo "Trace started. Do something to generate events."
-
-while [ $(du --summarize "$path" | cut -f 1) -lt $(($size * 1024)) ]
-do
- sleep 1
-done
-
-lttng stop
-
-lttng destroy
-
-echo "Final size : " $(du -sh $path)
-
-if [ -n "$SUDO_USER" ]; then
- user=$SUDO_USER
- group=$(id -ng $user)
-
- while true; do
- read -p "Do 'chown -Rv $user:$group $path' ? [y/n]" yesno
- case $yesno in
- [Yy]* )
- chown -Rv $user:$group $path
- break;
- ;;
- [Nn]* )
- break;
- ;;
- esac
- done
-fi
-
+++ /dev/null
-wget http://nova.polymtl.ca/~simark/trace100m.tgz -O- | tar -xvzf -
+++ /dev/null
-wget http://nova.polymtl.ca/~simark/trace20m.tgz -O- | tar -xvzf -
bin.includes = META-INF/,\
plugin.properties,\
- Tests/
+ traces/
*/
public abstract class TestParams {
- /* Path to test traces */
- private static final String testTracePath1 = "Tests/traces/trace20m1"; //$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;
--- /dev/null
+/kernel
+/trace2
--- /dev/null
+#!/bin/sh
+#This small script will download the traces needed to run some tests.
+
+# Trace used by the CTF plugin unit tests
+wget http://lttng.org/files/samples/sample-ctf-trace-20120412.tar.bz2 -O- | tar xvjf - &&
+
+# Trace used by the lttng2 kernel state provider tests
+wget http://www.dorsal.polymtl.ca/~alexmont/data/trace2.tar.bz2 -O- | tar xvjf -