summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace-4.9/Makefile-ptest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/strace/strace-4.9/Makefile-ptest.patch')
-rw-r--r--meta/recipes-devtools/strace/strace-4.9/Makefile-ptest.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace-4.9/Makefile-ptest.patch b/meta/recipes-devtools/strace/strace-4.9/Makefile-ptest.patch
new file mode 100644
index 0000000000..df013102d7
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace-4.9/Makefile-ptest.patch
@@ -0,0 +1,53 @@
1strace: Add ptest
2
3Upstream-Status: Inappropriate
4
5Signed-off-by: Gabriel Barbu <gabriel.barbu@enea.com>
6Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
7---
8 configure.ac | 2 +-
9 tests/Makefile.am | 18 ++++++++++++++++++
10 2 files changed, 19 insertions(+), 1 deletion(-)
11
12diff --git a/configure.ac b/configure.ac
13index 054f85b..9aec566 100644
14--- a/configure.ac
15+++ b/configure.ac
16@@ -6,7 +6,7 @@ AC_INIT([strace],
17 AC_CONFIG_SRCDIR([strace.c])
18 AC_CONFIG_AUX_DIR([.])
19 AC_CONFIG_HEADERS([config.h])
20-AM_INIT_AUTOMAKE([foreign dist-xz no-dist-gzip silent-rules parallel-tests])
21+AM_INIT_AUTOMAKE([foreign dist-xz no-dist-gzip silent-rules serial-tests])
22 AM_MAINTAINER_MODE
23 AC_CANONICAL_HOST
24
25diff --git a/tests/Makefile.am b/tests/Makefile.am
26index 922452a..b17837f 100644
27--- a/tests/Makefile.am
28+++ b/tests/Makefile.am
29@@ -37,3 +37,21 @@ TEST_LOG_COMPILER = $(srcdir)/run.sh
30 EXTRA_DIST = init.sh run.sh sigaction.awk $(TESTS)
31
32 CLEANFILES = $(TESTS:=.tmp)
33+
34+buildtest-TESTS: $(check_PROGRAMS) $(TESTS)
35+
36+install-ptest:
37+ install $(BUILDDIR)/strace $(DESTDIR)
38+ install "$(srcdir)/.."/strace-log-merge $(DESTDIR)
39+ install -d $(DESTDIR)/$(TESTDIR)
40+ cp $(BUILDDIR)/$(TESTDIR)/Makefile $(DESTDIR)/$(TESTDIR)
41+ sed -i -e 's/^Makefile:/_Makefile:/' $(DESTDIR)/$(TESTDIR)/Makefile
42+ sed -i -e 's/bash/sh/' $(DESTDIR)/$(TESTDIR)/Makefile
43+ for file in $(check_PROGRAMS); do \
44+ install $(BUILDDIR)/$(TESTDIR)/$$file $(DESTDIR)/$(TESTDIR); \
45+ done
46+ for file in $(EXTRA_DIST); do \
47+ install $(srcdir)/$$file $(DESTDIR)/$(TESTDIR); \
48+ sed -i -e 's/$${srcdir=.}/./g' $(DESTDIR)/$(TESTDIR)/$$file; \
49+ done
50+ for i in net net-fd scm_rights-fd sigaction; do sed -i -e 's/$$srcdir/./g' $(DESTDIR)/$(TESTDIR)/$$i.test; done
51--
521.9.1
53