test: add tests for system adjtime() and ntp_adjtime()

Include a test program to determine how the adjtime() implementation
behaves. Check the range of supported offset, support for readonly
operation, and slew rate with different update intervals and offsets.

Also, add a test for ntp_adjtime() to check what frequency range it
supports.
This commit is contained in:
Miroslav Lichvar
2015-09-10 15:34:56 +02:00
parent 5776eb35b6
commit 5190539ce1
3 changed files with 267 additions and 0 deletions

7
test/kernel/Makefile Normal file
View File

@@ -0,0 +1,7 @@
CFLAGS=-O2 -Wall
PROGS=adjtime ntpadjtime
all: $(PROGS)
clean:
rm -f $(PROGS)