summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYi Lai <yi1.lai@intel.com>2023-04-21 05:31:23 +0200
committerShuah Khan <skhan@linuxfoundation.org>2023-05-08 19:01:03 +0200
commit4b79f76920a49fc13766b95df1df1f4d700acbad (patch)
tree8b9bc6d4f25cbefe58a2a7d8488d45300f9a6758 /tools
parentLinux 6.4-rc1 (diff)
downloadlinux-4b79f76920a49fc13766b95df1df1f4d700acbad.tar.xz
linux-4b79f76920a49fc13766b95df1df1f4d700acbad.zip
selftests/sgx: Add "test_encl.elf" to TEST_FILES
The "test_encl.elf" file used by test_sgx is not installed in INSTALL_PATH. Attempting to execute test_sgx causes false negative: " enclave executable open(): No such file or directory main.c:188:unclobbered_vdso:Failed to load the test enclave. " Add "test_encl.elf" to TEST_FILES so that it will be installed. Fixes: 2adcba79e69d ("selftests/x86: Add a selftest for SGX") Signed-off-by: Yi Lai <yi1.lai@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/sgx/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/sgx/Makefile b/tools/testing/selftests/sgx/Makefile
index 75af864e07b6..50aab6b57da3 100644
--- a/tools/testing/selftests/sgx/Makefile
+++ b/tools/testing/selftests/sgx/Makefile
@@ -17,6 +17,7 @@ ENCL_CFLAGS := -Wall -Werror -static -nostdlib -nostartfiles -fPIC \
-fno-stack-protector -mrdrnd $(INCLUDES)
TEST_CUSTOM_PROGS := $(OUTPUT)/test_sgx
+TEST_FILES := $(OUTPUT)/test_encl.elf
ifeq ($(CAN_BUILD_X86_64), 1)
all: $(TEST_CUSTOM_PROGS) $(OUTPUT)/test_encl.elf