mirror of
https://git.yoctoproject.org/poky
synced 2026-03-05 14:59:41 +01:00
* The license cheksum is changed becuase a new line is added: Copyright (C) 2001-2017 The strace developers. * Remove use-asm-sgidefs.h.patch, it doesn't check sgidefs.h any more, it was use for building on mips, I checked it built well. * Update Makefile-ptest.patch and disable-git-version-gen.patch. (From OE-Core rev: 204e0e9916f6acfa02d7a49bf5e33678abb0578d) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
51 lines
1.7 KiB
Diff
51 lines
1.7 KiB
Diff
strace: Add ptest
|
|
|
|
Upstream-Status: Inappropriate
|
|
|
|
Signed-off-by: Gabriel Barbu <gabriel.barbu@enea.com>
|
|
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
|
|
---
|
|
configure.ac | 2 +-
|
|
tests/Makefile.am | 18 ++++++++++++++++++
|
|
2 files changed, 19 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index b2b03c6..464a9dc 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -39,7 +39,7 @@ AC_COPYRIGHT([Copyright (C) 1999-2017 The strace developers.])
|
|
AC_CONFIG_SRCDIR([strace.c])
|
|
AC_CONFIG_AUX_DIR([.])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
-AM_INIT_AUTOMAKE([foreign nostdinc dist-xz silent-rules parallel-tests])
|
|
+AM_INIT_AUTOMAKE([foreign nostdinc dist-xz silent-rules serial-tests])
|
|
AM_EXTRA_RECURSIVE_TARGETS([check-valgrind])
|
|
AM_MAINTAINER_MODE
|
|
AC_CANONICAL_HOST
|
|
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
|
index 311d3bb..72f9022 100644
|
|
--- a/tests/Makefile.am
|
|
+++ b/tests/Makefile.am
|
|
@@ -960,3 +960,21 @@ $(objects): scno.h
|
|
CLEANFILES = ksysent.h $(TESTS:=.tmp)
|
|
|
|
include ../scno.am
|
|
+
|
|
+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
|
|
+ for i in net net-fd scm_rights-fd sigaction; do sed -i -e 's/$$srcdir/./g' $(DESTDIR)/$(TESTDIR)/$$i.test; done
|