1*4882a593SmuzhiyunFrom bfbf393e7d5b1b41df85ce1c37e887776c45d529 Mon Sep 17 00:00:00 2001 2*4882a593SmuzhiyunFrom: Richard Purdie <richard.purdie@linuxfoundation.org> 3*4882a593SmuzhiyunDate: Wed, 1 May 2019 16:37:48 +0100 4*4882a593SmuzhiyunSubject: [PATCH] Changes to allow ptest to run standalone on target: 5*4882a593Smuzhiyun 6*4882a593Smuzhiyuna) Run the tests serially 7*4882a593Smuzhiyunb) Use the standalone test mode which allows the tests to be run in their 8*4882a593Smuzhiyun 'installled' locations on target (but not any of the standalone build pieces) 9*4882a593Smuzhiyunc) We want to use the binaries from their installed locations so the run-subr 10*4882a593Smuzhiyun script needs tweaking to run them like that. The rpath conditional isn't 11*4882a593Smuzhiyun enough since we want the second entry in the case statement. 12*4882a593Smuzhiyund) Add an oecheck make target which we can use to build the test binaries we need 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunSigned-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunUpstream-Status: Inappropriate [oe specific] 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun--- 19*4882a593Smuzhiyun configure.ac | 2 +- 20*4882a593Smuzhiyun tests/Makefile.am | 2 ++ 21*4882a593Smuzhiyun tests/test-subr.sh | 6 ------ 22*4882a593Smuzhiyun 3 files changed, 3 insertions(+), 7 deletions(-) 23*4882a593Smuzhiyun 24*4882a593Smuzhiyundiff --git a/configure.ac b/configure.ac 25*4882a593Smuzhiyunindex d345495..67933d1 100644 26*4882a593Smuzhiyun--- a/configure.ac 27*4882a593Smuzhiyun+++ b/configure.ac 28*4882a593Smuzhiyun@@ -48,7 +48,7 @@ AC_COPYRIGHT([Copyright (C) 1996-2021 The elfutils developers.]) 29*4882a593Smuzhiyun AC_PREREQ(2.63) dnl Minimum Autoconf version required. 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun dnl We use GNU make extensions; automake 1.10 defaults to -Wportability. 32*4882a593Smuzhiyun-AM_INIT_AUTOMAKE([gnits 1.11 -Wno-portability dist-bzip2 no-dist-gzip parallel-tests]) 33*4882a593Smuzhiyun+AM_INIT_AUTOMAKE([gnits 1.11 -Wno-portability dist-bzip2 no-dist-gzip serial-tests]) 34*4882a593Smuzhiyun AM_MAINTAINER_MODE 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun AM_SILENT_RULES([yes]) 37*4882a593Smuzhiyundiff --git a/tests/Makefile.am b/tests/Makefile.am 38*4882a593Smuzhiyunindex 72afd0e..a2dfd43 100644 39*4882a593Smuzhiyun--- a/tests/Makefile.am 40*4882a593Smuzhiyun+++ b/tests/Makefile.am 41*4882a593Smuzhiyun@@ -698,3 +698,5 @@ check: check-am coverage 42*4882a593Smuzhiyun coverage: 43*4882a593Smuzhiyun -$(srcdir)/coverage.sh 44*4882a593Smuzhiyun endif 45*4882a593Smuzhiyun+oecheck: 46*4882a593Smuzhiyun+ $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) 47*4882a593Smuzhiyundiff --git a/tests/test-subr.sh b/tests/test-subr.sh 48*4882a593Smuzhiyunindex 411e5f2..a638ff9 100644 49*4882a593Smuzhiyun--- a/tests/test-subr.sh 50*4882a593Smuzhiyun+++ b/tests/test-subr.sh 51*4882a593Smuzhiyun@@ -91,12 +91,6 @@ installed_testrun() 52*4882a593Smuzhiyun program="$1" 53*4882a593Smuzhiyun shift 54*4882a593Smuzhiyun case "$program" in 55*4882a593Smuzhiyun- ${abs_builddir}/*) 56*4882a593Smuzhiyun- if [ "x$elfutils_tests_rpath" != xno ]; then 57*4882a593Smuzhiyun- echo >&2 installcheck not possible with --enable-tests-rpath 58*4882a593Smuzhiyun- exit 77 59*4882a593Smuzhiyun- fi 60*4882a593Smuzhiyun- ;; 61*4882a593Smuzhiyun ${abs_top_builddir}/src/*) 62*4882a593Smuzhiyun program=${bindir}/`program_transform ${program##*/}` 63*4882a593Smuzhiyun ;; 64