Remove outdated test-nevents test
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 21 Feb 2013 22:05:39 +0000 (17:05 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Mar 2013 15:22:02 +0000 (11:22 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
.gitignore
tests/runtests
tests/test-nevents/Makefile.am [deleted file]
tests/test-nevents/prog.c [deleted file]
tests/test-nevents/test-nevents.sh [deleted file]

index acdcd73956e9c2b5f966af794e57c2cbd0c4206b..d50ff3a894a5cf070a8ef5d9cdf2ff6ff9eda957 100644 (file)
@@ -42,7 +42,6 @@ tests/same_line_marker/same_line_marker
 tests/ust-basic-tracing/ust-basic-tracing
 tests/ust-multi-test/ust-multi-test
 tests/test-libustinstr-malloc/prog
-tests/test-nevents/prog
 tests/trace_event/trace_event_test
 tests/tracepoint/benchmark/tracepoint_benchmark
 tests/tracepoint/tracepoint_test
index 30f1a64593f717e56c606c694f06f011b805bd27..6a7b6e0e7692e89fe17d19723e41ef2486b6458b 100755 (executable)
@@ -29,8 +29,6 @@ function simple_harness_run() {
 }
 
 
-simple_harness_run test-nevents/test-nevents.sh
-
 simple_harness_run fork/fork.sh
 
 simple_harness_run test-libustinstr-malloc/test-libustinstr-malloc.sh
diff --git a/tests/test-nevents/Makefile.am b/tests/test-nevents/Makefile.am
deleted file mode 100644 (file)
index 2af5510..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-AM_CPPFLAGS = -I$(top_srcdir)/include
-
-noinst_PROGRAMS = prog
-prog_SOURCES = prog.c
-prog_LDADD = $(top_builddir)/libust/libust.la $(top_builddir)/libust-initializer.o
diff --git a/tests/test-nevents/prog.c b/tests/test-nevents/prog.c
deleted file mode 100644 (file)
index 6d6ba96..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Copyright (C) 2009  Pierre-Marc Fournier
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
- */
-
-/* This test generates a trace of a certain number of events. It is used to
- * check that no events are lost while tracing.
- */
-
-#include <string.h>
-#include <stdlib.h>
-#include <ust/marker.h>
-
-#define N_ITER 100000
-
-int main()
-{
-       int i;
-
-       for(i=0; i<N_ITER; i++) {
-               ust_marker(an_event, "%d", i);
-               ust_marker(another_event, "%s", "Hello, World!");
-       }
-
-       return 0;
-}
diff --git a/tests/test-nevents/test-nevents.sh b/tests/test-nevents/test-nevents.sh
deleted file mode 100755 (executable)
index 2a7a98a..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2010 Ericsson AB
-#
-#    This file is part of LTTng-UST.
-#
-#    LTTng-UST is free software: you can redistribute it and/or modify
-#    it under the terms of the GNU General Public License as published by
-#    the Free Software Foundation, either version 3 of the License, or
-#    (at your option) any later version.
-#
-#    LTTng-UST is distributed in the hope that it will be useful,
-#    but WITHOUT ANY WARRANTY; without even the implied warranty of
-#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-#    GNU General Public License for more details.
-#
-#    You should have received a copy of the GNU General Public License
-#    along with LTTng-UST.  If not, see <http://www.gnu.org/licenses/>.
-
-TESTDIR=$(dirname $0)/..
-
-source $TESTDIR/test_functions.sh
-source $TESTDIR/tap.sh
-
-starttest "Test-nevents"
-
-plan_tests 4
-USTTRACE="$TESTDIR/../usttrace"
-
-okx $USTTRACE -L $TESTDIR/test-nevents/prog
-trace_loc=$($USTTRACE -W)
-trace_matches -N "an_event" -n 100000 "^ust.an_event:" $trace_loc
-trace_matches -N "another_event" -n 100000 "^ust.another_event:" $trace_loc
-check_trace_logs "$trace_loc"
This page took 0.027051 seconds and 4 git commands to generate.