mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:35:06 -05:00
21 lines
459 B
Bash
Executable File
21 lines
459 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
TEST_LIBDIR=${CHRONY_LIBDIR:-/var/lib/chrony}
|
|
TEST_LOGDIR=${CHRONY_LOGDIR:-/var/log/chrony}
|
|
TEST_RUNDIR=${CHRONY_RUNDIR:-/var/run/chrony}
|
|
TEST_PRIVDROP_USER=$(ls -ld "$TEST_RUNDIR" 2> /dev/null | awk '{print $3}')
|
|
|
|
. ./test.common
|
|
|
|
priv_drop=1
|
|
|
|
test_start "system directories"
|
|
|
|
start_chronyd || test_fail
|
|
wait_for_sync || test_fail
|
|
stop_chronyd || test_fail
|
|
check_chronyd_messages || test_fail
|
|
check_chronyd_files || test_fail
|
|
|
|
test_pass
|