summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch
blob: 3a0eb3937595cb2cb570d1df5e075144e16c5ae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
strace: Add ptest

Upstream-Status: Inappropriate

Signed-off-by: Gabriel Barbu <gabriel.barbu@enea.com>
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>

--- old/tests/Makefile.am	2013-07-23 13:44:24.660481381 +0200
+++ new/tests/Makefile.am	2013-07-23 16:22:42.937654391 +0200
@@ -9,3 +9,21 @@
 EXTRA_DIST = init.sh $(TESTS)
 
 CLEANFILES = check.log
+
+buildtest-TESTS: $(check_PROGRAMS) $(TESTS)
+
+install-ptest:
+	install $(BUILDDIR)/strace $(DESTDIR)
+	install "$(srcdir)/.."/strace-log-merge $(DESTDIR)
+	install -d $(DESTDIR)/$(TESTDIR)
+	cp $(BUILDDIR)/$(TESTDIR)/Makefile $(DESTDIR)/$(TESTDIR)
+	sed -i -e 's/^Makefile:/_Makefile:/' $(DESTDIR)/$(TESTDIR)/Makefile
+	sed -i -e 's/bash/sh/' $(DESTDIR)/$(TESTDIR)/Makefile
+	for file in $(check_PROGRAMS); do \
+		install $(BUILDDIR)/$(TESTDIR)/$$file $(DESTDIR)/$(TESTDIR); \
+	done
+	for file in $(EXTRA_DIST); do \
+		install $(srcdir)/$$file $(DESTDIR)/$(TESTDIR); \
+		sed -i -e 's/$${srcdir=.}/./g' $(DESTDIR)/$(TESTDIR)/$$file; \
+	done
+	sed -i -e 's/$$srcdir/./g' $(DESTDIR)/$(TESTDIR)/net
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,7 @@ AC_INIT([strace],
 AC_CONFIG_SRCDIR([strace.c])
 AC_CONFIG_AUX_DIR([.])
 AC_CONFIG_HEADERS([config.h])
-AM_INIT_AUTOMAKE([foreign dist-xz no-dist-gzip silent-rules])
+AM_INIT_AUTOMAKE([foreign dist-xz no-dist-gzip silent-rules serial-tests])
 AM_MAINTAINER_MODE
 AC_CANONICAL_HOST