Page MenuHomeFreeBSD

ping_test: Move the requirements to the header
AbandonedPublic

Authored by jlduran_gmail.com on Nov 3 2022, 9:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 22 2024, 9:26 PM
Unknown Object (File)
Jan 5 2024, 3:06 AM
Unknown Object (File)
Dec 20 2023, 8:29 AM
Unknown Object (File)
Dec 5 2023, 8:37 AM
Unknown Object (File)
Oct 27 2023, 8:14 AM
Unknown Object (File)
Jul 9 2023, 4:38 AM
Unknown Object (File)
May 18 2023, 10:59 PM
Unknown Object (File)
May 4 2023, 5:16 PM

Details

Reviewers
None
Group Reviewers
Contributor Reviews (src)
Summary

No functional change intended.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

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!