Skip to content

Add tests for --terminal and ctrl.c#605

Merged
jnovy merged 1 commit intocontainers:mainfrom
jankaluza:ctrl-tests
Sep 25, 2025
Merged

Add tests for --terminal and ctrl.c#605
jnovy merged 1 commit intocontainers:mainfrom
jankaluza:ctrl-tests

Conversation

@jankaluza
Copy link
Member

This commit adds tests for handling of the tty resize messaages and
log reopen messages sent to ctl fifo.

Signed-off-by: Jan Kaluza jkaluza@redhat.com

@jankaluza
Copy link
Member Author

This depends on #604. I will rebase it once #604 is merged.

@jankaluza
Copy link
Member Author

Rebased, @jnovy , this is now ready for review.

Copy link
Collaborator

@jnovy jnovy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the test suite tests only a very limited edge cases. Maybe something like this would make sense too?

@test "ctrl: resize with floating point dimensions" {
    test_resize_command_fail "1 10.5 20.3"
}

@test "ctrl: resize with hex numbers" {
    test_resize_command_fail "1 0x10 0x20"
}

This commit adds tests for handling of the tty resize messaages and
log reopen messages sent to ctl fifo.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
@jankaluza
Copy link
Member Author

@jnovy , I've removed the hard-coded 2 2 and added more tests. Tell me if you have some other test ideas.

@jnovy
Copy link
Collaborator

jnovy commented Sep 25, 2025

LGTM

@jnovy jnovy merged commit 80b5835 into containers:main Sep 25, 2025
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants