selftests: harness: remove unneeded __constructor_order_last()__constructor_order_last() is unneeded.If __constructor_order_last() is not called on backward-order systems,__constructor_order wil
selftests: harness: remove unneeded __constructor_order_last()__constructor_order_last() is unneeded.If __constructor_order_last() is not called on backward-order systems,__constructor_order will remain 0 instead of being set to_CONSTRUCTOR_ORDER_BACKWARD (= -1).__LIST_APPEND() will still take the 'else' branch, so there is nodifference in the behavior.Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
show more ...
selftests: drivers: Fix incorrect kernel headers search pathUse $(KHDR_INCLUDES) as lookup path for kernel headers. This preventsbuilding against kernel headers from the build environment in scena
selftests: drivers: Fix incorrect kernel headers search pathUse $(KHDR_INCLUDES) as lookup path for kernel headers. This preventsbuilding against kernel headers from the build environment in scenarioswhere kernel headers are installed into a specific output directory(O=...).Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>Cc: Shuah Khan <shuah@kernel.org>Cc: linux-kselftest@vger.kernel.orgCc: Ingo Molnar <mingo@redhat.com>Cc: <stable@vger.kernel.org> # 5.18+Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
selftests: stop using KSFT_KHDR_INSTALLStop using the KSFT_KHDR_INSTALL flag as installing the kernel headersfrom the kselftest Makefile is causing some issues. Instead, rely onthe headers to be
selftests: stop using KSFT_KHDR_INSTALLStop using the KSFT_KHDR_INSTALL flag as installing the kernel headersfrom the kselftest Makefile is causing some issues. Instead, rely onthe headers to be installed directly by the top-level Makefile"headers_install" make target prior to building kselftest.Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>Tested-by: Anders Roxell <anders.roxell@linaro.org>Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
selftests: drivers/s390x: Add uvdevice testsAdds some selftests to test ioctl error paths of the uv-uapi.The Kconfig S390_UV_UAPI must be selected and the Ultravisor facilitymust be available. Th
selftests: drivers/s390x: Add uvdevice testsAdds some selftests to test ioctl error paths of the uv-uapi.The Kconfig S390_UV_UAPI must be selected and the Ultravisor facilitymust be available. The test can be executed by non-root, however, theuvdevice special file /dev/uv must be accessible for reading andwriting which may imply root privileges. ./test-uv-device TAP version 13 1..6 # Starting 6 tests from 3 test cases. # RUN uvio_fixture.att.fault_ioctl_arg ... # OK uvio_fixture.att.fault_ioctl_arg ok 1 uvio_fixture.att.fault_ioctl_arg # RUN uvio_fixture.att.fault_uvio_arg ... # OK uvio_fixture.att.fault_uvio_arg ok 2 uvio_fixture.att.fault_uvio_arg # RUN uvio_fixture.att.inval_ioctl_cb ... # OK uvio_fixture.att.inval_ioctl_cb ok 3 uvio_fixture.att.inval_ioctl_cb # RUN uvio_fixture.att.inval_ioctl_cmd ... # OK uvio_fixture.att.inval_ioctl_cmd ok 4 uvio_fixture.att.inval_ioctl_cmd # RUN attest_fixture.att_inval_request ... # OK attest_fixture.att_inval_request ok 5 attest_fixture.att_inval_request # RUN attest_fixture.att_inval_addr ... # OK attest_fixture.att_inval_addr ok 6 attest_fixture.att_inval_addr # PASSED: 6 / 6 tests passed. # Totals: pass:6 fail:0 xfail:0 xpass:0 skip:0 error:0Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>Acked-by: Janosch Frank <frankja@linux.ibm.com>Message-Id: <20220510144724.3321985-3-seiden@linux.ibm.com>Link: https://lore.kernel.org/kvm/20220510144724.3321985-3-seiden@linux.ibm.com/Signed-off-by: Janosch Frank <frankja@linux.ibm.com>