mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 23:39:40 +01:00
* Let automake use parallel test harness which ensures that appropriate environment variables are actually used. * Copy generated config.h as part of ptest package and define a variable in tests Makefile to control the name of target that we'd like to invoke for tests instead of relying on default value. * configure relies on tools that are not available in release tarballs resulting in warnings and failed tests. Get the required information from available files instead. * Reduces the count of failing tests to 18 from 35. The rest of tests fail or get skipped mostly because of missing syscalls. Number of tests getting skipped can probably be reduced further. Fixes [YOCTO #12948] (From OE-Core rev: dcd674181f31a12c100f91cf6a1c3f3d52b775a2) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
50 lines
1.6 KiB
Diff
50 lines
1.6 KiB
Diff
From 207fc7814bbeb0241382329215d21fd3b57066f9 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 | 19 +++++++++++++++++++
|
|
1 file changed, 19 insertions(+)
|
|
|
|
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
|
index a2f3950..4fa97e2 100644
|
|
--- a/tests/Makefile.am
|
|
+++ b/tests/Makefile.am
|
|
@@ -34,6 +34,7 @@ SIZEOF_LONG = @SIZEOF_LONG@
|
|
MPERS_NAME =
|
|
MPERS_CC_FLAGS =
|
|
ARCH_MFLAGS =
|
|
+TEST_SUITE_LOG = test-suite.log
|
|
AM_CFLAGS = $(WARN_CFLAGS)
|
|
AM_CPPFLAGS = $(ARCH_MFLAGS) \
|
|
-I$(builddir) \
|
|
@@ -490,3 +491,21 @@ BUILT_SOURCES = ksysent.h
|
|
CLEANFILES = ksysent.h
|
|
|
|
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 scm_rights-fd rt_sigaction; do sed -i -e 's/$$srcdir/./g' $(DESTDIR)/$(TESTDIR)/$$i.test; done
|