test: add 104-systemdirs system test
This commit is contained in:
parent
058b788d38
commit
3093a11cd0
1 changed files with 19 additions and 0 deletions
19
test/system/104-systemdirs
Executable file
19
test/system/104-systemdirs
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
TEST_LIBDIR=${CHRONY_LIBDIR:-/var/lib/chrony}
|
||||
TEST_LOGDIR=${CHRONY_LOGDIR:-/var/log/chrony}
|
||||
TEST_RUNDIR=${CHRONY_RUNDIR:-/var/run/chrony}
|
||||
|
||||
. ./test.common
|
||||
|
||||
user=$(ls -ld "$TEST_RUNDIR" 2> /dev/null | awk '{print $3}')
|
||||
|
||||
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
|
Loading…
Reference in a new issue