From df8055c632bc8c8445f9209f65cca76edf73cf14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 21 Feb 2013 17:05:39 -0500 Subject: [PATCH] Remove outdated test-nevents test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- .gitignore | 1 - tests/runtests | 2 -- tests/test-nevents/Makefile.am | 5 ---- tests/test-nevents/prog.c | 38 ------------------------------ tests/test-nevents/test-nevents.sh | 34 -------------------------- 5 files changed, 80 deletions(-) delete mode 100644 tests/test-nevents/Makefile.am delete mode 100644 tests/test-nevents/prog.c delete mode 100755 tests/test-nevents/test-nevents.sh diff --git a/.gitignore b/.gitignore index acdcd739..d50ff3a8 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/tests/runtests b/tests/runtests index 30f1a645..6a7b6e0e 100755 --- a/tests/runtests +++ b/tests/runtests @@ -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 index 2af5510e..00000000 --- a/tests/test-nevents/Makefile.am +++ /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 index 6d6ba96d..00000000 --- a/tests/test-nevents/prog.c +++ /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 -#include -#include - -#define N_ITER 100000 - -int main() -{ - int i; - - for(i=0; i. - -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" -- 2.34.1