linux-stable/tools/testing/selftests/sgx
Zhao Mengmeng 981cf568a8 selftests/sgx: Skip non X86_64 platform
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
2023-12-08 10:08:17 -08:00
..
.gitignore
call.S selftests/sgx: Rename 'eenter' and 'sgx_call_vdso' 2021-06-15 16:21:23 -06:00
defines.h selftests/sgx: Ensure expected location of test enclave buffer 2023-12-08 10:05:27 -08:00
load.c selftests/sgx: Fix uninitialized pointer dereferences in encl_get_entry 2023-12-08 10:05:26 -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 2023-12-08 10:08:17 -08:00
sign_key.pem
sign_key.S
sigstruct.c selftests/sgx: Fix uninitialized pointer dereference in error path 2023-12-08 10:05:26 -08:00
test_encl.c selftests/sgx: Ensure expected location of test enclave buffer 2023-12-08 10:05:27 -08:00
test_encl.lds selftests/sgx: Discard unsupported ELF sections 2023-12-08 10:05:28 -08:00
test_encl_bootstrap.S selftests/sgx: Remove incomplete ABI sanitization code in test enclave 2023-12-08 10:05:28 -08:00