Unit Testing - Allen
Related Items: UnitTestFramework
, OpenNTPD with adjtime/adjfreq tuning
We use adjtime() to set time, this is implemented as adjtimex() in Linux kernel (kernel/time/ntp.c); there's also a function to set frequency as adjfreq() may needed in ntpd (ntp_loopfilter.c), these codes are not covered by our existing unit tests.
Writing tests for adjtime() may be difficult for it is a syscall on many mornden OSes, so the detailed implemention is not part of NTP, this is one of the first problems I need to solve. After writing some unit tests, testing and studying those two method is another major part of this project, some scripts will be writen to collect data from running ntpd clients and servers.
- Get to familiar with google test framework
- Write unit test for adjtime() and adjfreq()
- Test mainly adjtime() and adjfreq() as client and server
- Study how those two methods works with NTP and how are the differ from each other
Discussion and Comments