Page MenuHomeFreeBSD

hastd: Add rudimentary tests
ClosedPublic

Authored by des on Sep 3 2026, 3:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 5, 9:11 AM
Unknown Object (File)
Sun, Oct 4, 6:34 PM
Unknown Object (File)
Thu, Oct 1, 2:06 PM
Unknown Object (File)
Tue, Sep 29, 12:59 AM
Unknown Object (File)
Wed, Sep 23, 12:28 PM
Unknown Object (File)
Wed, Sep 23, 8:58 AM
Unknown Object (File)
Sun, Sep 20, 4:29 PM
Unknown Object (File)
Sun, Sep 20, 5:16 AM
Subscribers

Details

Summary

Test that we can start and stop hastd with an empty configuration.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76429
Build 73312: arc lint + arc unit

Event Timeline

des requested review of this revision.Sep 3 2026, 3:19 PM
kevans added inline comments.
sbin/hastd/tests/hastd_test.sh
28

I suspect you want to truncate/remove the pid file in the body after stop, otherwise we're signalling a stale pid that hopefully wouldn't have been reused.

This revision is now accepted and ready to land.Sep 4 2026, 6:11 PM
This revision now requires review to proceed.Sep 4 2026, 6:42 PM
This revision is now accepted and ready to land.Sep 4 2026, 6:50 PM
This revision was automatically updated to reflect the committed changes.