diff options
| author | Ola x Nilsson <olani@axis.com> | 2024-11-13 15:25:22 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-11-19 16:59:07 -0800 |
| commit | b7fec3e16f6a4af6380b7ff3c88078711c3ef3fb (patch) | |
| tree | 783289bd39d191fd15312f6fcc580f5b7ff35cd6 | |
| parent | 953a4530383cc23ddc83f60bfacadc580d7c50cc (diff) | |
| download | meta-openembedded-b7fec3e16f6a4af6380b7ff3c88078711c3ef3fb.tar.gz | |
rsyslog: Fix the ptest path to test-driver
Add a sed substitution for ${PTEST_PATH}/${TESTDIR}/Makefile that
transforms
LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
to
LOG_DRIVER = $(SHELL) $(top_builddir)/test-driver
SH_LOG_DRIVER = $(SHELL) $(top_builddir)/test-driver
which is where the test-driver script can be found when installed.
The addition of this substition makes ptests work with or without an
automake patch in OE-Core that does the same thing.
Relates to [YOCTO #15635]
Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog_8.2408.0.bb | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2408.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2408.0.bb index cf833de22c..7d151bb9dc 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2408.0.bb +++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2408.0.bb | |||
| @@ -100,16 +100,18 @@ do_install_ptest() { | |||
| 100 | # some tests need to write to this directory as user 'daemon' | 100 | # some tests need to write to this directory as user 'daemon' |
| 101 | chmod 777 -R ${D}${PTEST_PATH}/tests | 101 | chmod 777 -R ${D}${PTEST_PATH}/tests |
| 102 | 102 | ||
| 103 | # do NOT need to rebuild Makefile itself | 103 | sed -e '# do NOT need to rebuild Makefile itself' \ |
| 104 | sed -i 's/^Makefile:.*$/Makefile:/' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | 104 | -e 's/^Makefile:.*$/Makefile:/' \ |
| 105 | # do NOT need to rebuild $(check_PROGRAMS) | 105 | -e '# do NOT need to rebuild $(check_PROGRAMS)' \ |
| 106 | sed -i 's/^check-TESTS:.*$/check-TESTS:/' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | 106 | -e 's/^check-TESTS:.*$/check-TESTS:/' \ |
| 107 | 107 | -e '# fix the srcdir, top_srcdir' \ | |
| 108 | # fix the srcdir, top_srcdir | 108 | -e 's,^\(srcdir = \).*,\1${PTEST_PATH}/tests,' \ |
| 109 | sed -i 's,^\(srcdir = \).*,\1${PTEST_PATH}/tests,' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | 109 | -e 's,^\(top_srcdir = \).*,\1${PTEST_PATH}/tests,' \ |
| 110 | sed -i 's,^\(top_srcdir = \).*,\1${PTEST_PATH}/tests,' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | 110 | -e '# fix the abs_top_builddir' \ |
| 111 | # fix the abs_top_builddir | 111 | -e 's,^\(abs_top_builddir = \).*,\1${PTEST_PATH}/,' \ |
| 112 | sed -i 's,^\(abs_top_builddir = \).*,\1${PTEST_PATH}/,' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | 112 | -e '# fix the path to test-driver' \ |
| 113 | -e '/^\(SH_\)\?LOG_DRIVER/s/(top_srcdir)/(top_builddir)/' \ | ||
| 114 | -i ${D}${PTEST_PATH}/${TESTDIR}/Makefile | ||
| 113 | 115 | ||
| 114 | # install test-driver | 116 | # install test-driver |
| 115 | install -m 644 ${S}/test-driver ${D}${PTEST_PATH} | 117 | install -m 644 ${S}/test-driver ${D}${PTEST_PATH} |
