Fix: support VPATH build for tests
authorDavid Goulet <dgoulet@efficios.com>
Mon, 26 Aug 2013 20:21:18 +0000 (16:21 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 26 Aug 2013 20:21:18 +0000 (16:21 -0400)
Fixes #613

Signed-off-by: David Goulet <dgoulet@efficios.com>
26 files changed:
tests/Makefile.am
tests/regression/Makefile.am
tests/regression/kernel/Makefile.am
tests/regression/tools/filtering/Makefile.am
tests/regression/tools/health/Makefile.am
tests/regression/tools/snapshots/Makefile.am
tests/regression/tools/streaming/Makefile.am
tests/regression/tools/tracefile-limits/Makefile.am
tests/regression/ust/Makefile.am
tests/regression/ust/before-after/Makefile.am
tests/regression/ust/buffers-uid/Makefile.am
tests/regression/ust/daemon/Makefile.am
tests/regression/ust/exit-fast/Makefile.am
tests/regression/ust/fork/Makefile.am
tests/regression/ust/high-throughput/Makefile.am
tests/regression/ust/libc-wrapper/Makefile.am
tests/regression/ust/linking/Makefile.am
tests/regression/ust/low-throughput/Makefile.am
tests/regression/ust/multi-session/Makefile.am
tests/regression/ust/nprocesses/Makefile.am
tests/regression/ust/overlap/Makefile.am
tests/regression/ust/overlap/demo/Makefile.am
tests/regression/ust/periodical-metadata-flush/Makefile.am
tests/stress/Makefile.am
tests/utils/Makefile.am
tests/utils/tap/Makefile.am

index 6d5b00d9a6da78fc196a4a01f6abc461b8f5219a..9d4e0dc0d809fd00ea99085fcc565549a7c40c37 100644 (file)
@@ -13,3 +13,17 @@ endif
 
 dist_noinst_SCRIPTS = run.sh unit_tests fast_regression long_regression root_regression with_bindings_regression
 EXTRA_DIST = run.sh unit_tests fast_regression long_regression root_regression with_bindings_regression
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index ddb737213320c3e354a44dad83d6c1f5012c1f71..53e3e43c2a19b3ee84dbe323e6307bce7dfd2510 100644 (file)
@@ -6,3 +6,16 @@ if HAVE_LIBLTTNG_UST_CTL
 SUBDIRS += ust
 endif # HAVE_LIBLTTNG_UST_CTL
 
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 6b2b89141da5ba562521ccc0dff11a9985e8ee8d..a3afbf8ddbb4f67a6db6c458373542990e418de3 100644 (file)
@@ -1 +1,15 @@
 EXTRA_DIST = test_event_basic test_all_events
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index ca60dbf632d7c90466d8000597231d0e7047e09e..7889c87919b213d2c325609b49ea96cef2b713bb 100644 (file)
@@ -16,3 +16,17 @@ endif
 
 noinst_SCRIPTS = test_unsupported_op test_invalid_filter test_valid_filter
 EXTRA_DIST = test_unsupported_op test_invalid_filter test_valid_filter
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 098fbf421aee5ee9c119b0fc14ecf66cc7ecd6d0..c22d5ee390ab1592583dfe1a93987300a21d81af 100644 (file)
@@ -39,3 +39,17 @@ endif
 
 dist_noinst_SCRIPTS = test_thread_exit test_thread_stall test_tp_fail
 EXTRA_DIST = test_thread_exit test_thread_stall test_tp_fail
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 40cb8e1102b4e6ae14ec1af172c6a2ab642ba78e..66e9ddd318039c50be580a7bc9f61e0e1defe0b8 100644 (file)
@@ -1,2 +1,16 @@
 noinst_SCRIPTS = test_kernel test_kernel_streaming test_ust test_ust_streaming
 EXTRA_DIST = test_kernel test_kernel_streaming test_ust test_ust_streaming
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 050cdeacc0806821c7497b4fb2ba21dc8a17376d..6519670dec128815e561be2725c2c3f4d3913a1b 100644 (file)
@@ -1,2 +1,16 @@
 noinst_SCRIPTS = test_ust test_kernel test_high_throughput_limits
 EXTRA_DIST = test_ust test_kernel test_high_throughput_limits
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index f6ca236108d43f9a816e34ec06a58e83db1b11c4..b9b45c5cb2e84103ea8e0ba371f08473e72f4439 100644 (file)
@@ -1,2 +1,16 @@
 noinst_SCRIPTS = test_tracefile_count test_tracefile_size
 EXTRA_DIST = test_tracefile_count test_tracefile_size
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index dbc9a17c16e415c69431954eeff7765c53061750..b3620c008f44d4081422ca85a9ac2aa3b35243a6 100644 (file)
@@ -5,4 +5,18 @@ SUBDIRS = nprocesses high-throughput low-throughput before-after multi-session \
 
 EXTRA_DIST = test_event_basic test_event_wildcard
 
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
+
 endif
index e37fe96d7cf3525631d89fe2064c126798015f13..9ff98747a98f55bb58fa4b1b3591dc8fd3f18077 100644 (file)
@@ -1,2 +1,16 @@
 noinst_SCRIPTS = test_before_after
 EXTRA_DIST = test_before_after
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 4fefd8052ffa265fa91adf8dd7c813afb040fe70..1925768ba1a2998cc4a8ed7970169b9204a7dbd2 100644 (file)
@@ -1,2 +1,16 @@
 noinst_SCRIPTS = test_buffers_uid
 EXTRA_DIST = test_buffers_uid
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index d457c06430f06f9c37420b326801e71ae5806fe9..76a34ef07eb7cb41a4919dd0eb6ebfd1bd963e45 100644 (file)
@@ -13,3 +13,17 @@ endif
 
 noinst_SCRIPTS = test_daemon test_daemon.py
 EXTRA_DIST = test_daemon test_daemon.py
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index ff47cd9dee56b7b78edfd8982633fcef7e0c3a09..539803d7beb82fcd995345cd88867d03211847bd 100644 (file)
@@ -13,3 +13,17 @@ endif
 
 noinst_SCRIPTS = test_exit-fast test_exit-fast.py
 EXTRA_DIST = test_exit-fast test_exit-fast.py
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 97f134f79ad293c9a4d02d3186a4903307342af1..89a2ec985e972848cf51ae80376340c8c8d6bfea 100644 (file)
@@ -18,3 +18,17 @@ endif
 
 noinst_SCRIPTS = test_fork test_fork.py
 EXTRA_DIST = test_fork test_fork.py
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 544640469df393feb7ed069564767311a615fe9f..6e9c89e14d1e043bc99a2ca2e95fb473441b5676 100644 (file)
@@ -14,3 +14,17 @@ gen_events_LDADD = -llttng-ust
 
 noinst_SCRIPTS = test_high_throughput
 EXTRA_DIST = test_high_throughput
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index af12d31edbc2c8dd6e657c78614943ed1f48a3c5..d35ca81294a23f0487a2b9fb947e30245f33f5e2 100644 (file)
@@ -6,3 +6,17 @@ prog_LDADD = -llttng-ust -llttng-ust-libc-wrapper
 
 noinst_SCRIPTS = test_libc-wrapper test_libc-wrapper.py
 EXTRA_DIST = test_libc-wrapper test_libc-wrapper.py
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index d2c4ecabf5e599770a706057338d5cafc38b575c..9f7ebecb9e8d8d3dbe1de3ae93d29af653c6d99d 100644 (file)
@@ -83,3 +83,17 @@ endif
 
 noinst_SCRIPTS = test_linking test_linking.py demo_preload
 EXTRA_DIST = test_linking test_linking.py demo_preload
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index e62706007a2b097af442fc6adbe676cfe58e8ee6..3eef3ac5edcde95f17c35bbd4a854378b1bec1ca 100644 (file)
@@ -14,3 +14,17 @@ gen_events_LDADD = -llttng-ust -lurcu
 
 noinst_SCRIPTS = test_low_throughput
 EXTRA_DIST = test_low_throughput
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 2d978e593030c82e972265ebaebeabf03756a3bd..6ff204a6628ee831c2cc147c664ff14b663cdda6 100644 (file)
@@ -14,3 +14,17 @@ gen_nevents_LDADD = -llttng-ust
 
 noinst_SCRIPTS = test_multi_session
 EXTRA_DIST = test_multi_session
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 70a4eeabf3441f7ddd12b6492125c21e5c13f091..c8f505501a2a1b7ae2809500a2303f52fbd0ed6a 100644 (file)
@@ -1,2 +1,16 @@
 noinst_SCRIPTS = test_nprocesses
 EXTRA_DIST = test_nprocesses
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 5e0a80467eced8aeb33f0bfe136edabf8c43d691..1adddb542210cbb048c20d951c69acc840336f6d 100644 (file)
@@ -2,3 +2,17 @@ SUBDIRS = demo
 
 noinst_SCRIPTS = test_overlap
 EXTRA_DIST = test_overlap
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 68b6e087f84f506aeaf9137e43bc659ad9f5f0c9..c5e9f92d589334a93cfbc46a07ba4c6ad4248032 100644 (file)
@@ -35,4 +35,18 @@ endif
 
 noinst_SCRIPTS = demo-trace
 EXTRA_DIST = demo-trace
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
 endif
index c020920057672eda74d4868dc4bbecbe54bf8b6e..540cfb504cdd86a71ce427904eb85f8a178a7b7d 100644 (file)
@@ -1,2 +1,16 @@
 noinst_SCRIPTS = test_periodical_metadata_flush
 EXTRA_DIST = test_periodical_metadata_flush
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 2f510f0949fc5952248f6bb450f061edee3f12c1..433d6ad83e0b03c72196b6f671f6ed21cc6dc1b0 100644 (file)
@@ -2,3 +2,17 @@ noinst_SCRIPTS = README launch_ust_app test_multi_sessions_per_uid_10app \
                                 test_multi_sessions_per_uid_5app_streaming
 EXTRA_DIST = README launch_ust_app test_multi_sessions_per_uid_10app \
              test_multi_sessions_per_uid_5app_streaming
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index 931c865bc4efde14469e780d9038756d7f3199aa..b3d5929738f4d8c7d92b929763685ca3cda8c717 100644 (file)
@@ -2,3 +2,17 @@ SUBDIRS = tap testapp
 
 EXTRA_DIST = utils.sh test_utils.py babelstats.pl
 dist_noinst_SCRIPTS = utils.sh test_utils.py babelstats.pl
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
index d3b5b58f18a6bb401294495d04b7f4b6062e4e6e..0e78398feea29b5d359a910048648cb5d38d1074 100644 (file)
@@ -2,3 +2,17 @@ noinst_LTLIBRARIES = libtap.la
 libtap_la_SOURCES = tap.c tap.h
 dist_noinst_SCRIPTS = tap.sh
 EXTRA_DIST = tap.sh
+
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(EXTRA_DIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
This page took 0.035957 seconds and 4 git commands to generate.