mirror of
https://git.yoctoproject.org/poky
synced 2026-02-24 02:19:39 +01:00
* Rebased Makefile-ptest.patch for 6.15 * License-Update: Update copyright year from 2024 to 2025 (From OE-Core rev: 3cb2541fa48118fb545545670dae1cd39a9e7ee3) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
51 lines
1.7 KiB
Diff
51 lines
1.7 KiB
Diff
From 593bea35a044b55222a71737ca8455c2359817d1 Mon Sep 17 00:00:00 2001
|
|
From: Gabriel Barbu <gabriel.barbu@enea.com>
|
|
Date: Thu, 25 Jul 2013 15:28:33 +0200
|
|
Subject: [PATCH] strace: Add ptest
|
|
|
|
Upstream-Status: Inappropriate
|
|
|
|
Signed-off-by: Gabriel Barbu <gabriel.barbu@enea.com>
|
|
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
|
|
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
|
|
---
|
|
tests/Makefile.am | 20 ++++++++++++++++++++
|
|
1 file changed, 20 insertions(+)
|
|
|
|
|
|
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
|
index b29471f..b8b66f0 100644
|
|
--- a/tests/Makefile.am
|
|
+++ b/tests/Makefile.am
|
|
@@ -18,6 +18,7 @@ SIZEOF_LONG = @SIZEOF_LONG@
|
|
MPERS_NAME =
|
|
MPERS_CC_FLAGS =
|
|
ARCH_MFLAGS =
|
|
+TEST_SUITE_LOG = test-suite.log
|
|
AM_CFLAGS = $(WARN_CFLAGS) $(TEST_WARN_CFLAGS)
|
|
bundled_CPPFLAGS =
|
|
if USE_BUNDLED_HEADERS
|
|
@@ -932,3 +933,22 @@ BUILT_SOURCES = ksysent.h
|
|
CLEANFILES = ksysent.h
|
|
|
|
include ../src/scno.am
|
|
+
|
|
+buildtest-TESTS: $(check_PROGRAMS) $(TESTS)
|
|
+
|
|
+install-ptest:
|
|
+ install -d $(DESTDIR)/src
|
|
+ install $(BUILDDIR)/src/strace $(DESTDIR)/src
|
|
+ install $(srcdir)/../src/strace-log-merge $(DESTDIR)/src
|
|
+ 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 scm_rights-fd rt_sigaction; do sed -i -e 's/$$srcdir/./g' $(DESTDIR)/$(TESTDIR)/$$i.test; done
|