Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

[LTP] Some tests don't report any results at all under Graphene #2549

Open
anjalirai-intel opened this issue Jul 14, 2021 · 5 comments
Open
Assignees

Comments

@anjalirai-intel
Copy link

anjalirai-intel commented Jul 14, 2021

Description of the problem

In this test multiple files and directories are created with different users and permissions and there are total of 199 testcases that verify the accessibility of the files and directories. Currently only those testcases which check for for both (nobody and root) user are getting passed.
The testcases which are of nobody user throws exception: TBROK: Test haven't reported results!
There are testcases which are of root user gets failed.

If the test is run with all 199 testcases, it fails with "TBROK: Test 12 haven't reported results!"

Steps to reproduce

Execute attached files
access01_setup in linux environment and access01_run with graphene-direct
$ ./access01_setup
$ graphene-direct ./access01_run

Label

bug

access01.zip

Updated access01_run.c has been attached

access01_run.zip

@mkow
Copy link
Member

mkow commented Jul 14, 2021

File permissions are not supported in Graphene.

@mkow mkow closed this as completed Jul 14, 2021
@dimakuv dimakuv reopened this Jul 15, 2021
@dimakuv dimakuv changed the title access01 syscalls fails for nobody and root user when checked individually [LTP] Some tests don't report any results at all under Graphene Jul 15, 2021
@dimakuv
Copy link
Contributor

dimakuv commented Jul 15, 2021

The real issue here is that these LTP tests do not report any results (no TFAIL, no errors) and this leads to LTP outputting a general TBROK message. Need to investigate why this happens on LTP (does Graphene "hide" any error messages?).

@mkow
Copy link
Member

mkow commented Jul 15, 2021

I'd assume it's just a bug in LTP, but we can investigate it if you want.

@jkr0103
Copy link
Contributor

jkr0103 commented Aug 5, 2021

Please assign to me.

@jkr0103
Copy link
Contributor

jkr0103 commented Aug 19, 2021

Tests with message "TBROK: Test haven't reported results!" are executing in a forked process. Results of the tests are written by forked process on a shared memory for parent process to read but same is not being reflected in parent process. This happens because graphene (graphene-direct and graphene-sgx) doesn't support shared memory.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants