*.swp
*.o
*.swo
+*.trs
+*.log
Makefile
.libs/
.deps/
tests/ust-elf/test_ust_elf
tests/benchmark/bench1
tests/benchmark/bench2
+tests/ctf-types/ctf-types
+tests/test-app-ctx/hello
# Java agent library
*.class
dist_doc_DATA = README.md ChangeLog
dist_noinst_DATA = CodingStyle
+
+check-loop:
+ cd tests && $(MAKE) $(AM_MAKEFLAGS) check-loop
+.PHONY: check-loop
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_SRCDIR([include/lttng/tracepoint.h])
+AC_REQUIRE_AUX_FILE([tap-driver.sh])
+
# Configuration options, which will be installed in the config.h
AC_CONFIG_HEADERS([config.h include/lttng/ust-config.h])
AH_TEMPLATE([LTTNG_UST_HAVE_EFFICIENT_UNALIGNED_ACCESS], [Use efficient unaligned access.])
SUBDIRS += hello.cxx
endif
-SCRIPT_LIST = test_loop run.sh unit_tests
+LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
+ $(top_srcdir)/config/tap-driver.sh
-dist_noinst_SCRIPTS = $(SCRIPT_LIST)
+TESTS = snprintf/test_snprintf \
+ ust-elf/test_ust_elf
-all-local:
- @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
- for script in $(SCRIPT_LIST); do \
- cp -f $(srcdir)/$$script $(builddir); \
- done; \
- fi
+check-loop:
+ while [ 0 ]; do \
+ $(MAKE) $(AM_MAKEFLAGS) check; \
+ if [ "$$?" != "0" ]; then \
+ break; \
+ fi \
+ done
-clean-local:
- @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
- for script in $(SCRIPT_LIST); do \
- rm -f $(builddir)/$$script; \
- done; \
- fi
-
-check-am:
- ./run.sh unit_tests
+.PHONY: check-loop
Using the ust test suite.
Running
- ./run.sh unit_tests
+ make check
runs all the tests once.
Running
- ./test_loop
+ make check-loop
runs the test in a loop. This is useful to check for errors that would not
always happen.
+++ /dev/null
-#!/bin/bash
-#
-# Copyright (C) 2013 - Christian Babeux <christian.babeux@efficios.com>
-#
-# This program 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; only version 2
-# of the License.
-#
-# This program 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 this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-
-[ -z "$1" ] && echo "Error: No testlist. Please specify a testlist to run." && exit 1
-
-prove --merge --exec '' - < $1
+++ /dev/null
-#!/bin/bash
-
-DIR=$(dirname $0)
-
-while [ 0 ]; do
- $DIR/run.sh $DIR/unit_tests
- if [ "$?" != "0" ]; then
- break;
- fi
-done
-
-echo "$0: ********* STOPPED BECAUSE OF ERROR *********"
+++ /dev/null
-snprintf/test_snprintf
-ust-elf/test_ust_elf