mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 04:55:06 -05:00
test: add system tests
Add a new set of tests for testing basic functionality, starting chronyd with root privileges on the actual system instead of the simulator. Tests numbered in the 100-199 range are considered destructive and intended to be used only on machines dedicated for development or testing. They are started by the run script only with the -d option. They may adjust/step the system clock and other clocks, block the RTC, enable HW timestamping, create SHM segments, etc. Other tests should not interfere with the system and should work even when another NTP server/client is running.
This commit is contained in:
17
test/system/005-scfilter
Executable file
17
test/system/005-scfilter
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
. ./test.common
|
||||
|
||||
check_chronyd_features SCFILTER || test_skip "SCFILTER support disabled"
|
||||
|
||||
test_start "system call filter"
|
||||
|
||||
for extra_chronyd_options in "-F -1" "-F 1"; do
|
||||
start_chronyd || test_fail
|
||||
wait_for_sync || test_fail
|
||||
stop_chronyd || test_fail
|
||||
check_chronyd_messages || test_fail
|
||||
check_chronyd_files || test_fail
|
||||
done
|
||||
|
||||
test_pass
|
||||
Reference in New Issue
Block a user