git: fc7143b48341 - main - ping: Add missing ATF boilerplate.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Oct 2023 19:45:36 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=fc7143b48341fb16ef5b2262c7cd5b5c47056112
commit fc7143b48341fb16ef5b2262c7cd5b5c47056112
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2023-10-11 19:45:06 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2023-10-11 19:45:06 +0000
ping: Add missing ATF boilerplate.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D42161
---
sbin/ping/tests/ping_test.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sbin/ping/tests/ping_test.sh b/sbin/ping/tests/ping_test.sh
index c30592aa7e2e..5a12ace104d7 100644
--- a/sbin/ping/tests/ping_test.sh
+++ b/sbin/ping/tests/ping_test.sh
@@ -106,6 +106,7 @@ ping6_c1_s8_t1_body()
check_ping_statistics std.out $(atf_get_srcdir)/ping_6_c1_s8_t1.out
}
+atf_test_case ping_c1t6
ping_c1t6_head()
{
atf_set "descr" "-t6 is not interpreted as -t -6 by ping"
@@ -116,6 +117,7 @@ ping_c1t6_body()
atf_check -s exit:0 -o ignore -e empty ping -c1 -t6 127.0.0.1
}
+atf_test_case ping_c1t4
ping6_c1t4_head()
{
atf_set "descr" "-t4 is not interpreted as -t -4 by ping6"
@@ -126,6 +128,7 @@ ping6_c1t4_body()
atf_check -s exit:0 -o ignore -e empty ping6 -c1 -t4 ::1
}
+atf_test_case ping_46
ping_46_head()
{
atf_set "descr" "-4 and -6 cannot be used simultaneously"
@@ -139,6 +142,7 @@ ping_46_body()
ping -4 -6 localhost
}
+atf_test_case ping_64
ping_64_head()
{
atf_set "descr" "-4 and -6 cannot be used simultaneously"
@@ -152,6 +156,7 @@ ping_64_body()
ping -6 -4 localhost
}
+atf_test_case ping6_4
ping6_4_head()
{
atf_set "descr" "ping6 does not accept -4"