Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2021 22:24:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        testing@FreeBSD.org
Subject:   [Bug 250178] Failing test case: sys.capsicum.functional.Capability__NoBypassDAC
Message-ID:  <bug-250178-32464-gj1yu8eG52@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-250178-32464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-250178-32464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250178

--- Comment #5 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Dcad3bfa094e6135b939a948f45c4dee2d=
f9d64f3

commit cad3bfa094e6135b939a948f45c4dee2df9d64f3
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-03-02 18:27:34 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-03-17 22:22:49 +0000

    Simplify the capsicum-test wrapper script

    Instead of running tests one-by-one with the shell wrapper we now run
    the full gtest testsuite twice (once as root, once as non root). This
    significantly speeds up running tests despite running them twice.
    This change also passes the missing -u flag to capsicum-test that caused
    test failures (https://bugs.freebsd.org/250178)

    Previously, running the testsuite with the wrapper script took ~3s per
    test on aarch64 QEMU, i.e. a total of almost 5 minutes.
    Now it takes 6 seconds to run all tests twice.

    Before:
    root@freebsd-aarch64:/usr/tests/sys/capsicum # /usr/bin/time kyua test
functional
    94/96 passed (2 failed)
          309.97 real        58.46 user       244.31 sys

    After:
    root@freebsd-aarch64:/usr/tests/sys/capsicum # /usr/bin/time kyua test
functional
    functional:test_root  ->  passed  [2.659s]
    functional:test_unprivileged  ->  passed  [2.391s]
    2/2 passed (0 failed)
            5.48 real         1.06 user         2.52 sys

    This overhead is caused by kyua + atf-sh spawning lots of additional
    processes and can be avoided by just running the googletest test binary.
    syscall                     seconds   calls  errors
    fork                   39.810229456    1275       0
    sigprocmask            13.546928736     572       0

    i.e. 1275 processes spawned to run a single test.

    Test Plan:      All tests pass with D28907.
    PR:             250178
    Reviewed By:    lwhsu
    Differential Revision: https://reviews.freebsd.org/D29014

    (cherry picked from commit 53a535c1d80a2e5ea33a4e8807647e600402b1d8)

 tests/sys/capsicum/functional.sh | 70 ++++++++++--------------------------=
----
 1 file changed, 17 insertions(+), 53 deletions(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250178-32464-gj1yu8eG52>