diff options
Diffstat (limited to 'meta/recipes-devtools/strace/strace/Makefile-ptest.patch')
-rw-r--r-- | meta/recipes-devtools/strace/strace/Makefile-ptest.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch new file mode 100644 index 0000000000..f3603012f4 --- /dev/null +++ b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | strace: Add ptest | ||
2 | |||
3 | Upstream-Status: Inappropriate | ||
4 | |||
5 | Signed-off-by: Gabriel Barbu <gabriel.barbu@enea.com> | ||
6 | Signed-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 | |||
12 | diff --git a/configure.ac b/configure.ac | ||
13 | index e73958c..5f0dfee 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 | |||
25 | diff --git a/tests/Makefile.am b/tests/Makefile.am | ||
26 | index ff5e136..984bdb6 100644 | ||
27 | --- a/tests/Makefile.am | ||
28 | +++ b/tests/Makefile.am | ||
29 | @@ -101,3 +101,21 @@ EXTRA_DIST = init.sh run.sh \ | ||
30 | $(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 | -- | ||
52 | 1.9.1 | ||
53 | |||