summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch')
-rw-r--r--meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch b/meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch
new file mode 100644
index 0000000000..f5556b23e3
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch
@@ -0,0 +1,28 @@
1strace: Add ptest
2
3Signed-off-by: Gabriel Barbu <gabriel.barbu@enea.com>
4Upstream-Status: Pending
5
6--- old/tests/Makefile.am 2013-07-23 13:44:24.660481381 +0200
7+++ new/tests/Makefile.am 2013-07-23 16:22:42.937654391 +0200
8@@ -9,3 +9,20 @@
9 EXTRA_DIST = init.sh $(TESTS)
10
11 CLEANFILES = check.log
12+
13+buildtest-TESTS: $(check_PROGRAMS) $(TESTS)
14+
15+install-ptest:
16+ install $(BUILDDIR)/strace $(DESTDIR)
17+ install "$(srcdir)/.."/strace-log-merge $(DESTDIR)
18+ install -d $(DESTDIR)/$(TESTDIR)
19+ cp $(BUILDDIR)/$(TESTDIR)/Makefile $(DESTDIR)/$(TESTDIR)
20+ sed -i -e 's/^Makefile:/_Makefile:/' $(DESTDIR)/$(TESTDIR)/Makefile
21+ for file in $(check_PROGRAMS); do \
22+ install $(BUILDDIR)/$(TESTDIR)/$$file $(DESTDIR)/$(TESTDIR); \
23+ done
24+ for file in $(EXTRA_DIST); do \
25+ install $(srcdir)/$$file $(DESTDIR)/$(TESTDIR); \
26+ sed -i -e 's/$${srcdir=.}/./g' $(DESTDIR)/$(TESTDIR)/$$file; \
27+ done
28+ sed -i -e 's/$$srcdir/./g' $(DESTDIR)/$(TESTDIR)/net