SUBDIRS = utils bin lib
-EXTRA_DIST = $(srcdir)/ctf-traces/** tests
-if ENABLE_DEBUGINFO
-EXTRA_DIST += $(srcdir)/debuginfo-data/** tests_debuginfo
-endif
-
-SCRIPT_LIST = run.sh
-
-dist_noinst_SCRIPTS = $(SCRIPT_LIST)
+LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
+ $(top_srcdir)/config/tap-driver.sh
-all-local:
- @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
- for script in $(SCRIPT_LIST); do \
- cp -f $(srcdir)/$$script $(builddir); \
- done; \
- fi
+TESTS = bin/test_trace_read \
+ bin/test_trace_read \
+ bin/test_packet_seq_num \
+ bin/test_intersection \
+ lib/test_bitfield \
+ lib/test_seek_empty_packet \
+ lib/test_seek_big_trace \
+ lib/test_ctf_writer_complete
-clean-local:
- @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
- for script in $(SCRIPT_LIST); do \
- rm -f $(builddir)/$$script; \
- done; \
- fi
+EXTRA_DIST = $(srcdir)/ctf-traces/** \
+ $(srcdir)/debuginfo-data/**
-TEMPLIST := $(shell mktemp -u)
-check-am:
- @cat $(srcdir)/tests > $(TEMPLIST)
if ENABLE_DEBUGINFO
- @echo '' >> $(TEMPLIST)
- @cat $(srcdir)/tests_debuginfo >> $(TEMPLIST)
+TESTS += lib/test_dwarf_complete \
+ lib/test_bin_info_complete
endif
- ./run.sh $(TEMPLIST)
- rm $(TEMPLIST)
+++ /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