gramine icon indicating copy to clipboard operation
gramine copied to clipboard

[tests] Add testltp program to enable testing with newer LTP versions

Open efu39 opened this issue 9 months ago • 0 comments

Description of the changes

This is a draft PR, to get input if there is interest to merge it.

With the LTP 1909cd5675 change, the command gramine-{direct|sgx} <TEST_BINARY> does not work with LTP releases after 20220527, failing with “TFAIL: Main test process might have exit” The commit introduces testltp program, allowing newer versions of LTP to be tested using:

gramine-{direct|sgx} testltp <TEST_BINARY>  

Additionally, testing with pytest can be done by setting the LTP_ENV variable, for example:

 LTP_ENV=testltp python3 -m pytest -v -k chmod01
 LTP_ENV=testltp make [SGX=1] regression

The change enables testing with newer LTP versions for development purposes only. The LTP version in use remains unchanged.

How to test this PR?

For the current LTP version, LTP test behave as before and can be run with:make [SGX=1] regression Tested with LTP version 20240930 using: LTP_ENV=testltp make [SGX=1] regression


This change is Reviewable

efu39 avatar Mar 28 '25 15:03 efu39