Skip to contentSkip to conversation

Fix: test: add automake variable for test trace folders copy on oot build

PATCH New Jonathan Rajotte 1 participant 1 message Feb 20, 2015 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 Fix: test: add automake variable for test trace folders copy on oot build

In reply to a message not in the archive
---
 tests/Makefile.am | 8 ++++++++
 1 file changed, 8 insertions(+)
tests/Makefile.am +8 -0
index 2e307f4..e474522 100644
@@ -4,6 +4,8 @@ EXTRA_DIST = ctf-traces/** tests
 
 SCRIPT_LIST = run.sh
 
+TRACE_FOLDER = ctf-traces
+
 dist_noinst_SCRIPTS = $(SCRIPT_LIST)
 
 all-local:
@@ -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:
Signature · 1 line
1.9.1