Page MenuHomeFreeBSD

Introduce test-program for auditpipe(4)
ClosedPublic

Authored by aniketp on Jul 22 2018, 4:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 2 2024, 4:10 AM
Unknown Object (File)
Feb 24 2024, 2:45 AM
Unknown Object (File)
Feb 24 2024, 2:45 AM
Unknown Object (File)
Feb 24 2024, 2:45 AM
Unknown Object (File)
Feb 23 2024, 9:53 PM
Unknown Object (File)
Feb 23 2024, 9:31 PM
Unknown Object (File)
Feb 6 2024, 7:17 AM
Unknown Object (File)
Dec 20 2023, 2:24 AM
Subscribers

Details

Summary

This revision introduces test-program for auditpipe(4). The tests currently only test initial
ioctls provided by auditpipe(4) and lay a foundation on how the tests will be organised later on.

The ioctls currently tested are:

  • AUDITPIPE_GET_QLEN
  • AUDITPIPE_GET_QLIMIT
  • AUDITPIPE_SET_QLIMIT
  • AUDITPIPE_GET_QLIMIT_MAX
  • AUDITPIPE_GET_QLIMIT_MIN
  • AUDITPIPE_GET_MAXAUDITDATA
Test Plan

Execute make && make install from test/sys/auditpipe.
Execute kyua test from /usr/tests/sys/auditpipe. All testcases should succeed.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

asomers requested changes to this revision.Jul 22 2018, 5:16 PM
asomers added inline comments.
tests/sys/auditpipe/auditpipe_test.c
90 ↗(On Diff #45692)

Why do you think it's probably 128? How about setting it to curr_qlimit - 1 instead of hardcoding 128?

99 ↗(On Diff #45692)

This should go in a cleanup step, not in the test body.

This revision now requires changes to proceed.Jul 22 2018, 5:16 PM
  • Move cleanup part of auditpipe_set_qlimit to test case cleanup section
This revision is now accepted and ready to land.Jul 22 2018, 7:34 PM
This revision was automatically updated to reflect the committed changes.