linux/tools/testing/selftests/sgx
Zhao Mengmeng b68be58c31 selftests/sgx: Skip non X86_64 platform
[ Upstream commit 981cf568a8 ]

When building whole selftests on arm64, rsync gives an erorr about sgx:

rsync: [sender] link_stat "/root/linux-next/tools/testing/selftests/sgx/test_encl.elf" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1327) [sender=3.2.5]

The root casue is sgx only used on X86_64, and shall be skipped on other
platforms.

Fix this by moving TEST_CUSTOM_PROGS and TEST_FILES inside the if check,
then the build result will be "Skipping non-existent dir: sgx".

Fixes: 2adcba79e6 ("selftests/x86: Add a selftest for SGX")
Signed-off-by: Zhao Mengmeng <zhaomengmeng@kylinos.cn>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/all/20231206025605.3965302-1-zhaomzhao%40126.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-01-25 15:45:21 -08:00
..
.gitignore selftests/x86: Add a selftest for SGX 2020-11-18 18:04:05 +01:00
call.S selftests/sgx: Rename 'eenter' and 'sgx_call_vdso' 2021-06-15 16:21:23 -06:00
defines.h selftests/sgx: Introduce TCS initialization enclave operation 2022-07-07 10:13:04 -07:00
load.c selftests/sgx: Fix uninitialized pointer dereferences in encl_get_entry 2024-01-25 15:45:21 -08:00
main.c selftests/sgx: Page removal stress test 2022-07-07 10:13:05 -07:00
main.h selftests/sgx: Test complete changing of page type flow 2022-07-07 10:13:04 -07:00
Makefile selftests/sgx: Skip non X86_64 platform 2024-01-25 15:45:21 -08:00
sign_key.pem selftests/sgx: Use a statically generated 3072-bit RSA key 2020-11-18 18:26:00 +01:00
sign_key.S selftests/sgx: Use a statically generated 3072-bit RSA key 2020-11-18 18:26:00 +01:00
sigstruct.c selftests/sgx: Fix uninitialized pointer dereference in error path 2024-01-25 15:45:21 -08:00
test_encl.c selftests/sgx: Include memory clobber for inline asm in test enclave 2024-01-25 15:45:21 -08:00
test_encl.lds selftests/sgx: Refine the test enclave to have storage 2021-06-15 16:27:23 -06:00
test_encl_bootstrap.S selftests/sgx: Introduce dynamic entry point 2022-07-07 10:13:04 -07:00