-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check /dev/mem is not present in QM partition
Signed-off-by: pengshanyu <[email protected]> add a single newline Signed-off-by: pengshanyu <[email protected]> remove -i and -a option Signed-off-by: pengshanyu <[email protected]> change test name Signed-off-by: pengshanyu <[email protected]> use test -e to check if file exists Signed-off-by: pengshanyu <[email protected]> remove output redirection Signed-off-by: pengshanyu <[email protected]> replace hyphen with low-line Signed-off-by: pengshanyu <[email protected]>
- Loading branch information
1 parent
7d08fe4
commit 7f40a32
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Verifies that /dev/mem is not present in QM partition. | ||
|
||
This test execute `test -e /dev/mem` in QM partition, no other input. | ||
podman exec qm test -e /dev/mem | ||
|
||
Expected result: | ||
out: [ INFO ] PASS: check_dev_mem_not_present: As expected, /dev/mem is not present in QM partition. | ||
|
||
Results location: | ||
/plans/e2e/ffi/report/default-0/junit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# FFI - dev_mem_not_present | ||
|
||
This test is intended to confirm that /dev/mem is not present in QM partition. | ||
|
||
## This Test Set includes these tests | ||
|
||
1. Confirm that /dev/mem is not present in QM partition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
summary: Test /dev/mem is not present in QM partition. | ||
test: /bin/bash ./test.sh | ||
duration: 10m | ||
tag: ffi | ||
framework: shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash -euvx | ||
|
||
# shellcheck disable=SC1091 | ||
. ../../e2e/lib/utils | ||
|
||
check_dev_mem_not_present(){ | ||
# Check /dev/mem is not present in QM partition | ||
if podman exec qm test -e /dev/mem; then | ||
info_message "Found /dev/mem in QM partition: $(podman exec -t qm ls -l /dev/mem)" | ||
info_message "FAIL: check_dev_mem_not_present: Check for /dev/mem in QM partition failed, it should not be present." | ||
exit 1 | ||
else | ||
info_message "PASS: check_dev_mem_not_present: As expected, /dev/mem is not present in QM partition." | ||
exit 0 | ||
fi | ||
} | ||
|
||
check_dev_mem_not_present |