Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding test metadata for validators #698

Merged
merged 1 commit into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
summary: Test that the device /dev/console is not available in the QM partition.
description: |
This tests confirms that the device /dev/console is not available in the QM partition.
The test executes `test -c /dev/console` in QM partition, no other input.

Test inputs:
None

Expected results:
[ INFO ] PASS: check_dev_console_not_available: As expected, /dev/console is not available in the QM partition.

Results location:
output.txt
test: /bin/bash ./check_dev_console.sh
duration: 10m
tag: ffi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
summary: Test that the device /dev/disk is not available in the QM partition.
description: |
This tests confirms that the device /dev/disk is not available in the QM partition.
The test executes `test -d /dev/disk` in QM partition, no other input.

Test inputs:
None

Expected results:
[ INFO ] PASS: check_dev_disk_not_available: As expected, /dev/disk is not available in the QM partition.
Results location:
output.txt
test: /bin/bash ./check_dev_disk.sh
duration: 10m
tag: ffi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
summary: Test that the device /dev/kmsg is not available in the QM partition.
description: |
This tests confirms that the device /dev/kmsg is not available in the QM partition.
The test executes `test -c /dev/kmsg` in QM partition, no other input.

Test inputs:
None

Expected results:
[ INFO ] PASS: check_dev_kmsg_not_available: As expected, /dev/kmsg is not available in the QM partition.

Results location:
output.txt
test: /bin/bash ./check_dev_kmsg.sh
duration: 10m
tag: ffi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
summary: Test that the directory /etc/qm cannot be accessed in the QM partition.
description: |
This tests confirms that the directory /etc/qm cannot be accessed in the QM partition.
The test executes `test -d /etc/qm` in QM partition, no other input.

Test inputs:
None

Expected results:
out: [ INFO ] PASS: check_etc_qm_not_accessible: As expected, /etc/qm is not accessible in the QM partition

Results location:
output.txt
test: /bin/bash ./check_etc_qm.sh
duration: 10m
tag: ffi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
summary: Test that the directory /usr/lib/qm cannot be accessed in the QM partition.
description: |
This tests confirms that the directory /usr/lib/qm cannot be accessed in the QM partition
The test executes `test -d /usr/lib/qm` in QM partition, no other input.

Test inputs:
None

Expected results:
out: [ INFO ] PASS: check_usr_lib_qm_not_accessible: As expected, /usr/lib/qm is not accessible in the QM partition.

Results location:
output.txt
test: /bin/bash ./check_usr_lib_qm.sh
duration: 10m
tag: ffi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
summary: Test that the directory /usr/share/qm cannot be accessed in the QM partition.
description: |
This tests confirms that the directory /usr/share/qm cannot be accessed in the QM partition.
The test executes `test -d /usr/share/qm` in QM partition, no other input.

Test inputs:
None

Expected results:
out: [ INFO ] PASS: check_usr_share_qm_not_accessible: As expected, /usr/share/qm is not accessible in the QM partition.

Results location:
output.txt
test: /bin/bash ./check_usr_share_qm.sh
duration: 10m
tag: ffi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
summary: Test that the file created in /dev/shm/ outside the QM partition that are
not visible in /dev/shm inside the QM partition.
description: |
This tests confirms that the file created in /dev/shm/ outside the QM partition that are
not visible in /dev/shm inside the QM partition.
The test creates a file outside QM partition using `touch /dev/shm/on-host` and tests if it
was succesfully creted using `test -e /dev/shm/on-host`.
Then the test checks to confirm that the file /dev/shm/on-host is not visible inside
the QM partition using `test -e /dev/shm/on-host`
Test inputs:
None

Expected results:
out: [ INFO ] Successfully created the file /dev/shm/on-host outside the QM partition.
[ INFO ] PASS: check_dev_shm_file_not_visible_in_qm: As expected, /dev/shm/on-host is not visible in the QM partition.

Results location:
output.txt
test: /bin/bash ./check_dev_shm.sh
duration: 10m
tag: ffi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
summary: Test that /run/systemd/journal/socket have different inode number inside
and outside of the QM partition.
description: |
This tests confirms that /run/systemd/journal/socket have different inode number inside
and outside of the QM partition.
The test gets inode number of /run/systemd/journal/socket inside and outside of the QM partition
using `stat --printf='%i' /run/systemd/journal/socket` and `podman exec qm stat --printf='%i' /run/systemd/journal/socket`
respectively and checks to ensure these are different values.
Test inputs:
None

Expected results:
out: [ INFO ] PASS: check_run_systemd_journal_socket_inode_number: As expected, /run/systemd/journal/socket have different inode number inside and outside of the QM partition

Results location:
output.txt
test: /bin/bash ./check_run_systemd_journal_socket.sh
duration: 10m
tag: ffi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
summary: Test that the socket /run/udev/control does not exist in the QM partition.
description: |
This tests confirms that the socket /run/udev/control does not exist in the QM partition.
The test executes `test -e /run/udev/control` in QM partition, no other input.

Test inputs:
None

Expected results:
out: [ INFO ] PASS: check_run_udev_control_not_exist: As expected, /run/udev/control dose not exist in the QM partition
Results location:
output.txt
test: /bin/bash ./check_run_udev_control.sh
duration: 10m
tag: ffi
Expand Down
12 changes: 12 additions & 0 deletions tests/ffi/dev_mem_not_present/main.fmf
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
summary: Test /dev/mem is not present in QM partition.
description: |
This tests confirms that /dev/mem is not present in QM partition.
The test executes `test -e /dev/mem` in QM partition, no other input.

Test inputs:
None

Expected results:
out: [ INFO ] PASS: check_dev_mem_not_present: As expected, /dev/mem is not present in QM partition.

Results location:
output.txt
test: /bin/bash ./test.sh
duration: 10m
tag: ffi
Expand Down
Loading