<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12323</bug_id>
          
          <creation_ts>2017-11-08 18:40:00 +0000</creation_ts>
          <short_desc>automake does not support buildtest-TESTS in parallel mode</short_desc>
          <delta_ts>2026-01-15 16:29:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.4.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Juro Bystricky">juro.bystricky</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78078</commentid>
    <comment_count>0</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-11-08 18:40:00 +0000</bug_when>
    <thetext>Automake in oe-core is patched with http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/automake/automake/buildtest.patch

where we basically split &quot;make check&quot; into:

make buildtest-TESTS
make runtest-TESTS

We do this in order to build the tests separately (cross-compile them) but
run them later on the target as part of the &quot;ptest&quot; package.

There are two problems with the existing patch:

1. The patch only creates the targets buildtest-TESTS, runtest-TESTS for &quot;serial-test-harness&quot; (https://www.gnu.org/software/automake/manual/html_node/Serial-Test-Harness.html) . This harness is deprecated, and utils default to &quot;parallel-tests&quot;. So in order to be able to use buildtest-TESTS target we currently need to patch configure.ac to explicitly select &quot;serial-tests&quot;, something like:

AM_INIT_AUTOMAKE(... [serial-tests] ...)

2. The created targets (builtest-TESTS, runtest-TESTS) are not recursive, in spite of what the patch suggests. This may have worked at some time, but it does not seem to work now.  We need to patch configure.ac with an additional patch, something like:

AM_EXTRA_RECURSIVE_TARGETS([buildtest-TESTS])

otherwise not all tests may end up being cross-compiled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96904</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:40 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103933</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-01-15 16:29:04 +0000</bug_when>
    <thetext>Closing this, the design of the test harness in automake isn&apos;t broken and isn&apos;t the problem. Our horrible ways of building and extracting the tests is the problem and is often broken, but this is all worked around in each recipe.

We need to improve how we build and install tests but that&apos;s sort of a larger problem.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>