Page MenuHomeFreeBSD

tests: kern: add some porch(1)-based tty tests
ClosedPublic

Authored by kevans on Sep 27 2024, 5:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 6:26 PM
Unknown Object (File)
Mon, Dec 9, 5:52 AM
Unknown Object (File)
Sun, Dec 8, 5:43 PM
Unknown Object (File)
Thu, Dec 5, 11:35 AM
Unknown Object (File)
Thu, Nov 28, 6:24 AM
Unknown Object (File)
Mon, Nov 25, 12:46 AM
Unknown Object (File)
Thu, Nov 21, 11:06 PM
Unknown Object (File)
Thu, Nov 21, 11:06 PM
Subscribers

Details

Summary

If sysutils/porch is installed, we'll do some basic testing of tty
behavior. The existing tests primarily cover ICANON-related processing
and corner cases that have been fixed somewhat recently, but I
anticipate growing this out a bit in due time.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Could you please demo the test program (attach the kyua html report)?

Could you please demo the test program (attach the kyua html report)?

Neat, I had no idea that kyua had a report-html command.

I uploaded the report here: https://people.freebsd.org/~kevans/porch-results/

archive.tar in that directory packages the directory for convenience. IMO it leaves a little bit to be desired, I would've kinda liked to see test names to attribute each result to, but maybe it does if they fail/skip.

Could you please demo the test program (attach the kyua html report)?

Neat, I had no idea that kyua had a report-html command.

I uploaded the report here: https://people.freebsd.org/~kevans/porch-results/

archive.tar in that directory packages the directory for convenience. IMO it leaves a little bit to be desired, I would've kinda liked to see test names to attribute each result to, but maybe it does if they fail/skip.

Timing data:

Start time: No tests run
End time: No tests run
Duration: 0.000s

Hmmm.. that seems a bit suspicious. Is there a way to confirm that the tests have run somehow?

Could you please demo the test program (attach the kyua html report)?

Neat, I had no idea that kyua had a report-html command.

I uploaded the report here: https://people.freebsd.org/~kevans/porch-results/

archive.tar in that directory packages the directory for convenience. IMO it leaves a little bit to be desired, I would've kinda liked to see test names to attribute each result to, but maybe it does if they fail/skip.

Timing data:

Start time: No tests run
End time: No tests run
Duration: 0.000s

Hmmm.. that seems a bit suspicious. Is there a way to confirm that the tests have run somehow?

Odd. Ok, how about:

root@aarch64-dev:/usr/tests/sys/kern/tty# kyua test -k Kyuafile 
test_canon:main  ->  passed  [4.083s]
test_canon_fullbuf:main  ->  passed  [0.009s]
test_ncanon:main  ->  passed  [0.019s]
test_recanon:main  ->  passed  [0.023s]

Results file id is usr_tests_sys_kern_tty.20241020-044415-526690
Results saved to /root/.kyua/store/results.usr_tests_sys_kern_tty.20241020-044415-526690.db

4/4 passed (0 failed)
root@aarch64-dev:/usr/tests/sys/kern/tty# kyua report 
===> Summary
Results read from /root/.kyua/store/results.usr_tests_sys_kern_tty.20241020-044415-526690.db
Test cases: 4 total, 0 skipped, 0 expected failures, 0 broken, 0 failed
Total time: 4.135s
This revision is now accepted and ready to land.Oct 20 2024, 4:11 PM