Page MenuHomeFreeBSD

Add some simple regression tests for /sbin/rcorder
AbandonedPublic

Authored by ngie on Apr 14 2019, 2:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 7:32 AM
Unknown Object (File)
Nov 5 2023, 10:07 AM
Unknown Object (File)
Nov 5 2023, 9:10 AM
Unknown Object (File)
Nov 5 2023, 12:31 AM
Unknown Object (File)
Oct 4 2023, 12:41 AM
Unknown Object (File)
Jul 23 2023, 11:09 PM
Unknown Object (File)
Mar 31 2023, 1:37 PM
Unknown Object (File)
Feb 25 2023, 7:54 AM
Subscribers

Details

Summary

This is being used for to verify behavior of a proof of concept I'm developing
to start/shutdown services in a parallelized manner using the basic
framework/format used by rcorder(8).

Obtained from: https://github.com/ngie-eign/rcorder3/tree/master/test

Test Plan

Tested on ^/stable/11 and ^/head, with
kyua test -k /usr/tests/sbin/rcorder/Kyuafile:

$ kyua test -k /usr/tests/sbin/rcorder/Kyuafile rcorder_test
rcorder_test:cycles  ->  passed  [0.014s]
rcorder_test:forward_dependency  ->  passed  [0.013s]
rcorder_test:keyword_no_args  ->  passed  [0.015s]
rcorder_test:keyword_with_args  ->  passed  [0.016s]
rcorder_test:keyword_with_keep_and_skip  ->  passed  [0.015s]
rcorder_test:keyword_with_multiple_args  ->  passed  [0.015s]
rcorder_test:keyword_with_skip  ->  passed  [0.014s]
rcorder_test:multiple_provides  ->  passed  [0.013s]
rcorder_test:multiple_requirements  ->  passed  [0.014s]
rcorder_test:no_dependencies  ->  passed  [0.013s]
rcorder_test:no_header  ->  passed  [0.013s]
rcorder_test:no_provider  ->  passed  [0.014s]

Results file id is usr_tests_sbin_rcorder.20190414-023644-796453
Results saved to /home/ngie/.kyua/store/results.usr_tests_sbin_rcorder.20190414-023644-796453.db

12/12 passed (0 failed)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23665
Build 22642: arc lint + arc unit

Event Timeline

That's a lot of tiny files! Would it be possible and desirable to reduce the file count by using here documents or something?

That's a lot of tiny files! Would it be possible and desirable to reduce the file count by using here documents or something?

My goal is to have test input files that I can use for generic testing in https://github.com/ngie-eign/rcorder3/tree/master/test, which I'm going to write a PoC for in python, then write a more finalized solution in C++, once I get buy-off from other folks on the general approach I'm taking.

Abandoning this revision.

I don't have time to work on rcorder(8) these days (that was the hope with this change) :/..