jw-devtest/test/audit/test.py
Jan Lindemann b5d849ce44 Add test/audit
Signed-off-by: Jan Lindemann <jan@janware.com>
2025-11-17 11:12:27 +01:00

14 lines
432 B
Python

#!/usr/bin/python3
from jwutils.misc import multi_regex_edit
from jwutils.log import *
from devtest.os.test.cases import Audit as TestCase
if __name__ == '__main__':
set_level(INFO)
refpath = 'ausearch.log.ref'
fake_input = 'ausearch.log.fake-input'
with open(fake_input, "r") as f:
lines = f.readlines()
features = set(['polp'])
print(TestCase(refpath, write_response=True).test(lines, features))