Linux-Sgx Archive mirror
 help / color / mirror / Atom feed
From: Jarkko Sakkinen <jarkko@kernel.org>
To: Shuah Khan <shuah@kernel.org>, linux-kselftest@vger.kernel.org
Cc: Dave Hansen <dave.hansen@linux.intel.com>,
	linux-sgx@vger.kernel.org, stable@vger.kernel.org,
	Reinette Chatre <reinette.chatre@intel.com>
Subject: Re: [PATCH] selftests/sgx: add test_encl.elf to TEST_GEN_FILES
Date: Wed, 18 May 2022 17:54:45 +0300	[thread overview]
Message-ID: <YoUItUEAKpzzwoQr@iki.fi> (raw)
In-Reply-To: <20220518031619.1179862-1-jarkko@kernel.org>

On Wed, May 18, 2022 at 06:16:19AM +0300, Jarkko Sakkinen wrote:
> TEST_GEN_FILES contains files that are generated during compilation and are
> required to be included together with the test binaries, e.g. when
> performing:
> 
> make -C tools/testing/selftests install INSTALL_PATH=/some/other/path [*]
> 
> Add test_encl.elf to TEST_GEN_FILES because otherwise the installed test
> binary will fail to run.
> 
> [*] https://docs.kernel.org/dev-tools/kselftest.html
> 
> Cc: stable@vger.kernel.org
> Fixes: 2adcba79e69d ("selftests/x86: Add a selftest for SGX")
> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>

I found this while trying to create an image with BuldRoot containing
the self-tests:

https://github.com/jarkkojs/buildroot-sgx

On SGX capable machine can be built and run in QEMU as

make sgx_x86_64_defconfig && make && output/image/run.sh

BR, Jarkko

      reply	other threads:[~2022-05-18 14:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-18  3:16 [PATCH] selftests/sgx: add test_encl.elf to TEST_GEN_FILES Jarkko Sakkinen
2022-05-18 14:54 ` Jarkko Sakkinen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YoUItUEAKpzzwoQr@iki.fi \
    --to=jarkko@kernel.org \
    --cc=dave.hansen@linux.intel.com \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-sgx@vger.kernel.org \
    --cc=reinette.chatre@intel.com \
    --cc=shuah@kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).