unix-thrust / beurk

BEURK Experimental Unix RootKit
GNU General Public License v3.0
374 stars 96 forks source link

Finish Internal api quicktests #59

Closed nil0x42 closed 9 years ago

nil0x42 commented 9 years ago

the tests/core/internal-api test suite has been refactored and completed, in order to test all internal api functions correctly.

just a little hack: cleanup_login_records() is not tested, because testing it cannot really be done outside of functional tests.

ghost commented 9 years ago

And there I was, banging my head on the desk wondering how to tackle cleanup_login_records(). I will add a commit removing open() checks. @chqrly will be able to merge after that.

nil0x42 commented 9 years ago

okay, i tried chroot, but openpty also requires /dev/pts to succeed, if anything fails our own utmp/wtmp files can be impacted, this is a pain for the ass,

only reliably testable through functional tests

ghost commented 9 years ago

Everything is looking good. Merging.

nil0x42 commented 9 years ago

okay