Page MenuHomeFreeBSD

ping_test: Move the requirements to the header
AbandonedPublic

Authored by jlduran on Nov 3 2022, 9:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 9:16 AM
Unknown Object (File)
Sep 25 2024, 1:34 AM
Unknown Object (File)
Sep 23 2024, 6:30 PM
Unknown Object (File)
Sep 21 2024, 2:31 PM
Unknown Object (File)
Sep 21 2024, 2:31 PM
Unknown Object (File)
Sep 21 2024, 2:31 PM
Unknown Object (File)
Sep 21 2024, 2:21 PM
Unknown Object (File)
Sep 18 2024, 5:10 AM

Details

Reviewers
None
Group Reviewers
Contributor Reviews (src)
Summary

No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

jlduran added a parent revision: D37248: ping_test: Code cleanup.

I'm not sure this works? It's not very clear to me what can and what cannot be in the header, but it's usually just used to define test metadata.

If I try adding an unconditional atf_skip to one of the test headers, I get:

markj@nuc> kyua list ping_test
ping_test:__test_cases_list__
markj@nuc> kyua test ping_test
ping_test:__test_cases_list__  ->  broken: Invalid test case definition; must be preceeded by the identifier  [0.001s]

Results file id is usr_tests_sbin_ping.20221103-125835-090128
Results saved to /home/markj/.kyua/store/results.usr_tests_sbin_ping.20221103-125835-090128.db

0/1 passed (1 failed)

I'm not sure this works? It's not very clear to me what can and what cannot be in the header, but it's usually just used to define test metadata.

If I try adding an unconditional atf_skip to one of the test headers, I get:

markj@nuc> kyua list ping_test
ping_test:__test_cases_list__
markj@nuc> kyua test ping_test
ping_test:__test_cases_list__  ->  broken: Invalid test case definition; must be preceeded by the identifier  [0.001s]

Results file id is usr_tests_sbin_ping.20221103-125835-090128
Results saved to /home/markj/.kyua/store/results.usr_tests_sbin_ping.20221103-125835-090128.db

0/1 passed (1 failed)

Yes, you are right. I got confused with atf_set require.user root.

I'll abandon this revision, and update the next one. Thank you!