linux/tools/testing/selftests/sgx
Jarkko Sakkinen 235d1c9c63 selftests/sgx: Migrate to kselftest harness
Migrate to kselftest harness. Use a fixture test with enclave initialized
and de-initialized for each of the existing three tests, in other words:

1. One FIXTURE() for managing the enclave life-cycle.
2. Three TEST_F()'s, one for each test case.

Dump lines of /proc/self/maps matching "sgx" in FIXTURE_SETUP() as this
can be very useful debugging information later on.

Amended commit log:
This migration changes the output of this test. Instead of skipping
the tests if open /dev/sgx_enclave fails, it will run all the tests
and report failures on all of them.
Shuah Khan <skhan@linuxfoundation.org>

Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2021-06-15 16:23:09 -06:00
..
.gitignore
call.S selftests/sgx: Rename 'eenter' and 'sgx_call_vdso' 2021-06-15 16:21:23 -06:00
defines.h x86/sgx: Expose SGX architectural definitions to the kernel 2021-04-06 09:43:41 +02:00
load.c selftests/sgx: Migrate to kselftest harness 2021-06-15 16:23:09 -06:00
main.c selftests/sgx: Migrate to kselftest harness 2021-06-15 16:23:09 -06:00
main.h selftests/sgx: Rename 'eenter' and 'sgx_call_vdso' 2021-06-15 16:21:23 -06:00
Makefile
sign_key.pem
sign_key.S
sigstruct.c
test_encl_bootstrap.S
test_encl.c
test_encl.lds