-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tmt FFI plan running ffi tests Prepare script per images, c9s, fedora, autosd (vm) followed by test running cotainer and verify systemd activated oom killer Adding supoport in OS based prepares Tmt tests requires, to use tmt --context with scenario=ffi, distro=<os type> run .. ffi-tools container image is downloaded from sig container-images Signed-off-by: Yariv Rachmani <[email protected]>
- Loading branch information
Showing
6 changed files
with
54 additions
and
2 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
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
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 |
---|---|---|
@@ -1 +1,5 @@ | ||
The `remove-containers` script will remove all containers (and images) which name start with node* or control from the output of podman ps. Useful to cleanup environment before executing tests and measures. | ||
|
||
### Freedom From Interference | ||
|
||
Under FFI c binaries build in different [automotive-repo](https://gitlab.com/CentOS/automotive/container-images/-/tree/main/images/ffi-tools) |
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,8 @@ | ||
summary: Test is calling systemd as stand alone test | ||
test: | ||
/bin/bash ./test.sh | ||
|
||
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,22 @@ | ||
#!/bin/bash | ||
# shellcheck disable=SC1091 | ||
|
||
|
||
prepare_test() { | ||
|
||
qm_service_file=$(systemctl show -P SourcePath qm) | ||
|
||
#create backup file for qm unit file | ||
qm_service_backup=$(mktemp -d -p /tmp)/qm.service | ||
cp "${qm_service_file}" "${qm_service_backup}" | ||
|
||
# Keep definition for the test not to survive reboot | ||
#systemctl set-property --runtime qm ManagedOOMMemoryPressure=kill | ||
} | ||
|
||
reload_config() { | ||
|
||
systemctl daemon-reload | ||
systemctl restart qm | ||
|
||
} |
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 -eux | ||
|
||
# shellcheck disable=SC1091 | ||
|
||
. ../memory/prepare.sh | ||
|
||
prepare_test | ||
reload_config | ||
|
||
podman run --replace -d --name ffi-asil \ | ||
https://quay.io/repository/centos-sig-automotive/ffi-tools:latest \ | ||
./ASIL/20_percent_memory_eat > /dev/null | ||
|
||
podman exec -it qm /bin/bash -c \ | ||
"podman run --rm -it https://quay.io/repository/centos-sig-automotive/ffi-tools \ | ||
./QM/90_percent_memory_eat > /dev/null" | ||
|
||
systemctl status qm --no-pager | grep "qm.service: A process of this unit has been killed" |