[lttng-dev] [PATCH babeltrace] Fix: test: add automake variable for test trace folders copy on oot build

Jonathan Rajotte jonathan.rajotte-julien at efficios.com
Fri Feb 20 10:55:25 EST 2015


Reported-by: Simon Marchi <simon.marchi at polymtl.ca>
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien at efficios.com>
---
 tests/Makefile.am | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 2e307f4..03d8b12 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -2,7 +2,9 @@ SUBDIRS = utils bin lib
 
 EXTRA_DIST = ctf-traces/** tests
 
-SCRIPT_LIST = run.sh
+SCRIPT_LIST = run.sh tests
+
+TRACE_FOLDER = ctf-traces
 
 dist_noinst_SCRIPTS = $(SCRIPT_LIST)
 
@@ -11,6 +13,9 @@ all-local:
 		for script in $(SCRIPT_LIST); do \
 			cp -f $(srcdir)/$$script $(builddir); \
 		done; \
+		for script in $(TRACE_FOLDER); do \
+			cp -a $(srcdir)/$$script $(builddir); \
+		done; \
 	fi
 
 clean-local:
@@ -18,6 +23,9 @@ clean-local:
 		for script in $(SCRIPT_LIST); do \
 			rm -f $(builddir)/$$script; \
 		done; \
+		for script in $(TRACE_FOLDER); do \
+			rm -rf $(builddir)/$$script; \
+		done; \
 	fi
 
 check-am:
-- 
1.9.1




More information about the lttng-dev mailing list