Skip to contentSkip to conversation

selftests/sgx: Add "test_encl.elf" to TEST_FILES

PATCH Superseded Yi Lai 1 participant 1 message Apr 12, 2023

Subsystems (2)
lore
Share & tools
lore

Yi Lai

author
#0 lore raw

PATCH 1/1 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")
---
 tools/testing/selftests/sgx/Makefile | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/sgx/Makefile +1 -0
index 75af864e07b6..50aab6b57da3 100644
@@ -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
Signature · 1 line
2.25.1