commit:     9a224dc58838a40f9cde565bb52fd125ab002d49
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  8 04:08:29 2025 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed Jan  8 04:08:29 2025 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=9a224dc5

tests: fix testsuite generation for out-of-source build

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 tests/local.mk | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/local.mk b/tests/local.mk
index 8bf5da5..4f166cc 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -142,12 +142,12 @@ clean-local:
 TESTSUITE_LIST = $(top_srcdir)/%D%/testsuite.list.at
 AUTOTEST = $(AUTOM4TE) --language=autotest
 $(TESTSUITE): $(AT_FILES) $(TESTSUITE_LIST)
-       @$(MKDIR_P) $(top_srcdir)/%D%
-       $(AM_V_GEN)cd $(top_srcdir)/%D% && $(AUTOTEST) -I. -o testsuite.tmp 
testsuite.at
-       $(AM_V_at)mv [email protected] $@
+       @$(MKDIR_P) '$(top_srcdir)/%D%'
+       $(AM_V_GEN)$(AUTOTEST) -I'%D%' -I'$(top_srcdir)/%D%' -o '[email protected]' '[email protected]'
+       $(AM_V_at)mv '[email protected]' '$@'
 
 $(TESTSUITE_LIST): $(AT_FILES)
        @$(MKDIR_P) $(top_srcdir)/%D%
        $(AM_V_GEN)( echo "dnl DO NOT EDIT: GENERATED BY MAKEFILE.AM"; \
        $(GREP) -l -e '^SB_CHECK' -e '^AT_CHECK' $(AT_FILES) | LC_ALL=C sort | \
-               $(SED) -e 's:^[^/]*/%D%/:sb_inc([:' -e 's:[.]at$$:]):' ) > $@
+               $(SED) -e 's:^.*/%D%/:sb_inc([:' -e 's:[.]at$$:]):' ) > $@

Reply via email to