summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/strace/strace/Makefile-ptest.patch')
-rw-r--r--meta/recipes-devtools/strace/strace/Makefile-ptest.patch23
1 files changed, 12 insertions, 11 deletions
diff --git a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
index 42c1893f39..9af7737662 100644
--- a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
+++ b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
@@ -1,4 +1,4 @@
1From ee47e205255928679701a5b769bd7ae0f815119d Mon Sep 17 00:00:00 2001 1From 1f50e0a09d828be8f5b1f28db9af0b12492a1553 Mon Sep 17 00:00:00 2001
2From: Gabriel Barbu <gabriel.barbu@enea.com> 2From: Gabriel Barbu <gabriel.barbu@enea.com>
3Date: Thu, 25 Jul 2013 15:28:33 +0200 3Date: Thu, 25 Jul 2013 15:28:33 +0200
4Subject: [PATCH] strace: Add ptest 4Subject: [PATCH] strace: Add ptest
@@ -10,31 +10,32 @@ Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
10Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> 10Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
11 11
12--- 12---
13 tests/Makefile.am | 19 +++++++++++++++++++ 13 tests/Makefile.am | 20 ++++++++++++++++++++
14 1 file changed, 19 insertions(+) 14 1 file changed, 20 insertions(+)
15 15
16diff --git a/tests/Makefile.am b/tests/Makefile.am 16diff --git a/tests/Makefile.am b/tests/Makefile.am
17index 8cf4c36..66162eb 100644 17index 55566ee..a7ae6f9 100644
18--- a/tests/Makefile.am 18--- a/tests/Makefile.am
19+++ b/tests/Makefile.am 19+++ b/tests/Makefile.am
20@@ -15,6 +15,7 @@ SIZEOF_LONG = @SIZEOF_LONG@ 20@@ -16,6 +16,7 @@ SIZEOF_LONG = @SIZEOF_LONG@
21 MPERS_NAME = 21 MPERS_NAME =
22 MPERS_CC_FLAGS = 22 MPERS_CC_FLAGS =
23 ARCH_MFLAGS = 23 ARCH_MFLAGS =
24+TEST_SUITE_LOG = test-suite.log 24+TEST_SUITE_LOG = test-suite.log
25 AM_CFLAGS = $(WARN_CFLAGS) 25 AM_CFLAGS = $(WARN_CFLAGS)
26 AM_CPPFLAGS = $(ARCH_MFLAGS) \ 26 bundled_CPPFLAGS =
27 -I$(builddir) \ 27 if USE_BUNDLED_HEADERS
28@@ -538,3 +539,21 @@ BUILT_SOURCES = ksysent.h 28@@ -703,3 +704,22 @@ BUILT_SOURCES = ksysent.h
29 CLEANFILES = ksysent.h 29 CLEANFILES = ksysent.h
30 30
31 include ../scno.am 31 include ../src/scno.am
32+ 32+
33+buildtest-TESTS: $(check_PROGRAMS) $(TESTS) 33+buildtest-TESTS: $(check_PROGRAMS) $(TESTS)
34+ 34+
35+install-ptest: 35+install-ptest:
36+ install $(BUILDDIR)/strace $(DESTDIR) 36+ install -d $(DESTDIR)/src
37+ install $(srcdir)/../strace-log-merge $(DESTDIR) 37+ install $(BUILDDIR)/src/strace $(DESTDIR)/src
38+ install $(srcdir)/../src/strace-log-merge $(DESTDIR)/src
38+ install -d $(DESTDIR)/$(TESTDIR) 39+ install -d $(DESTDIR)/$(TESTDIR)
39+ cp $(BUILDDIR)/$(TESTDIR)/Makefile $(DESTDIR)/$(TESTDIR) 40+ cp $(BUILDDIR)/$(TESTDIR)/Makefile $(DESTDIR)/$(TESTDIR)
40+ sed -i -e 's/^Makefile:/_Makefile:/' $(DESTDIR)/$(TESTDIR)/Makefile 41+ sed -i -e 's/^Makefile:/_Makefile:/' $(DESTDIR)/$(TESTDIR)/Makefile