#! /bin/sh # BRINTOS-WORKAROUND: brintos/linux#19 remove -- oe-core's run-ptest is # # su -c ./test.sh ptest # # and on this arm that never reaches test.sh. The wasm32 syscall table wires no # credential setter (setuid/setgid/setgroups/setres*/setfs* are all NULL rows -> # -ENOSYS, while the getters are wired), so su dies with "Function not # implemented" before test.sh is reached -- at initgroups while /bin/su was the # busybox applet, and at setgid since shadow's port took the name through # update-alternatives. ptest-runner then reports # TOTAL: 1 FAIL: 1 with not one of the 62 tests run -- and, because upstream's # test.sh writes nothing before the drop, the transcript is indistinguishable # from a suite that ran and passed nothing. # # The drop is ptest CONVENTION, not something quilt's tests need: each one works # in a private directory the invoking user already owns, and none asserts a # permission failure that root would defeat. So this copy runs the suite # directly. It still ATTEMPTS the drop first, so the day #19 lands the suite goes # back to running unprivileged with no edit here, and 53-quilt.test asserts the # gap separately and inverted (quilt/su-setgroups-enosys) so the case turns red # then -- which is the signal to delete this file and let poky's own run-ptest # win again. if su -c true ptest >/dev/null 2>&1; then exec su -c ./test.sh ptest fi echo "run-ptest: privilege drop unavailable ($(su -c true ptest 2>&1)); running as $(id -un) -- brintos/linux#19" >&2 exec ./test.sh