<?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>8767</bug_id>
          
          <creation_ts>2015-12-04 09:27:44 +0000</creation_ts>
          <short_desc>Fix systemd ptest support</short_desc>
          <delta_ts>2016-03-21 09:57:34 +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>1.8.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="dawei">daweix.wu</reporter>
          <assigned_to name="Jussi Kukkonen">jku</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>57034</commentid>
    <comment_count>0</comment_count>
    <who name="dawei">daweix.wu</who>
    <bug_when>2015-12-04 09:27:44 +0000</bug_when>
    <thetext>Now sysmted has run-ptest and related files but it doesn&apos;t output the expected logs when running

# ./run-ptest
make: *** No rule to make target &apos;test/rules-test.sh.log&apos;.  Stop.
make: &apos;test/udev-test.pl.log&apos; is up to date.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57200</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2015-12-11 13:16:23 +0000</bug_when>
    <thetext>the systemd ptests are broken, but also badly incomplete:
* systemd v225 has ~130 separate test binaries (at least 116 of them non-manual).
* We install _one_ of the binaries and one python script

I&apos;ll see if it&apos;s possible to get better coverage. Just fixing what we now have does not seem worth the trouble.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57207</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-12-11 14:11:28 +0000</bug_when>
    <thetext>If it&apos;s fundamentally broken and fixing isn&apos;t simple lets at least delete the broken support until it can be re-added properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59980</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2016-03-15 18:56:18 +0000</bug_when>
    <thetext>I have a branch that gets us to this state:

      PASS: 108
      SKIP:   6
      FAIL:   2

This seems worthwhile as the tests look useful and not horribly slow. The failures are:

* test-acl-util:
fails because it tries to use ACLs on /tmp which at least with systemd is a tmpfs and does not support ACLs (maybe we don&apos;t enable the kernel option?)

* test-execute:
tries to check that &quot;PrivateNetwork=yes&quot; works by running this:
     i=$(ip link | grep &quot;: &quot; | grep -v &quot;: lo:&quot;); test -z &quot;$i&quot;
this fails because poky seems to have a sit-interface (a 6to4 tunnel) running nowadays and that is still there with PrivateNetwork=yes


I&apos;ll send a patch after sorting these out somehow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59987</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-03-15 20:55:57 +0000</bug_when>
    <thetext>Nice!

I&apos;ve just filed bug 9269 for the ACL on tmpfs thing.

The sit0 interface I&apos;ve never seen before.  Presumably this is systemd+connman, on what MACHINE?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59998</commentid>
    <comment_count>5</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2016-03-16 07:40:22 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Nice!
&gt; 
&gt; I&apos;ve just filed bug 9269 for the ACL on tmpfs thing.

Thanks.

&gt; The sit0 interface I&apos;ve never seen before.  Presumably this is
&gt; systemd+connman, on what MACHINE?

It does not show up on ifconfig at all but:

--- 
root@qemux86-64:~# ip link
1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
3: sit0@NONE: &lt;NOARP&gt; mtu 1480 qdisc noop 
    link/sit 0.0.0.0 brd 0.0.0.0
root@qemux86-64:~# 
root@qemux86-64:~# ip addr
1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
    inet 192.168.7.6/24 brd 192.168.7.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::5054:ff:fe12:3456/64 scope link 
       valid_lft forever preferred_lft forever
3: sit0@NONE: &lt;NOARP&gt; mtu 1480 qdisc noop 
    link/sit 0.0.0.0 brd 0.0.0.0
---

This is core-image-sato on qemux86-64 with very few changes apart from setting systemd as init manager.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60191</commentid>
    <comment_count>6</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2016-03-21 09:57:34 +0000</bug_when>
    <thetext>This should be now fixed, with two expected failures (see below). Testing requires systemd as init:
  DISTRO_FEATURES_append = &quot; systemd&quot;
  VIRTUAL-RUNTIME_init_manager = &quot;systemd&quot;

--

commit 8c0148f7b9d8532bbefbef7cc0495f879f4d12c4
Author: Jussi Kukkonen &lt;jussi.kukkonen@intel.com&gt;
Date:   Wed Mar 16 14:13:45 2016 +0200

    systemd: Fix and expand ptests
    
    systemd-ptest only runs a couple of tests currently.
    * Install all test binaries and required data files
    * Add missing runtime dependencies for -ptest
    * Fix paths required for on-target testing in do_configure_prepend()
    * cleanup do_install_ptest()
    
    For reference, results on current core-image-sato:
      PASS: 109
      SKIP:   5
      FAIL:   2
    
    test-execute failure:
    https://github.com/systemd/systemd/issues/2852
    
    test-acl-util failure:
    https://bugzilla.yoctoproject.org/show_bug.cgi?id=9269
    
    Fixes [YOCTO #8767].
    
    (From OE-Core rev: 753daf14da4017cd5d245f1587ca44faa39784f5)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>